文章詳情頁(yè)
請(qǐng)問(wèn)一下用notepad++可以照著你這樣來(lái)編嗎?為什么我用notepad++編輯的時(shí)候那個(gè)容器那里顏色是黑的,不會(huì)像其他變量那樣變顏色。
瀏覽:156日期:2022-06-22 17:11:27
問(wèn)題描述
<!DOCTYPE html>
<html>
<body>
<head>
<title>汽車(chē)在線租賃</title>
<meta charset=utf-8 />
<style type="text/css">
.container{
max-width:960px;
margin:0 auto
</style>
</head>
<div class="container">
<div class="header"></div>
<div class="main"></div>
<div class="footer"></div>
</body>
</div>
</html>
問(wèn)題解答
回答1:<style type="text/css"> .container{ max-width:960px; margin:0 auto </style>
看代碼, 你沒(méi)有設(shè)置.container的背景色, 也沒(méi)有將這個(gè)類(lèi)樣式閉合
排行榜

熱門(mén)標(biāo)簽