您的位置:首頁技術文章
文章詳情頁

請問一下用notepad++可以照著你這樣來編嗎?為什么我用notepad++編輯的時候那個容器那里顏色是黑的,不會像其他變量那樣變顏色。

瀏覽:149日期:2022-06-22 17:11:27

問題描述

<!DOCTYPE html>

<html>

<body>

<head>

<title>汽車在線租賃</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>

問題解答

回答1:

<style type="text/css"> .container{ max-width:960px; margin:0 auto </style>

看代碼, 你沒有設置.container的背景色, 也沒有將這個類樣式閉合

国产综合久久一区二区三区