ここに 1 つのファイルがあります。
私のhtmlは次のようになりました:
<div id="banner">
<div id="bannerTextBlue"> <h1> lorem ipsum </h1> </div>
<div id="bannerTextYellow"> <h1> dolor sit amet. </h1> </div>
</div>
そして私のcssはこれです:
#banner{
background: #FFF;
width: 1140px;
margin:30px auto 0;
border: 12px solid #323232;
height: 448px;
position:relative;
}
#bannerTextBlue{
height: 90px;
background: #027cd6;
width: 600px;
right: 0px;
position: absolute;
padding-left: 90px;
}
#bannerTextBlue h1{
color: #FFFFFF;
font-size: 88px;
line-height: 50px;
padding-right: 30px;
text-transform: uppercase;
}
#bannerTextYellow{
height: 60px;
background: #f4b437;
width: 500px;
right: 0px;
top: 100px;
position: absolute;
padding-left: 10px;
}
#bannerTextYellow h1{
color: #FFFFFF;
font-size: 50px;
line-height: 35px;
padding-right: 30px;
text-transform: uppercase;
}
しかし、出力は異なります。Chrome では問題なく表示されるはずですが、Firefox では破棄されます。ここでどこに不具合があるのか わかりません。助けてください?私のcss構造に何か問題がありますか?