想实现的效果见图片一。 代码实现出来的效果见图片二(差距见红色注释)。
#para {
background-color: #F0FAFF;
height: 100px;
font-family: Verdana;
font-size: 14px;
line-height: 20px;
}
span {
background-color: #E5EEF3;
border: 1px solid #D5DEE2;
}
<!DOCTYPE html>
<html>
<head>
<title>Result</title>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
</head>
<body>
<div id="para">
<p>Okay, all on your lonesome: add a <span
class="tag"><link></span> tag between the
<span><head></head></span> tags in the HTML tab to the right.
The link should have an href attribute that points to
<span>stylesheet.css</span>.
</p>
</div>
</body>
</html>
如何消除注释所出现的问题,谢谢。
--
FROM 60.186.190.*