【发布时间】:2013-04-12 14:51:01
【问题描述】:
一个。 src - 当我使用“img src”时,图像没有在 Firefox 中加载。在 chrome 和 IE 中加载。
b. href - 当我尝试从外部添加 css 文件时它不起作用。
mystyle.css
h1, h2, h3 {
color: #36C;
font-weight: normal;
letter-spacing: .4em;
margin-bottom: 1em;
text-transform: lowercase;
}
css.htm
<head>
<link type="text/css" href="C:\Divakar_Repository\html_learning\mystyle. css">
</head>
<h1>CHEcking the css style</h1>
但它将输出显示为黑色的“检查 css 样式”。 实际上输出应该是蓝色的“检查css样式”。
c。导入 - 它不起作用。
import.htm
<head>
@import "C:\Divakar_Repository\html_learning\mystyle.c ss";
</head>
<h1> CHEking the css file </h1>
但它返回的输出如下。
@import "C:\Divakar_Repository\html_learning\mystyle.c ss"; 检查css文件
任何帮助将不胜感激。
谢谢……
【问题讨论】:
-
"ystyle.c ss";"为什么c和ss之间有空格?
-
中也有空格。
-
我刚刚从记事本++中复制了代码。不知道为什么在这里显示这样。在我的文档中找不到空间。