請大神指導(dǎo) 有沒寫的不對的地方
<!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=gb2312" />
<title>3.10新聞中心制作評測題</title>
<style type="text/css">
/*在此定義相關(guān)CSS樣式*/
.toplist{
? ? width:300px;
? ? height:180px;
? ? border:1px solid #e8e8e8;
? ? text-align:center;
? ? }
ul{
? ? list-style-type:none;
? ? padding:5px;
? ? }
em{
? ? width:20px;
? ? height:16px;
? ? text-align:center;
? ? color:#333;
? ? display:inline-block;
? ? font-style:normal;
? ? background:url(http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg.num.gif);
? ? background-position:0px 16px;
? ? float:left;
}
.top em{
? ? background:url(http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg.num.gif);
? ? background-position:16px 0px;
}
a:link,a:visited{
? ? text-decoration:none;
? ? color:red;
}
a:hover,a:active{
? ? text-decoration:none;
? ? color:yellow;
}
</style>
</head>
<body>
<div class="topList">
<ul>
<li class="top"><em>01</em>
<p><a href="http://idcbgp.cn/" >【慕客訪談?dòng)脩羝俊坝袨閷沤z”在路上</a></p>
</li>
<li class="top"><em>02</em>
<p><a href="http://idcbgp.cn/">【有獎(jiǎng)活動(dòng)】給父親的三行書信</a></p>
</li>
<li class="top"><em>03</em>
<p><a href="http://idcbgp.cn/">《程序猿,請曬出你的童年》活動(dòng)獲獎(jiǎng)公告</a></p>
</li>
<li><em>04</em>
<p><a href="http://idcbgp.cn/">【慕課訪談】破繭成蝶——美女程序員的蛻變史</a></p>
</li>
<li><em>05</em>
<p><a href="http://idcbgp.cn/">【獲獎(jiǎng)公告】追“球”巔峰,爭當(dāng)“預(yù)言帝”</a></p>
</li>
<li><em>06</em>
<p><a href="http://idcbgp.cn/">【問卷調(diào)查】慕課網(wǎng)用戶學(xué)習(xí)情況大調(diào)查</a></p>
</li>
</ul>
</div>
</body>
2015-02-28
布局沒問題 但是代碼有幾個(gè)小問題 1)?css沒有重置? 2)頁面最好少用標(biāo)簽選擇器 (css中的em,?如果一定要用的話?可以在前面加一個(gè)class 或者id,這樣可以避免污染)。3)background跟background-position可以合并一起。。。