Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css IE9边界颜色错误?_Css_Html_Internet Explorer 9 - Fatal编程技术网

Css IE9边界颜色错误?

Css IE9边界颜色错误?,css,html,internet-explorer-9,Css,Html,Internet Explorer 9,其他人可以看看这段代码,确认这是一个IE9错误,或者告诉我我做错了什么?使用下面的HTML代码。按钮的下边框将呈现与文本相同的颜色,即使已定义红色边框。IE8和地球上的其他浏览器都会呈现OK。确保IE9以标准模式渲染 <!DOCTYPE html> <html> <head> <style type="text/css"> button.button { color: blue; border: 0px; border-

其他人可以看看这段代码,确认这是一个IE9错误,或者告诉我我做错了什么?使用下面的HTML代码。按钮的下边框将呈现与文本相同的颜色,即使已定义红色边框。IE8和地球上的其他浏览器都会呈现OK。确保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>

我不知道,如果有人帮我查的话,对我来说没问题

用这个

<!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>

钮扣{
边界:0;
}
.更新{
颜色:蓝色;
边框底部:2px#FF0000实心;
显示:块;
大纲:无;
}
更新

如果你接受我的意见,不要用标签名作为类名

不知道它是否有助于检查它对我来说没问题

用这个

<!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>

钮扣{
边界:0;
}
.更新{
颜色:蓝色;
边框底部:2px#FF0000实心;
显示:块;
大纲:无;
}
更新

如果你接受我的意见,不要用标签名作为类名来澄清:这是IE9中的一个bug。边框底部的边框颜色、边框宽度和边框样式的顺序应该无关紧要。@Pumbaa80同意。而且,这个更新的示例仍然没有为我解决这个问题。我仍然认为边界是蓝色的;只是想澄清一下:这是IE9中的一个bug。边框底部的边框颜色、边框宽度和边框样式的顺序应该无关紧要。@Pumbaa80同意。而且,这个更新的示例仍然没有为我解决这个问题。我仍然认为边界是蓝色的;非常古老,但我可以确认我也看到了这种行为,重新定义边框颜色似乎可以修复它,如您所述。非常古老,但我可以确认我也看到了这种行为,重新定义边框颜色似乎可以修复它,如您所述。