在我的代码中,那里有两个P标签。我给了他们边界。我认为我的代码中有两个lightblue块,因为有两个p标签。但是,如果我运行此代码,则其中包含三个块。我想知道为什么。请帮忙。谢谢阅读。
p {
margin: auto;
text-align: center;
background: lightblue;
height: 70px;
width: 200px;
border: solid 1px black;
line-height: 70px;
}
<html>
<head>
<meta charset="utf-8" http-equiv="content-type">
<style media="screen">
p {
margin: auto;
text-align: center;
background: lightblue;
height: 70px;
width: 200px;
border: solid 1px black;
line-height: 70px;
}
</style>
</head>
<body>
<p><p>dddddddddddoo</p></p>
</body>
</html>
代替
<body>
<p><p>dddddddddddoo</p></p>
</body>
和
<body>
<p></p>
<p>dddddddddddoo</p>
</body>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句