【发布时间】:2013-02-16 06:59:53
【问题描述】:
首先,让我说我对编码很陌生,所以请在你的回答中具体说明 =) 我正在处理的网站上的图像边框存在问题。您可以在此处查看该站点:http://eventswithvizability.ca/
我有 10 个在页面重新加载时旋转的图像,您可以在此处查看 HTML:
<SCRIPT LANGUAGE="Javascript">
function banner() { } ; b = new banner() ; n = 0
b[n++]= "<IMG name=randimg CLASS='aligncenter1'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter2'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter3'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter4'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter5'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter6'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter7'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter8'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter9'>"
b[n++]= "<IMG name=randimg CLASS='aligncenter10'>"
i=Math.floor(Math.random() * n) ;
document.write( b[i] )
</SCRIPT>
基本上我不希望我的图像周围有边框。我安装了 firebug,当检查正在读取我的图像样式的元素时我可以看到(所以没有边框),但我所做的没有改变我的图像周围仍然显示边框的事实。
media="all"
img[class*="align"], img[class*="wp-image-"] {
margin: auto;
border: none !important;
border-style: none !important;
border-width: 0 !important;
border-bottom-color: transparent !important;
/*test to see if I can get rid of bottom border*/
}
我已经尝试修复我的文档类型,添加一个重置样式表,在所有地方添加 !important,并阅读我可以在 google 上找到的所有内容,但它仍然在接收这个 border-style:initial; 来自某个地方的脚本。如果是浏览器,那么我的重置样式表应该已经处理好了..对吗?
请帮忙!我很想弄清楚这一点。
【问题讨论】:
标签: css styles overriding user-agent