@charset "utf-8";/* CSS Document */*{margin:0;padding:0;font-size:12px;}<!-- background-color:F5F5F5;-->body{ background-color:#0F0;??}.top{ width:100%; height:27px; background:url(../image/top_bg.jpg) repeat-x ;}.top_content{width:1000px;margin:0 ?auto;}.top_content li{ list-style-image:url(../image/li_bg.gif); float:right; width:70px; line-height:27px;}<!--a:link {color: #FF0000} 未訪問的鏈接 a:visited {color: #00FF00} 已訪問的鏈接 a:hover {color: #FF00FF} 鼠標(biāo)移動到鏈接 a:active {color: #0000FF} 選定的鏈接 -->?.top_content ul li a:link, .top_content ul li a:visited{ color:#0F0; text-decoration:none; }.top_content ul li a:hover, .top_content ul li a:active{color:#F06;text-decoration:none; }<!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>無標(biāo)題文檔</title><!--/*Link標(biāo)簽有兩個作用:1. 定義文檔與外部資源的關(guān)系;2. 是鏈接樣式表。?href 為 URL地址;?type為鏈接文件的格式;?rel 該屬性規(guī)定當(dāng)前文檔與被鏈接文檔之間的關(guān)系。但是,只有 rel 屬性的 "stylesheet" 值得到了所有瀏覽器的支持。其他值只得到了部分地支持。stylesheet 文檔的外部樣式表。 ?*--><link href="css/main.css" rel="stylesheet" type="text/css" /><script src="js/setHomeSetFav.js" type="text/javascript" charset="gb2312"></script></head><body><div class="top">? <div class="top_content">? ? ? <ul>? ? ? ?<li><a herf="#">聯(lián)系我們</a></li>? ? ? ?<li><a herf="#" onclick="AddFavorite(window.location,document.litle)">加入收藏</a></li>? ? ? ?<li><a herf="#" onclick="SetHome(window.location)">設(shè)為首頁</a></li>? ? ? ??? ? ? ??? ? ? </ul>? ? </div></div>? <div>33333</div></body></html>
3 回答

chage0527
TA貢獻3條經(jīng)驗 獲得超1個贊
你的問題讓人看不懂!?。。?/p>
針對我的理解,有這些問題:
首先你css里面的注釋就不對,css的注釋是用/**/,HTML注釋用<!--...-->
其次,像樓上說的,?<div>33333</div>沒定義,哪來的樣式?
最后,先把自己的代碼整理清楚了再問問題!
- 3 回答
- 0 關(guān)注
- 1520 瀏覽
添加回答
舉報
0/150
提交
取消