Html 多个CSS文件不';行不通
我用引导创建了一个非常简单的页面。(我有一个引导组件) 我添加了一个额外的css文件,但在包含bootstrap.min.css时,它不起作用 有人知道为什么吗 我的页面:Html 多个CSS文件不';行不通,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,我用引导创建了一个非常简单的页面。(我有一个引导组件) 我添加了一个额外的css文件,但在包含bootstrap.min.css时,它不起作用 有人知道为什么吗 我的页面: <html> <head> <link rel="stylesheet" href="css/mystyle.css" type="text/css"> <-- This won't work <link rel="stylesheet" href="h
<html>
<head>
<link rel="stylesheet" href="css/mystyle.css" type="text/css"> <-- This won't work
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <-- while this is included
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<TITLE>TestDev</TITLE>
</head>
<body>
<div class="well">
<p>Welcome</p>
</div>
</body>
</html>
更改包含的样式的顺序
mystyle.css
应该包含在Twitter引导文件之后,以便覆盖默认样式
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/mystyle.css" type="text/css">
So simpel。非常感谢。
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/mystyle.css" type="text/css">