渲染字段集的填充发生了什么。它在 FF 和 Chrome 中表现如预期,但在 IE 中失败。这是我正在谈论的代码:
<html>
<head>
</head>
<body>
<fieldset>
<legend>Hello world!</legend>
<div>Lorem ipsum</div>
</fieldset>
</body>
</html>
这是CSS
fieldset {
border: 1px solid black;
padding: 30px;
}
fieldset legend {
background-color: silver;
}
fieldset div {
border: 1px dotted silver;
}
也可以在这里看到:http: //jsfiddle.net/nRAGM/6/
所以我的问题是:如何让上面的 html 按预期在 IE 中显示?