Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

<html>
<head>
<style type="text/css">
div.container{width:90%;height:80%;background-color:gray}
div.leftframe{background-color:#00ff99;height:200px;width:20%;float:left;}
div.rightframe{background-color:#88BB99;height:200px;
width:50%;float:left;padding:50px;margin:10px}
</style>
</head>

<body>
<div class="container"}

<div class="leftframe"}
<ul>
<li>班级列表</li>
<li>学生查询</li>
<li>成绩统计</li>
<li>学校信息</li>
</ul>
</div>

<div class="rightframe">页面主题内容</div>

</div>
</body>
</html>

为何上面的代码显示页面的不是嵌套关系,而在我这边显示成了上下关系。
刚刚在看CSS这方面的是不是<div>与</div>太多了 导致无法识别哪一部分是相关的 但是这又如何让机器准确明白我是要让他们互相关联的呢


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
386 views
Welcome To Ask or Share your Answers For Others

1 Answer

请注意你的标签应该是">"结尾而非"}"


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...