鱼C论坛

 找回密码
 立即注册
查看: 1389|回复: 1

[已解决]css一直没法引入,跪求大佬解决

[复制链接]
发表于 2022-1-22 12:00:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

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;
}
附件我也上传了,求大佬看看

最佳答案
2022-1-22 12:25:18
  1. <!DOCTYPE html>
  2. <html lang="en">

  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>东哥大卖场1</title>
  8.     <link rel="stylesheet" type="text/css" href="./css/不知妻美刘强东.css"> <!-- 改成 ./-->
  9. </head>

  10. <body>
  11.     <!-- 头部 -->
  12.     <header>
  13.         <div class="w">
  14.             <a href="#">
  15.                 <img src="./京东首页数据/imgs/1.jpg" height="80" width="1500" alt="logo"> <!-- 改成 ./-->
  16.             </a>
  17.         </div>
  18.     </header>
  19.     <!-- 导航栏 -->
  20.     <div class="shortcut">
  21.         <div class="w">
  22.             <ul class="f1">
  23.                 <li>福建</li>
  24.             </ul>
  25.         </div>
  26.     </div>
  27. </body>

  28. </html>
复制代码

css一直没法显示

css一直没法显示

东哥大卖场.zip

1.54 MB, 下载次数: 2

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2022-1-22 12:25:18 | 显示全部楼层    本楼为最佳答案   
  1. <!DOCTYPE html>
  2. <html lang="en">

  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>东哥大卖场1</title>
  8.     <link rel="stylesheet" type="text/css" href="./css/不知妻美刘强东.css"> <!-- 改成 ./-->
  9. </head>

  10. <body>
  11.     <!-- 头部 -->
  12.     <header>
  13.         <div class="w">
  14.             <a href="#">
  15.                 <img src="./京东首页数据/imgs/1.jpg" height="80" width="1500" alt="logo"> <!-- 改成 ./-->
  16.             </a>
  17.         </div>
  18.     </header>
  19.     <!-- 导航栏 -->
  20.     <div class="shortcut">
  21.         <div class="w">
  22.             <ul class="f1">
  23.                 <li>福建</li>
  24.             </ul>
  25.         </div>
  26.     </div>
  27. </body>

  28. </html>
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 1 反对 0

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-3-28 17:50

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表