|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
css一直没有显示,跪求大佬解决,这是以下代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>东哥大卖场1</title>
<link rel="stylesheet" type="text/css" href="/css/不知妻美刘强东.css">
</head>
<body>
<!-- 头部 -->
<header>
<div class="w">
<a href="#">
<img src="/京东首页数据/imgs/1.jpg" height="80" width="1500" alt="logo">
</a>
</div>
</header>
<!-- 导航栏 -->
<div class="shortcut">
<div class="w">
<ul class="f1">
<li>福建</li>
</ul>
</div>
</div>
</body>
</html>
这是CSS部分
/* */
.w{
width: 1500px;
margin: 0 auto;
}
/* 左浮动 */
.f1{
float: left;
}
/* 右浮动 */
.fr{
float: right;
}
ul{
list-style: none;
margin: 0;
padding: 0;
}
body {
background-color: black;
}
/* 头部部分 */
header {
height: 80px;
background-color: #020000;
}
/* 快速?航? */
.shortcut{
height: 32px;
line-height: 30px;
background-color: black;
border-bottom: 1px solid #ddd;
font-size: 12px;
color: #999;
}
附件我也上传了,求大佬看看
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>东哥大卖场1</title>
- <link rel="stylesheet" type="text/css" href="./css/不知妻美刘强东.css"> <!-- 改成 ./-->
- </head>
- <body>
- <!-- 头部 -->
- <header>
- <div class="w">
- <a href="#">
- <img src="./京东首页数据/imgs/1.jpg" height="80" width="1500" alt="logo"> <!-- 改成 ./-->
- </a>
- </div>
- </header>
- <!-- 导航栏 -->
- <div class="shortcut">
- <div class="w">
- <ul class="f1">
- <li>福建</li>
- </ul>
- </div>
- </div>
- </body>
- </html>
复制代码
|
|