其他人可以看一下这段代码,确认这是一个IE9错误,或者告诉我我做错了什么吗?使用下面的HTML代码。即使将边框颜色定义为红色,按钮的底部边框也将呈现与文本相同的颜色。IE8和地球上的所有其他浏览器都可以呈现这一点。确保IE9在标准模式下渲染。
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
button.button {
color: blue;
border: 0px;
border-bottom: #FF0000 2px solid;
}
</style>
</head>
<body>
<button type="button" class="button">Update</button>
</body>
</html>到目前为止,我找到的唯一解决方法是在样式底部重新声明所有边的边框颜色。
border-color: #FF0000;发布于 2011-09-18 14:59:46
不知道,如果帮助检查它对我来说是好的
使用这个
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
button {
border:0;
}
.update {
color: blue;
border-bottom: 2px #FF0000 solid;
display: block;
outline:none;
}
</style>
</head>
<body>
<button type="button" class="update">Update</button>
</body>
</html>如果您接受我的意见,就不要使用标记名作为类名
https://stackoverflow.com/questions/7459831
复制相似问题