摘要: The float property sets where an image or a text will appear in another element.float属性可设置在另一个元素中的图片或是一段文字在哪出现。Note:If there is too little space on a line for the floating element, it will jump down on the next line, and continue until a line has enough space.注意:如果在一行空间上的浮动元素过多,超出了空间的容纳范围,它就会自动跳到下一行 阅读全文
posted @ 2013-04-25 17:48 风雪七月花溅墨 阅读(161) 评论(0) 推荐(0)
摘要: css中字体单位px与empx是固定大小单位称为像素,em是非固定大小单位称为相对单位字。在ie中px单位的文本的字号不随浏览器字号设置的改变而改变。浏览器字号的设置将改变默认em的大小。例如:当ie文字大小为中时默认的1em相当于16px,当文字大小为较小时默认的1em相当于12px。当em单位处于具有固定字号的对象中时,em将以此对象中的文字大小为基准单位<div style="font-size:12px;">12px字体<br /> <span style="font-size:1em; color:blue"> 阅读全文
posted @ 2013-04-25 17:47 风雪七月花溅墨 阅读(229) 评论(0) 推荐(0)
摘要: UL-LI 标签结合CSS的运用LI代码的格式化:A).运用CSS格式化列表符: ul li{list-style-type:none;}B).如果你想将列表符换成图像,则: ul li{list-style-type:none;list-style-image: url(images/icon.gif);}C).为了左对齐,可以用如下代码: ul{list-style-type:none;margin:0px;}D).如果想给列表加背景色,可以用如下代码: ul{list-style-type: none;margin:0px;}ul li{background:#CCC;}E).如果想给列 阅读全文
posted @ 2013-04-25 17:22 风雪七月花溅墨 阅读(262) 评论(0) 推荐(0)