CSS更改没有反映。为什么? [英] CSS changes are not getting reflected. Why?
问题描述
我的工作我的网站上,每当我加入了一些新的线路,以我的CSS文件,它只是不希望使用我做的线条。
I am working on my website and whenever I am adding some new lines to my CSS file, it just doesn't want to use the lines I made.
。然而,他们应该是正常的。
Yet, they should be alright.
.what-new {
padding:2em 0 4em;
text-align:center;
}
.what-new h3 {
font-size:4em;
font-weight:700;
color:#000;
margin:0.5em 0;
只是作为一个例子。
Just as an example.
CSS文件正在工作的一部分,但从某处,它只是停止使用我的文件。
然而,它链接在< head >。
The CSS file is working at one part, but from somewhere it just stops using my file. Yet, it is linked in the < head >.
<link rel="stylesheet" href="style/css_2-play.css" type="text/css"/>
我的HTML代码如下(注意,这只是代码的一部分) / p>
And my HTML code is the following(note that this is just a part of the code):
<div class="what-new">
<div class="container">
<h3>What's new</h3>
<div class="blog-news">
<div class="blog-news-grid">
<div class="news-grid-left">
<h4>06</h4>
<small>of january 2015</small>
</div>
任何人都知道这个解决方案?
Anyone know a solution for that?
推荐答案
我忘记在CSS文件中关闭 {
这就是为什么所有的代码没有显示在页面上。
I forgot to close a {
in the CSS file.
That's why all the code didn't show up on the page.
这篇关于CSS更改没有反映。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!