我可以使用CSS设计图片的ALT文本吗? [英] Can I style an image's ALT text with CSS?
本文介绍了我可以使用CSS设计图片的ALT文本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个深蓝色的页面,当图像加载(或丢失)时,ALT文本是黑色的,难以阅读(在FF中)。
我可以用CSS设计它的样式吗?
解决方案
<设置 img
标记 color
作品
img {color:#fff}
body {background:#000022} img {color:#fff}
< img src =http://badsrc.com/blahalt =BLAH BLAH BLAH/>
I have a dark blue page and when the image is loading (or missing) the ALT text is black and difficult to read (in FF).
Could I style it (with CSS) to be white?
解决方案
Setting the img
tag color
works
img {color:#fff}
body {background:#000022}
img {color:#fff}
<img src="http://badsrc.com/blah" alt="BLAH BLAH BLAH" />
这篇关于我可以使用CSS设计图片的ALT文本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文