嗨,我是一个新手程序员,我正在制作我的第一个网站。我在Mac上工作,每当我直接从finder预览文件时,即使路径正确,我的CSS和Images也不会显示出来。当我在Dreamweaver CS6和Brackets中预览文件时,视线看起来完全是我想要的,但是当我选择直接从文件预览时看不到。这里是CSS和HTML文件。任何建议将不胜感激。谢谢You.Here是发生了什么Here从文件预览时没有显示图像
@charset "UTF-8";
/* CSS Document */
#menuBar{
position: fixed;
width: 100%;
top: -10px;
right: 0px;
z-index: 2;
}
#logo {
position: fixed;
z-index: 3;
right:1100px;
}
#menuButton, #aboutButton, #locationButton, #cateringButton{
position: fixed;
z-index: 4;
color: white;
font-family:Futura;
font-size:10px;
top:30px;
}
#menuButton {
right:610px;
}
#aboutButton {
right:475px;
}
#locationButton{
right:308px;
}
#cateringButton{
right:150px;
}
#facebookButton{
right:60px;
top:40px;
position: fixed;
height:40px;
width: 50px;
z-index:5;
}
<!DOCTYPE HTML>
<html>
<body>
<link href="Roundhouse/CSS/homePage.css" type="text/css" rel="stylesheet" />
<div id="menuBar"><img src="Roundhouse/Images/MenuBar.png" alt="menu Bar" width="100%" height="125px" />
</div>
<div id="logo">
<img src="Roundhouse/Images/Round-House.gif" alt="logo" width="100px" height="100px" /></div>
<div id="menuButton">
<h1>MENU</h1>
</div>
<div id="aboutButton">
<h1>ABOUT</h1>
</div>
<div id="locationButton">
<h1>LOCATION</h1>
</div>
<div id="cateringButton">
<h1>CATERING</h1>
</div>
<div id="facebookButton">
<a href="https://www.facebook.com/RoundhouseBBQ/?rf=205148012847894" target="_blank"> <img src="Roundhouse/Images/facebooklogo.png" border="0" alt="facebook" height="30px" width="30px" >
</a>
</div>
</body>
</html>
你可以截图的结果是什么? – mmativ
我将它添加到说明 – KaylaKett13
检查开发人员工具,并检查您的路径是否正确。 – mmativ