1<! DOCTYPE html Public"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >234<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8" >5<title> News Ranking </title>6<style>7*{margin:0;padding:0;}8li{List-style:none;}9Body{font-family:Microsoft Ya-hei;}Ten.box{ OneHeight300px; AWidth470px; -Margin100px Auto; -Background-color:#FFF; the } - /*Top navigation bar*/ -. box.Header{ -width:100%; +Height32px; -Line-height:32px; +Background-color:#FFF; Aborder-bottom:5px solid red;/*set the red line under the navigation bar*/ at } -. box.Headerul li{ - float:Left ; -Width45px; -Padding-left:15px; -Padding-right:15px; inText-align:Center; -Background-color:#CCC; toBORDER-LEFT:2PX Solid#f1f1f1;/* set the left border of the navigation bar * / + } -. box.HeaderUL Li A:link,.box.HeaderUL Li A:visited{ theText-decoration:none; * } $. box.HeaderUL Li A:hover{Panax NotoginsengColorGold; - } the. box.Header.news{ +Width80px; APadding-left:30px; thePadding-right:20px; +Text-align:Center; -Bordernone; $Background-color:#FFF; $Font-weight:Bold; - } -. box.Header.guonei{ theBackground-color:#f00;/* Set the background color of two characters in China * / -BORDER-RIGHT:1PX Solid#f1f1f1;Wuyi } the. box.Header. Guonei A:link,.box.Header. Guonei A:visited{ -Text-decoration:none; WuColor#FFF; - } About. box.Header. Guonei A:hover{ $ColorGold; - } - /*News Section*/ -. box.content{ AColor#c3c3c3;/* Set News area text color * / + } the. box.content ul{ -Padding-left:50px; $width:100%; theHeight260px; theBackground:url (bg.gif) no-repeat 20px 5px;/*set the picture in front of the list*/ the } the. box. Content ul a:link,.box. Content ul A:visited{ -Text-decoration:none; inColor#c3c3c3; the } the. box. Content ul A:hover{ AboutColor#333; the } the. box.Content ul li{ theMargin-top:3px; +Height23px; -Line-height:23x; the }Bayi</style> the the<body> -<divclass= "box" > -<divclass= "header" > the<ul> the<liclass= "News" ><a href= "#" > News ranking </a></li> the<liclass= "Guonei" ><a href= "#" > Domestic </a></li> the<li><a href= "#" > International </a></li> -<li><a href= "#" > Social </a></li> the<li><a href= "#" > Web reviews </a></li> the</ul> the</div>94<div style= "Clear:both;" ></div> the<divclass= "Content" > the<ul> the<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li>98<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li> About<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li> -<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li>101<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li>102<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li>103<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li>104<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li> the<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li>106<li><a href= "#" > Senior U.S. military officials: not to rule out a direct confrontation with China could be lost .....</a></li>107</ul>108</div>109</div> the</body>111CSS Exam Topics