文章詳情頁
id部分不顯示紅色
瀏覽:148日期: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. docker-compose中volumes的問題2. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””3. boot2docker無法啟動4. nignx - docker內(nèi)nginx 80端口被占用5. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.6. java - SSH框架中寫分頁時service層中不能注入分頁類7. dockerfile - 為什么docker容器啟動不了?8. node.js - antdesign怎么集合react-redux對input控件進行初始化賦值9. docker容器呢SSH為什么連不通呢?10. 關(guān)于docker下的nginx壓力測試
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備