热门关键字:
jquery > jquery教程 > jquery教程 > html5 游戏设计模式,HTML5与CSS3设计模式

html5 游戏设计模式,HTML5与CSS3设计模式

249
作者:管理员
发布时间:2021/7/7 18:03:46
评论数:0
转载请自觉注明原文:http://www.jq-school.com/Show.aspx?id=5007
  一、背景设计模式


  [html]


  一、背景设计模式


  p { background:#f00 url("images/heading2.jpg") no-repeat; width:250px; height:76px; }


  二、绝对定位设计模式


  *.positioned { position:relative; }


  *.absolute { position:absolute; top:10px; left:10px; }


  *.positioned { border:1px solid red; height:100px; background-color:#ffee00; }


  *.absolute { border:4px solid green; background-color:white; }


  三、文本替换设计模式


  #h2 { position:relative; width:250px;height:76px; overflow:hidden; }


  #h2 span { position:absolute; width:250px; height:76px; top:0; left:0; background:#ff0 url("images/heading2.jpg") no-repeat; }


  四、左旁注设计模式


  *.left-marginal { position:relative; margin-left:200px; }


  *.marginal-heading { position:absolute; top:0; left:-200px; margin:0; }


  You want to excerpt an element and move it into the left again.


  五、旁注式图片下沉设计模式


  *.indent { position:relative; margin-left:120px; }


  *.graphic-dropcap { position:absolute; width:120px; height:90px; left:-120px; top:0; }


  *.graphic-dropcap span { position:absolute; width:120px; height:90px; margin:0; top:0; left:0; background:url(images/m.jpg) no-repeat; }


  arginal Graphic Dropcap. The letter M has been covered by the dropcap is image.Screen readers? read the text and visual users see the image.If the browser cannot display the dropcap image, the text becomes visible.


  版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。


  如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。




如果您觉得本文的内容对您的学习有所帮助:支付鼓励



关键字:jquery
友荐云推荐