时间:2014-01-29所属栏目: Html+css 来源: 热度:
#show li.s1{ border:1px solid #ff9900; background:#454242;}
#show li.s2{ border:1px solid #D9D8D8; background:#312E2E;}
很多IE6(或IE7)的问题可以用设置值的方法来解决,最简单的给元素设置值的方法是给加上CSS 的height或width(当然,zoom也可以用,但这不是CSS的一部分)。比如设置为height:1%。如果父元素没有设置高度,那么元素的物理高度并不会改变,但是,已经具备hasLayout属性。
确保浮动元素设置了 display:inline;
在浮动元素中使用 margin-right:-3px;
1,内联样式 [1.0.0.0]
2,ID选择器 [0.1.0.0]
3,类,属性,伪类 选择器 [0.0.1.0]
4,元素标签,伪元素 选择器 [0.0.0.1]
#exm{
position:absolute;
left:50%;
top:50%;
z-index:1;
width:200px;
height:100px;
margin-left:-100px;
margin-top:-52px;
}
设置或检索对象的缩放比例。设置或更改一个已被呈递的对象的此属性值将导致环绕对象的内容重新流动。虽然此属性不可继承,但是它会影响对象的所有子对象( children )。
解决方法 一:
使 li 浮动,并设置 img 为块级元素
解决方法 二:
设置 ul 的 font-size:0;
解决方法 三:
设置 img 的 vertical-align: bottom;
解决方法 四:
设置 img 的 margin-bottom: -5px;
解决方法:改变CSS属性的排列顺序: L-V-H-A
解决方法:
div{word-wrap:break-word;overflow:hidden;}
解决办法:清除子元素的浮动
解决办法:
解决办法:
解决办法: white-space:nowrap;(文本不换行)text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden;
解决办法:行高和容器高度相等line-height=height;
解决办法:设置文本输入框vertical-align:middle;
解决办法:
body{
scrollbar-face-color:#f6f6f6;
scrollbar-highlight-color:#fff;
scrollbar-shadow-color:#eeeeee;
scrollbar-3dlight-color:#eeeeee;
scrollbar-arrow-color:#000;
scrollbar-track-color:#fff;
scrollbar-darkshadow-color:#fff;
}
解决办法:
div{
overflow:hidden;
zoom:0.8;
line-height:1px;
}