文章詳情頁
id部分不顯示紅色
瀏覽:93日期:2024-05-22 18:17:13
問題描述
css:
/*id選擇器*/
#stress{
color:red;
}
html:
<!doctype html>
<html>
<head>
<!--id選擇器-->
<meta http-equiv="content-Type"content="text/html;charset="UTF-8">
<title>id選擇器</title>
<link rel="stylesheet" href="word.css" type="text/css">
</head>
<body>
<p>三年級時我還是一個<span id="stress">膽小如鼠</span>的小女孩,上課從來不敢回答老師提出的問題。</p>
</body>
</html>
問題解答
回答1:<meta http-equiv="content-Type"content="text/html;charset="UTF-8">
去掉UTF-8前的引號 試試
<meta http-equiv="content-Type" content="text/html;charset=UTF-8" />
回答2:外部css樣式的路徑是不是寫錯了?
相關(guān)文章:
1. Span標簽2. docker-machine添加一個已有的docker主機問題3. redis啟動有問題?4. 關(guān)docker hub上有些鏡像的tag被標記““This image has vulnerabilities””5. docker-compose中volumes的問題6. python - django如何每次調(diào)用標簽的時候都取隨機數(shù)據(jù)7. javascript - ng-options 設(shè)置默認選項,不是設(shè)置第一個哦,看清楚了!8. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問題。9. java - Collections類里的swap函數(shù),源碼為什么要新定義一個final的List型變量l指向傳入的list?10. javascript - 計算面積函數(shù)代碼
排行榜

熱門標簽