开发者

UL not displaying in IE8 Compatability Mode

开发者 https://www.devze.com 2023-02-07 02:10 出处:网络
I have a basicuno开发者_如何学Gordered list that isn\'t displaying in IE8 compatibility mode, but when compatibility mode is turned off it displays correctly.

I have a basic uno开发者_如何学Gordered list that isn't displaying in IE8 compatibility mode, but when compatibility mode is turned off it displays correctly.

I discovered the problem. It turned out to be that it doesn't like the background:none property on a list item.


I have tried the following code in IE8(compatible mode turned off) It works !!

<html>
<body>
<ul type="disc">
<li>hii</li>
<li>bye</li>
<li>hello</li>
</ul>
</body>
</html>


This turns out to be a problem with background:none on a list item. I was doing custom bullets by setting the background image, and on the first item i was just setting it to background none, but this caused the whole list to disappear.

0

精彩评论

暂无评论...
验证码 换一张
取 消