HTML和CSS做網頁執行個體教程:網頁列表隔行變色

來源:互聯網
上載者:User
僅供新手參考學習,歡迎大家提出更多的實現方法。
<!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>
<script type="text/javascript"> </script>
<style type="text/css">
.list ul{position:relative;background:url(這裡放一個背景圖片) repeat 0 0;width:400px;}
.list ul li{height:32px;line-height:32px;}
.list ul li em{position:absolute;right:0px;}
</style>
</head>
<body>
<div class="list">
<h3>這是隔行變色啊..</h3>
<ul>
<li><a href="" alt="">這是隔行變色啊...</a><em>(2009-8-20)</em></li>
<li><a href="" alt="">這是隔行變色啊...</a><em>(2009-8-20)</em></li>
<li><a href="" alt="">這是隔行變色啊...</a><em>(2009-8-20)</em></li>
<li><a href="" alt="">這是隔行變色啊...</a><em>(2009-8-20)</em></li>
<li><a href="" alt="">這是隔行變色啊...</a><em>(2009-8-20)</em></li>
</ul>
</div>
</body>
</html>

以上就是HTML和CSS做網頁執行個體教程:網頁列表隔行變色的內容,更多相關文章請關注topic.alibabacloud.com(www.php.cn)!

  • 相關文章

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.