【发布时间】:2016-06-20 06:27:23
【问题描述】:
我在这里看到了一些关于问题的答案。还是找不到。使用记事本++...
index.html 文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet"
href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/
css/bootstrap.min.css">
<!-- jQuery library -->
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.j s"></script>
<!-- Latest compiled JavaScript -->
<scriptsrc="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min. js"></script>
<!-- the main css sheet -->
<link type="text/css" rel="main" href="main.css">
</head>
<body> <p>This is a test.</p> </body>
main.css 文件
p{
font-size: 250px;
}
上面的css对html没有任何影响
我在尝试将背景图像添加到引导 jumbotron 时遇到了问题。
不过,在 google chrome 上作为源查看后,样式表似乎是链接的。
可能出了什么问题?
下面是我本地机器上文件结构的图片。
我已经把css和html放到了网站文件夹中...
【问题讨论】:
-
为什么属性值中有空格?
-
试试这个:
<link rel="stylesheet" type="text/css" href="main.css"> -
你指的是什么?
-
@Nilzone- 我试过了......它仍然没有修改 p 标签之间的文本......我很确定没有拼写错误。大声笑
-
添加您的文件夹结构的图片 - 这很可能是您的问题所在。