CSS考試題目

來源:互聯網
上載者:User

標籤:邊框   htm   ade   charset   ora   color   xhtml 1.0   xhtml   weight   

  1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">  3 <head>  4     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">  5     <title>新聞排行</title>  6     <style>  7     *{margin: 0;padding: 0;}  8     li{list-style: none;}  9     body{font-family: 微軟雅黑;} 10     .box{ 11         height: 300px; 12         width: 470px; 13         margin: 100px auto; 14         background-color: #fff; 15     } 16     /*頂部導覽列*/ 17     .box .header{ 18         width: 100%; 19         height: 32px; 20         line-height: 32px; 21         background-color: #fff; 22         border-bottom: 5px solid red;/*設定導覽列下的紅線*/ 23     } 24     .box .header ul li{ 25         float: left; 26         width: 45px; 27         padding-left: 15px; 28         padding-right: 15px; 29         text-align: center; 30         background-color: #ccc; 31         border-left: 2px solid #F1F1F1;/*設定導覽列左邊邊框線*/ 32     } 33     .box .header ul li a:link,.box .header ul li a:visited{ 34         text-decoration: none; 35     } 36     .box .header ul li a:hover{ 37         color: gold; 38     } 39     .box .header .news{ 40         width: 80px; 41         padding-left: 30px; 42         padding-right: 20px; 43         text-align: center; 44         border: none; 45         background-color: #fff;     46         font-weight: bold; 47     } 48     .box .header .guonei{ 49         background-color: #f00;/*設定國內兩個字的背景顏色*/ 50         border-right: 1px solid #F1F1F1; 51     } 52     .box .header .guonei a:link,.box .header .guonei a:visited{ 53         text-decoration: none; 54         color: #fff; 55     } 56     .box .header .guonei a:hover{ 57         color:gold; 58     } 59     /*新聞版塊*/ 60     .box .content{ 61         color: #C3C3C3;/*設定新聞地區文本顏色*/ 62     } 63     .box .content ul{ 64         padding-left: 50px; 65         width: 100%; 66         height: 260px; 67         background: url(bg.gif) no-repeat 20px 5px;/*設定列表前面的圖片*/ 68     } 69     .box .content ul a:link,.box .content ul a:visited{ 70         text-decoration:none; 71         color: #C3C3C3; 72     } 73     .box .content ul a:hover{ 74         color: #333; 75     } 76     .box .content ul li{ 77         margin-top: 3px; 78         height: 23px; 79         line-height: 23x; 80     } 81     </style> 82 </head> 83 <body> 84     <div class="box"> 85         <div class="header"> 86             <ul> 87                 <li class="news"><a href="#">新聞排行</a></li> 88                 <li class="guonei"><a href="#">國內</a></li> 89                 <li><a href="#">國際</a></li> 90                 <li><a href="#">社會</a></li> 91                 <li><a href="#">網評</a></li> 92             </ul> 93         </div> 94         <div style="clear: both;"></div> 95         <div class="content"> 96             <ul> 97                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li> 98                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li> 99                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>100                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>101                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>102                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>103                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>104                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>105                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>106                 <li><a href="#">美軍高官:不排除和中國發生直接軍事對抗可能會輸.....</a></li>107             </ul>108         </div>109     </div>110 </body>111 </html>

 

CSS考試題目

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.