html01
来源:互联网 发布:java语言培训班哪个好 编辑:程序博客网 时间:2024/04/29 09:09
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> a{ text-decoration: none; color: black; } .top{ width: 1100px; margin: 0 auto; } .nav-top { height:35px; width: 1100px; background:lightgrey; margin: 0 auto; }.nav-top ul{ list-style:none; margin: 0; padding: 0; }.nav-top li{ float:left; width:150px; line-height:35px; }.nav-top a:link{ color:gray; font-weight:bold; }.nav-top a:visited{ color:gray; color: none; }.nav-top a:hover{ color:lightgrey; font-weight:bold; background:black; }.nav-top a{ display:block; text-align:center; height:35px; }.main{ overflow: hidden; width: 1100px; margin: 15px auto;}.nav-left{ float: left; width: 20%; border: solid lightgrey 1px;}.nav-left ul{ list-style: none; padding: 0; text-align: center;}.nav-left li{ }.nav-left a{ display: block; /*width: 100%;*/ height: 30px; line-height: 30px; text-align: left; padding-left: 10px;}.nav-left a:hover{ color:black; background:lightgrey;}.nav-left a:link{ color:gray; font-weight:bold; }.nav-left a:visited{ color:gray; }.title{ height: 30px; background-color: lightgrey; display: block; line-height: 30px; text-align: center;}.nav-left h2{ margin: 10px; font-size: 16px;}.nav-right{ float: right; width: 15%; height: 100%; border: solid lightgrey 1px; }.nav-right ul{ list-style: none; padding: 0; margin: 10px; text-align: center; }.nav-right li{ margin: 5px; height: 50px; line-height: 50px;}.nav-right ul>:first-child{ background-color: plum; }.nav-right li:nth-child(2){ background-color: lightgreen; }.nav-right li:nth-child(3){ background-color: palevioletred;}.content{ margin: 10px; float: left; width: 60%;}.content a{ display: inline-block; width: 80px; height: 30px; line-height: 30px; background-color: lightgrey; margin: 10px; text-align: center;}.content h2{ font-size: 16px; margin: 0;}.content div{ padding-left: 10px; border-top: solid 1px #aaa; margin-top: 5px;}#content-a{ color: red; display: inline; background-color: white; text-decoration: underline;}.footer{ background-color:lightgrey; height:30px; width: 1100px; margin: 0 auto; text-align: center;}.footer p{ vertical-align: middle; font-size: 10px; line-height: 30px; color: gray;} </style></head><body> <!--The content below is only a placeholder and can be replaced.--><div class="top"><img src="w3c.png" alt=""></div><div class="nav-top"> <ul> <li><a href="http://www.baidu.com">HTML/CSS</a></li> <li><a href="http://www.google.com">JavaScript</a></li> <li><a href="http://www.bing.com">Server Side</a></li> <li><a href="http://www.jike.com">ASP.NET</a></li> <li><a href="http://www.soso.com">XML</a></li> <li><a href="http://www.youdao.com">Web Services</a></li> </ul></div><div class="main"> <div class="nav-left"> <div class="title"> 课程表</div> <h2>HTML基础教程</h2> <ul> <li><a href="http://www.baidu.com">HTML简介</a></li> <li><a href="http://www.google.com">HTML编辑器</a></li> <li><a href="http://www.bing.com">HTML基础</a></li> <li><a href="http://www.jike.com">HTML元素</a></li> <li><a href="http://www.soso.com">HTML属性</a></li> <li><a href="http://www.youdao.com">HTML标题</a></li> </ul> <div class="title"> 课程表</div> <h2>HTML基础教程</h2> <ul> <li><a href="http://www.baidu.com">HTML简介</a></li> <li><a href="http://www.google.com">HTML编辑器</a></li> <li><a href="http://www.bing.com">HTML基础</a></li> <li><a href="http://www.jike.com">HTML元素</a></li> <li><a href="http://www.soso.com">HTML属性</a></li> <li><a href="http://www.youdao.com">HTML标题</a></li> </ul> </div> <div class="content"> <h2>HTML基础教程</h2> <a href="">上一节</a><a href="">下一节</a> <div class="block"> <h2>HTML 教程</h2> <p>在本教程中,你将学习如何使用HTML来创建站点</p> <p>HTML 很容易学习!你会喜欢它的!</p> <a href="" id="content-a">现在开始学习HTML!</a> </div> <div class="block"> <h2>HTML 教程</h2> <p>在本教程中,你将学习如何使用HTML来创建站点</p> <p>HTML 很容易学习!你会喜欢它的!</p> <a href="" id="content-a">现在开始学习HTML!</a> </div> <div class="block"> <h2>HTML 教程</h2> <p>在本教程中,你将学习如何使用HTML来创建站点</p> <p>HTML 很容易学习!你会喜欢它的!</p> <a href="" id="content-a">现在开始学习HTML!</a> </div> </div> <div class="nav-right"> <div class="title"> 工具箱</div> <ul> <li>参考书</li> <li>实验室</li> <li>小测验</li> </ul> </div></div><div class="footer"> <p>W3School 简体中文版提供的内容仅用于培训和测试,不保证内容的正确性。通过使用本站内容随之而来的风险与本站无关。</p></div></body></html>
阅读全文