gpt4 book ai didi

Html 和 Css 文件没有链接

转载 作者:行者123 更新时间:2023-11-28 03:23:49 25 4
gpt4 key购买 nike

我有以下 css 和 html 文件。

html, body, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins,
kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol,
ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot,
th, td, article, aside, canvas, details, figcaption,
figcaption, footer, header, hgroup, menu, nav, section, summary, time,
mark, audio, video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
font-family: "HelveticaNeue", Arial, Helvetica, sans-serif
}

#tab-bar {
background: #050405;
border-bottom: 1px #441d22 solid;
position: relative;
}

/* Clearfix to stop our floats escaping */
#tab:before, #tab-bar:after {
content: "\0020";
display: block;
height: 0;
overflow: hidden;
}

#tab-bar:active {
clear: both;
}

/* Float our three list items so they're evenly spaced */
#tab-bar li {
display: inline;
float: left;
width: 33.333%;
}

/* Set a elements as blocks */
#tab a {
color: #cdcdcd;
display: block;
font-size: 0.875em; /* 12px / 14px */
font-weight: bold;
height: 4.583em; /* 55px / 12px */
margin: 0 0.833em; /* 10px / 12px*/
overflow: hidden;
padding-top: 1.428em; /* 6px / 14px */
position: relative;
text-align: center;
text-decoration: none;
}​
<!DOCTYPE html>
<!--[if IEMobile 7]><html class="no-js iem7"><[endif]-->
<!--[if (gt IEMobile 7)|!(IEMobile)]]><!-->html class="no-js">!--<![endif]-->
<html>
<head>
<meta charset="utf-8" />
<title>StarTrackr</title>
<link rel="stylesheet" href="screen.css" type="text/css" media="screen" />
</head>
<body>
<ul id="tab-bar" class="page-spots">
<li id="tab-spots">
<a href="#">Spots</a>
</li>
<li id="tab-sighting">
<a href="#">Add a sighting</a>
</li>
<li id="tab-stars">
<a href="#">Stars</a>
</li>
</ul><!--#tab-bar -->
</body>
</html>​

当我运行它时,我没有得到一个无序列表,每个列表项都根据 css 设置了样式,而是得到了三个没有样式(没有背景颜色、边距...等)的列表项。

问题是什么?

再次感谢您的帮助

最佳答案

  1. 检查screen.css是否和html文件在同一个文件夹
  2. 清除浏览器缓存

关于Html 和 Css 文件没有链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45090828/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com