我在瀏覽器中預覽網頁時可以看到我的菜單欄,但在Dreanweaver設計視圖中看不到它?爲什麼我在設計視圖中看不到圖像,但可以在瀏覽器中看到它?
這裏是我的代碼incase有一個錯誤 CSS;
#bar {
margin-top:5%;
background:url("/Users/Macbook/Desktop/test website/images/bar.png") no-repeat center;
height:50px;
background-size:100% 100%;
}
HTML;
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<link href="Untitled-3.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="bar">
</div>
</body>
</html>
謝謝你的幫助。
Dreamweaver對此不可靠 – jmercier
對不起,你是什麼意思,通常當我創建任何頁面,預覽在設計視圖中可用時,? – bjbear123
你能否在#bar css背景中添加這個plz:red;你可以查看紅色框? – jmercier