创建三级列表
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<ul>
<li>咖啡
<ul>
<li>摩卡</li>
<li>蓝山</li>
</ul>
</li>
<li>茶
<ul>
<li>红茶</li>
<li>绿茶
<ol>
<li>龙井</li>
<li>碧螺春</li>
</ol>
</li>
</ul>
</li>
<li>牛奶</li>
</ul>
</body>
</html>
定义列表实现图文混排
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0;}
.one{width:400px;height:189px;margin:100px auto;border:2px solid #0C3}
.one dt{float:right;}
.one dd{width:220px;height:189px;margin-left:20px;margin-top:20px;font-family:"微软雅黑";}
h1{color:#0C3;font-size:18px;margin-bottom:20px;}
p{font-size:14px;}
</style>
</head>
<body>
<dl class="one">
<dt><img src="images/zhangpeng.jpg" /></dt>
<dd>
<h1>谈华为的管道战略</h1>
<p>华为执行副总裁徐直军:华为致力于通过提升管道容量、增强管道使能、优化管道管理,使管道更宽、管道覆盖更广、客户体验更好。</p>
</dd>
</dl>
</body>
</html>
背景图像定义列表项目符号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>背景图像定义列表项目符号</title>
<style type="text/css">
div{border:1px solid #CCC;border-top:5px solid #F60;width:500px;height:250px;margin:100px auto;}
h1{border-bottom:1px solid #CCC;font-size:20px;padding-left:10px;padding-bottom:10px;}
ul{list-style:none;}
li{padding-bottom:15px;font-size:18px;list-style-image:url(images/hhh.jpg)}
a:link{color:#000}
a:visited{color:#F63}
a:hover{color:#39F}
</style>
</head>
<body>
<div>
<h1>公司动态</h1>
<ul>
<li><a href="#">传智播客大型人才招聘会成功举行</a></li>
<li><a href="#">设计免费公开课-授技数码照片图像精修技巧</a></li>
<li><a href="#">花再多钱也买不来的uI面试神器免费送啦</a></li>
<li><a href="#">传智播客2014版全新IT入门照教程光盘免费领</a></li>
</ul>
</div>
</body>
</html>
盒子模型
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>盒子模型</title>
<style type="text/css">
*{padding:0;margin:0;margin-top:10px;}
h2{background:#F99;width:300px;height:50px;padding-left:50px;margin-left:10px;}
p{background:#390;height:20px;margin-bottom:10px;margin-left:10px;}
a{background:#F99;font-size:14px;display:inline;margin-left:10px;}
d{background:#FF0;font-size:14px;display:inline;}
c{background:#CCC;font-size:14px;display:inline;}
</style>
</head>
<body>
<h2>h2标记定义的文本。</h2>
<p>p标记定义的文本。</p>
<a><strong>strong标记定义的文本。</strong></a>
<d><em>em标记定义的文本。</em></d>
<c><del>del标记定义的文本。</del></c>
</body>
</html>
张鹏
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>张鹏</title>
<style type="text/css">
dt{float:left;margin-right:20px;}
h2,h3{font-size:16px;}
h3{font-size:8px;}
</style>
</head>
<body>
<dl>
<dt><img src="zhangpeng.jpg" /></dt>
<dd>
<h2>张鹏(网页平面主讲老师,在北京/上海/广州授课)</h2>
<h3>职务:高级讲师,企业培训讲师</h3>
<h4> 资深网站工程师和资深网站讲师,10年网站开发与教学工作经验,拥有上百个网站的成功案例,精通网站前端设计和php</h4>
</dd>
</dl>
</body>
</html>
精选歌单
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0;color:}
div{width:820px;height:130px;background:#CCC}
h2{background:url(images/iconh.png) no-repeat;color:#C00;font-size:12px;padding-top:8px;padding-bottom:6px;padding-left:30px;height:18px;margin-left:10px;}
h3{background:url(images/play1.png) no-repeat;color:#C00;font-size:12px;padding-top:2px;padding-bottom:6px;padding-left:30px;height:18px;margin-left:720px;display:inline;}
li{display:inline-block;font-size:16px;width:105px;padding:10px;height:78px;padding-left:80px;list-style:none;}
.one{background:url(images/icon1.png) no-repeat #09C;margin-left:10px;}
.two{background:url(images/icon2.png) no-repeat #6CC;}
.three{background:url(images/icon3.png) no-repeat #3C6;}
.four{background:url(images/icon4.png) no-repeat #C69;}
</style>
</head>
<body>
<div>
<h2>MUSIC----精选歌单</h2>
<h3>连播本页</h3>
<ul>
<li class="one">
<h1>Radio</h1>
<p>音乐达人</p>
<p>随便听听>></p>
</li>
<li class="two">
<h1>Song</h1>
<p>音乐达人</p>
<p>最新单曲>></p>
</li>
<li class="three">
<h1>Album</h1>
<p>音乐达人</p>
<p>音乐专辑>></p>
</li>
<li class="four">
<h1>MV</h1>
<p>音乐达人</p>
<p>劲爆MV>></p>
</li>
</ul>
</div>
</body>
</html>
精选歌单(2)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0;color:}
div{width:820px;height:130px;background:#CCC}
h2{background:url(images/iconh.png) no-repeat left;color:#C00;font-size:12px;padding-top:8px;padding-bottom:6px;padding-left:30px;height:18px;margin-left:10px;}
h3{background:url(images/play1.png) no-repeat right;color:#C00;font-size:12px;padding-top:2px;padding-bottom:6px;padding-left:30px;height:18px;margin-left:720px;display:inline;}
li{display:inline-block;font-size:16px;width:105px;padding:10px;height:78px;padding-left:80px;list-style:none;}
.one{background:url(images/icon1.png) no-repeat #09C;margin-left:10px;}
.two{background:url(images/icon2.png) no-repeat #6CC;}
.three{background:url(images/icon3.png) no-repeat #3C6;}
.four{background:url(images/icon4.png) no-repeat #C69;}
</style>
</head>
<body>
<div>
<h2>MUSIC----精选歌单<h3>连播本页</h3></h2>
<ul>
<li class="one">
<h1>Radio</h1>
<p>音乐达人</p>
<p>随便听听>></p>
</li>
<li class="two">
<h1>Song</h1>
<p>音乐达人</p>
<p>最新单曲>></p>
</li>
<li class="three">
<h1>Album</h1>
<p>音乐达人</p>
<p>音乐专辑>></p>
</li>
<li class="four">
<h1>MV</h1>
<p>音乐达人</p>
<p>劲爆MV>></p>
</li>
</ul>
</div>
</body>
</html>
定义列表实现图文混排
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>定义列表实现图文混排</title>
<style type="text/css">
*{padding:0;margin:0;}
.content{width:350px;height:137px;border:1.5px solid #693;}
.font3{color:#693;font-size:16px;padding:10px;}
p{font-size:13px;font-family:"微软雅黑";padding-left:20px;}
</style>
</head>
<body>
<dl class="content">
<dt><img src="images/man_r1_c2.jpg" align="right"/></dt>
<dd>
<h3 class="font3">谈华为的管道战略</h3>
<p>华为执行副总裁徐直军:华为致力于通过提升管道容量、增强管道使能、优化管道管理,使管道更宽、管道覆盖更广、客户体验更好。</p>
</dd>
</dl>
</body>
</html>
新品尝鲜秒杀清仓
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0;}
div{border:#609 solid 2px;width:250px;height:350px;margin:100px auto;}
p{background:url(images/clock.png) no-repeat;font-size:22px;padding-left:40px;margin:20px;}
li{list-style:none;padding-left:45px;padding-top:12px;height:35px;width:160px;background:url(images/icon.png) no-repeat 10px #609;margin-left:20px;margin-bottom:5px;font-size:18px;color:#FFF;font-family:"微软雅黑";}
h2{background:url(images/back.png) no-repeat;madgrin:40px;font-size:22px;padding-left:40px;margin-left:20px;margin-top:15px;color:#609}
</style>
</head>
<body>
<div>
<p>7月30日0:00开团</p>
<ul>
<li>新品团</li>
<li>尝鲜团</li>
<li>秒杀团</li>
<li>清仓团</li>
</ul>
<h2>返回顶部</h2>
</div>
</body>
</html>