創(chuàng)建一個html頁面, 其內(nèi)容為一個無序列表, 列表中至少包含了5本暢銷書,每本書之前的項目符號必須采用概述封面的縮略圖。這些信息可以沖web上獲取。 要求采用css方法進行布局。
html:
代碼如下:
<html>
<head>
<meta http-equiv=content-type content=text/html; charset=gb2312 />
<link href=book.css rel=stylesheet type=text/css>
</head>
<!--.author:svitter;-->
<body>
<div>
<h1 class=diffentcolor>linux暢銷書</h1>
<div id=menu>
</div>
<div id=content>
<ul>
<li id=book1>鳥哥的linux私房菜基礎篇</li>
<li id=book2>鳥哥的linux私房菜服務器篇</li>
<li id=book3>linux命令行與shell腳本編程大全</li>
<li id=book4>linux運維之道</li>
<li id=book5>linux/unix系統(tǒng)編程手冊</li>
</ul>
</div>
</div>
</body>
book.css:
代碼如下:
.diffentcolor{color:green;}
#differcolor{color:green}
body, td, div, .p, a {
font-family: arial,sans-serif;
}
h1,h2{
font-family:sans-serif;
color:gray;
}
.author{
by:svitter;
}
h1{
border-bottom:1px solid black;
border-bottom:1px;
solid black;
}
div#container{width:500p}
div#menu {width:150px;float:left;}
div#content {float:left;}
li#book1{
list-style-image:url(pic/popularbook.jpg);
}
li#book2{
list-style-image:url(pic/popularbook2.jpg);
}
li#book3{
list-style-image:url(pic/popularbook3.jpg);
}
li#book4{
list-style-image:url(pic/popularbook4.jpg);
}
li#book5{
list-style-image:url(pic/popularbook5.jpg);
}
更多信息請查看IT技術專欄