以下网页将在 Firefox 3.5 中呈现意外结果。第一个<address>
元素不会有粉红色背景,但第二个元素会有。这只发生在我身上吗?我的代码不正确吗?或者它是一个错误?
编辑:这也发生在 Firefox 3.6
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Firefox 3.5 bug!</title>
<style>
address
{
background: pink;
}
</style>
</head>
<body>
<address>
<ul>
<li>This will NOT have a pink background in Firefox 3.5</li>
</ul>
</address>
<address>
<p>But this will</p>
</address>
</body>
</html>