全部使用背景来制作网页中的栏目很巧妙,很亲切,很象以前做桌面程序的感觉。使用三张图片,基本上就生成了整个网页的所有栏目。
titletag.png
titletag.png
- <!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>
- <title>娱乐频道-搜狐</title>
- <style type="text/css">
- a {color: #333;text-decoration:none;font-size:12px}
- a:hover {color:#dc0000;text-decoration:underline;}
- .column,.column_btm{width:265px;}
- .column h2{background:url(titletag.png) 0 -60px;color:#fff;height:24px;line-height:24px;font-size:12px;font-weight:weigth;margin:0px;padding:0 0 0 12px;}
- .column a{
- background:url(bgx.gif) repeat-x 0 -85px;height:25px;line-height:25px;vertical-align:middle;display:block;margin:0 1em;
- }
- .bgno{background:none;}
- .column_btm{background:url(titletag.png) 0 -259px;height:5px;font-size:1px;clear:both;}
- .column{background:url(cutbg.gif) -2585px 0;}
- </style>
- </head>
- <body>
- <div class="column">
- <h2><span>搜狐视频</span></h2>
- <a href="http://blog.csdn.net/wallimn" title="欢迎访问我的博客" target="_blank">浙江发现潭底恢宏地宫 呈北斗七星排列</a>
- <a href="http://blog.csdn.net/wallimn" title="欢迎访问我的博客" target="_blank">干扰演讲学生获保释 自称无罪</a>
- <a class="bgno" href="http://blog.csdn.net/wallimn" target="_blank">刘谦诡异魔术 影子找扑克牌如鬼魂显灵</a>
- <div class="column_btm"></div>
- </body>
- </html>