IE中css控制list-style-type有问题请教前辈.希望前辈回答以下两个关于list-style-type的问题.谢谢.希望知道问题所在的网友回答一下!.Thank.

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 07:37:38

IE中css控制list-style-type有问题请教前辈.希望前辈回答以下两个关于list-style-type的问题.谢谢.希望知道问题所在的网友回答一下!.Thank.
IE中css控制list-style-type有问题请教前辈.希望前辈回答以下两个关于list-style-type的问题.谢谢.

希望知道问题所在的网友回答一下!.Thank.

IE中css控制list-style-type有问题请教前辈.希望前辈回答以下两个关于list-style-type的问题.谢谢.希望知道问题所在的网友回答一下!.Thank.
你说的都是IE7的问题,不是你的问题.在IE8和IE9里面就没有这些问题,你可以试一下.
而且你这两个问题可以说是同一个问题.
第一个问题的英文解释:http://reference.sitepoint.com/css/list-style-type
这是因为在早期版本的IE中,有一个很重要的属性,叫haslayout,你可以看下百度百科的解释
http://baike.baidu.com/view/2945869.htm但是中文的解释不是很详细,如果你的英文好的话,可以下看这个网页,解释得很清楚http://reference.sitepoint.com/css/haslayout
英文解释里有这么一句话
Internet Explorer for Windows versions up to and including 7 will not increment the list markers in numbering systems if the list item has haslayout.
也就是说直到IE7,只要li有haslayout属性,就不能用增长的数字作为list的样式.
一个li元素怎样才会有haslayout属性呢?
就是你给元素设置了以下属性:
display: inline-block
height: (any value except auto)
float: (left or right)
position: absolute
width: (any value except auto)
writing-mode: tb-rl
zoom: (any value except normal)
Internet Explorer 7 has some additional properties that cause an element to gain a layout (this is not an exhaustive list):
IE7还有跟多的属性,可能会给元素添加layout:(这还不是全部的列表)
min-height: (any value)
max-height: (any value except none)
min-width: (any value)
max-width: (any value except none)
overflow: (any value except visible)
overflow-x: (any value except visible)
overflow-y: (any value except visible)5
position: fixed
我刚转了一篇博客,在参考资料里

IE中css控制list-style-type有问题请教前辈.希望前辈回答以下两个关于list-style-type的问题.谢谢.希望知道问题所在的网友回答一下!.Thank. 在css中list-style是什么意思? 请问css中 list-style:none;和 list-style-type:none;区别是? 关于ul ul ul 的css规则定义问题在Dreamweaver8范例“页面设计(css)中,有这样的规则定义:ul ul定义和ul ul ul定义.它们的css代码分别是ul ul {list-style-type:disc}和ul ul ul {list-style-type :square}.我只知道无 在DW中list-style-type:none 有什么作用? list-style:none是什么意思 css中em{font-style:normal;}是什么意思?主要想知道这里的em是什么 style光知道他是css组建!text/css div+css中li标签第一个字上有一个黑点~用了 list-style-type:none;也没用…… 每一行的第一个字上都有一个黑点,还不是每一行前面有一个黑点……呜呜…… CSS中 *+height是什么意思 CSS中a: css中“text-indent: CSS中!important;表示什么? 这段CSS代码是什么意思ul,menu,dir {user agent stylesheetdisplay:block;list-style-type:disc;-webkit-margin-before:1em;-webkit-margin-after:1em;-webkit-margin-start:0px;-webkit-margin-end:0px;-webkit-padding-start:40px;} css li{list-style-type:none;margin:0px; padding:0px;}为什么前面还是会空出来一块?在dw设计里能看到li前有个点,但是网页上是不显示的 但是除了ie9、ff前面都会空出一小块 是什么原因呢? 关于css a:active标签失效的问题#pic_left li{ list-style-type:none; font-size:30px; margin-top:18px; background:url(../images/pic_1.gif); width:140px;}#pic_left li a{width:140px;display:inline-block; color:#000; text-decoration:none;}#pic_left CSS中-webkit-border-radius 还有-moz-border-radius 这两个CSS属性,是为特别的浏览器而设置的吗?如果去掉,对IE 360,google,火狐,这几个浏览器有影响吗?忘记问一句,如果不删除,对于网页加载有影响吗?就好 javascript css:cascading style sheets这个cascading在这里翻译成什么