css hack
IE6 IE7 IE8 Firefox Opera Google
范例
>
Y
Y
N
N
N
N
.type { >color: #F00; }
.
Y
Y
N
N
N
N
.type { .color: #F00; }
*
Y
Y
N
N
N
N
.type { *color: #F00; }
_
Y
N
N
N
N
N
.type { _color: #F00; }
!important
N
Y
Y
Y
Y
Y
.type { color: #F00 !important; }
*+
Y
Y
N
N
N
N
.type { *+color: #F00; }
\9
Y
Y
Y
N
N
N
.type { *+color: #F00\9; }
相关文档:
想修改一下子自己的CSS,因为博客标题正好把网页图片上的文字正好档了一部分,看起来很不爽。最后确实是由“margin命令”来控制的,于是上网学习了一下子这个的用法。margin在中文中我们翻译成外边距或者外补白(本文中引用外边距)。他是元素盒模型(box model)的基础属性。
一、margin的基本特性
margin属 ......
CSS代码如下:
img { /*-- 专门用于限定文章DIV下的图片 --*/
max-width: 680px;
max-height: 700px;
}
*html img { /*兼容IE6*/
width: expression(this.width > 700 && this.width > this.height ? 680 : tr ......
css学习
1。一个类以.开头。例:.bigtext
2。一个ID以#开头。例:#header
3。定义一个层。例:#header {position: absolute; left: 32; top: 20}
在html中,<div id="header"> <img src="abc.gif"> </div>
div必须给出id。
4。overflow。检索或设置当对象的内容超过其指 ......
1.css在不同浏览器下显示效果不同
firefox和IE对某些css样式的认定有不少区别,包括:
· ul和ol的默认padding值是不一样的,在Firefox中, ......
#weblmenu
{
height:22px;
width:700px;
float:left;
display:inline;
text-align:left;
}
#weblmenu ul
{
height:22px;
width:700px;
text-align:left;
float:left;
}
#weblmenu ul li
{
height:22px;
width:110px;
float:left;
list-style-type:none;
text-align:center;
word-break:break-all;
} ......