简体   繁体   English

使用子弹图像代替浏览器默认项目符号对UL以获得跨浏览器结果是否好?

[英]Is it good to use bullet image inplace of browser default bullets for UL to get cross browser result?

使用子弹图像代替浏览器默认项目符号对UL以获得跨浏览器结果是否好?

Unless it's a very stylized/graphics heavy site, I'd say no. 除非它是一个风格/图形繁重的网站,否则我不会。 Users don't expect your webpage to have any particular look/feel...but they do expect it to be familiar and intuitive. 用户不希望您的网页具有任何特定的外观/感觉...但是他们确实希望它熟悉且直观。 If you have a completely different theme and a completely custom look, then yes , go for it. 如果你有一个完全不同的主题和一个完全自定义外观那么,去了。 If you don't...let the user see what they're used to seeing. 如果您不...让用户看到他们过去所看到的内容。

Example: Checkboxes look different on different browsers, but 99% of the time, the same to the user that's always using that browser on their computer. 示例:复选框在不同的浏览器上看起来有所不同,但是在99%的时间内,对于始终在其计算机上使用该浏览器的用户而言,复选框是相同的。 Now using images/javascript to change what those checkboxes look like is slightly jarring, because they're suddenly unfamiliar. 现在使用图像/ JavaScript更改这些复选框的外观有点震撼,因为它们突然不熟悉。

If you're totally immersed in a different environment anyway (example: lots of graphics, black background, etc) then make your styles on anything fit that...for the standard-ish looking webpage that's very light on styles, I'd let the browser defaults prevail. 如果您仍然完全沉浸在不同的环境中(例如:大量的图形,黑色背景等),那么请使您的样式适合任何合适的样式...对于样式很少的标准外观网页,我希望让浏览器默认为准。

Well, if you are using list-style-image:url() , then you pretty much enter a world of pain, since different browsers will position the image differently. 好吧,如果您使用的是list-style-image:url() ,那么您几乎会陷入痛苦的境地,因为不同的浏览器对图像的定位会有所不同。 If, however, you're using background images + padding, then you can indeed get consistent cross-browser results at almost no cost. 但是,如果您使用的是背景图片+填充,则实际上可以免费获得一致的跨浏览器结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM