CSS sprites导航和禁用图像的用户 [英] CSS sprites navigation and User with image disabled

查看:109
本文介绍了CSS sprites导航和禁用图像的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个css菜单与css sprites,但问题是与sprite我们不使用内联图像我们在后台只使用,所以如果图像在浏览器中禁用,则什么都不会显示。任何解决方案?

I made a css menu with css sprites but the problem is with sprite we don't use inline image we use in background only so if images are disabled in browser then nothing will show . any solution for this ?

例如:

查看此菜单并关闭图像: http://line25.com/wp-content/uploads/2009/ css-menu / demo / demo.html (如果图片在浏览器中停用,则不会显示)

See this menu and turn off images : http://line25.com/wp-content/uploads/2009/css-menu/demo/demo.html (it will not be seen if images are disabled in browser)

此菜单与此报价相反


确保您的网站与图片一起使用
disabled

Ensure your website works with images disabled

Creating a site that relies too heavily on images is never a good

想法。虽然几乎是
过去的一件事,仍然有用户运行在
非常低的互联网速度。此外,如果
用户需要 - 对于任何
reason-disable图像,他们仍然可以
访问他们需要的所有内容?

idea. Although almost a thing of the past, there are still users who run at very low internet speeds. Also, if a user needs to—for whatever reason—disable images, can they still access all the content they need to?

http://csswizardry.com/quick-提示/#tip-02

我们不应该使用这种类型的导航。

Shouldn't we use this type of navigation.

推荐答案

不要对内容图片使用精灵。它们依赖于表示层(CSS)中的背景图像。将您的内容放入内容层(HTML)。

Don't use sprites for content images. They depend on being background-images in the presentation layer (CSS). Put your content in the content layer (the HTML).

这篇关于CSS sprites导航和禁用图像的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆