开发者

Custom <ul> image bullets not showing up in Internet Explorer?

开发者 https://www.devze.com 2022-12-14 08:33 出处:网络
Here is the code I am using: .customBulletList { list-style-image: url(images/bullet.png); } The weird thing is tha开发者_JAVA技巧t it shows up in Firefox, Chrome, Safari, and Opera. Is this CSS pr

Here is the code I am using:

.customBulletList {
    list-style-image: url(images/bullet.png);
}

The weird thing is tha开发者_JAVA技巧t it shows up in Firefox, Chrome, Safari, and Opera. Is this CSS property not supported in IE or something?

Thanks in advance.


it is implemented. Probably it's problem of margins, padding, that are counted wrong and put image outside visible area.


Use a background-image instead (with additional padding to the left) and set list-style to none.


I belive that IE6 does not supportlist-style-image!


Add padding-left to the ul css style. That may bring the bullets into view. Try 40px and work from there. If you put a temporary border on the ul you can see where the bullets are getting chopped.

0

精彩评论

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