[英]image border disappears in chrome and firefox but appears in IE
Borders are added around images using 使用以下方法在图像周围添加边框
img
{
border-color: #bbbbbb;
}
Images are defined in html like 图像以html之类定义
`<img src="/Thumb?product=CPU-EP0520EL01">`
Image size is 130x130 pixels according to browser image properties. 根据浏览器的图像属性,图像大小为130x130像素。 In Firefox and Chrome borders do not appear.
在Firefox和Chrome中,不会出现边框。
Firebug inspect element Style tab shows like style is applied properly: Firebug检查元素的“样式”选项卡显示样式正确应用:
img {
border-color: #BBBBBB;
}
.category-list li a, ul#category-list li .button {
font-size: 11px;
}
a:link, a:visited {
color: #A80000;
font-weight: bold;
}
.category-list li {
text-align: center;
}
.category-list {
list-style: none outside none;
}
body {
font-family: Helvetica,Arial,sans-serif;
font-size: 12px;
}
In Internet Explorer 9 borders appear properly. 在Internet Explorer 9中,边框会正确显示。 Jquery ui default stlye is used.
jQuery ui默认使用stlye。 I added ui-corner-all class to img element but problem persists: borders are not shown.
我向img元素添加了ui-corner-all类,但问题仍然存在:未显示边框。 (IE9 shows rounded borders properly in this case).
(在这种情况下,IE9会正确显示圆形边框)。
How to show rounded borders around images in Chrome and FireFox ? 如何在Chrome和FireFox中显示图像周围的圆形边框?
try: 尝试:
display: block;
border: 1px solid #bbbbbb;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.