在我的代码中,有两个P标签.我给了他们边境.我认为我的代码中有两个浅蓝色块,因为有两个p标签.但是,如果我运行此代码,那里有三个块.我想知道为什么.请帮忙.谢谢阅读.
p {
margin: auto;
text-align: center;
background: lightblue;
height: 70px;
width: 200px;
border: solid 1px black;
line-height: 70px;
}Run Code Online (Sandbox Code Playgroud)
<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>Run Code Online (Sandbox Code Playgroud)