- 主题:请教一个实用css的小问题
文件夹结构是这样的
doc/css/style-2.0.0.css
doc/html/home.html
我在home.html里直接加入下面的<style>可以看到效果
<style type="text/css">
body {background-color: yellow}
h1 {background-color: #00ff00}
h2 {background-color: transparent}
p {background-color: rgb(250,0,255)}
</style>
但是换成link就不行,不知道是哪里的问题呢?
<link rel="stylesheet" href="/css/style-2.0.0.css" type="text/css">
--
FROM 219.2.62.*
firebug一下
【 在 zhengyr (哼哼) 的大作中提到: 】
: 文件夹结构是这样的
: doc/css/style-2.0.0.css
: doc/html/home.html
: ...................
--
FROM 210.74.108.*
难道不应该是../css/style-2.0.0.css
【 在 zhengyr (哼哼) 的大作中提到: 】
: 文件夹结构是这样的
: doc/css/style-2.0.0.css
: doc/html/home.html
: ...................
--
FROM 166.111.39.29
我这么试过也不行啊, css和html放在一个文件夹里直接写style-2.0.0.css的话也不行
【 在 chumsdock (微笑服务) 的大作中提到: 】
: 难道不应该是../css/style-2.0.0.css
--
FROM 131.112.16.*
我这么试过也不行啊, css和html放在一个文件夹里直接写style-2.0.0.css的话也不行
【 在 chumsdock (微笑服务) 的大作中提到: 】
: 难道不应该是../css/style-2.0.0.css
--
FROM 131.112.16.*
html里有base?
【 在 zhengyr (哼哼) 的大作中提到: 】
: 我这么试过也不行啊, css和html放在一个文件夹里直接写style-2.0.0.css的话也不行
--
FROM 221.221.150.*
if the LINK element's href is correct,please check the CSS file's
charset.
u can upload your file here.
【 在 zhengyr (哼哼) 的大作中提到: 】
: 我这么试过也不行啊, css和html放在一个文件夹里直接写style-2.0.0.css的话也不行
--
FROM 211.100.227.*
感覺是路徑設置有問題
【 在 zhengyr (哼哼) 的大作中提到: 】
: 文件夹结构是这样的
: doc/css/style-2.0.0.css
: doc/html/home.html
: ...................
--
FROM 166.111.68.*