Html css背景色不适用于第一个div
我有3个固定位置的div,第一个没有显示背景色,我在这里挠头,因为我已经尝试了一切,我没有看到我的代码有任何异常,不知道为什么会发生这种情况,如果有人可以帮助请 这是我的HTML:Html css背景色不适用于第一个div,html,css,Html,Css,我有3个固定位置的div,第一个没有显示背景色,我在这里挠头,因为我已经尝试了一切,我没有看到我的代码有任何异常,不知道为什么会发生这种情况,如果有人可以帮助请 这是我的HTML: <div class"header"> </div> <div class="gssd"> <iframe frameborder="0" scrolling="no" src="http://www.example.com"></iframe>
<div class"header">
</div>
<div class="gssd">
<iframe frameborder="0" scrolling="no" src="http://www.example.com"></iframe>
</div>
<div class="gosd">
<p>testing 123</p>
</div>
在html中的div上设置类时,缺少等号<代码>类“header”应该是
class=“header”
在html中的div上设置类时,缺少等号<代码>类“header”应该是
class=“header”
哦,谢谢!,它总是在我眼前,我从来没有注意到最明显的错误。谢谢!,它总是在我眼前,我从来没有注意到最明显的错误
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 100px;
font-family: Helvetica;
background-color: #000;
font-weight: bold;
margin: 0;
padding: 0;
}
.gssd {
position: fixed;
top: 100px;
bottom: 100px;
left: 0;
right: 0;
}
.gssd > iframe {
background: url(/tvScreensScript/img/acquire-wp.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
overflow: auto;
width: 100%;
height: 100%;
}
.gosd {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100px;
font-size: 4em;
color: #141f65;
background: url(/tvScreensScript/img/scroll-bg.png) no-repeat top right;
font-family: Comic Sans MS;
font-weight: bold;
}