여기 하나의 파일이 있습니다.동일한 CSS 코드이지만 다른 출력
<div id="banner">
<div id="bannerTextBlue"> <h1> lorem ipsum </h1> </div>
<div id="bannerTextYellow"> <h1> dolor sit amet. </h1> </div>
</div>
을 그리고 내 CSS는 이것이다 :
내 HTML이처럼 보였다
#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;
}
그러나 출력이 다릅니다. 그것은 크롬에서 괜찮아 보이기로되어 있었지만 Firefox에서는 파손되었습니다. 여기에 결함이 있는지 확실하지 않습니다. 도와주세요? 내 CSS 구조에 문제가 있습니까?
나에게 잘 보입니다. 이슈가 뭐야? - 실행 가능한 샘플로 작성한 코드 : http://jsfiddle.net/WwNdp/ – Smamatti
모든 브라우저에서 동일하게 보이므로 정확한 문제를 알려줄 수 있습니다 .... –
그 차이점은 무엇입니까? 나는 아무도 정직하지 못합니다. – ogur