.psd를 XHTML로 변환하고 래퍼의 모든 너비에 걸쳐 메뉴 막대가있는 둥근 모서리가있는 메뉴 막대가 있습니다. 중간에 하나는 repeat-x로 설정됩니다.절대 위치 대 XHTML/CSS의 부동 소수점
예를 들어 나는이 있습니다
<div id="tagline" class="grid_16"><!-- begin tagline -->
<div class="left"></div>
<div class="center">
<h2>Here goes your tagline. Two lines to write a message that best describes your business or your style if you use this theme as a portfolio.</h2>
</div>
<div class="right"></div>
</div><!-- end tagline -->
#tagline {background:url(images/tagline.jpg) repeat-x top; height:96px;}
#tagline .center {width:930px; float:left;}
#tagline .left {background:url(images/taglineLeft.jpg) repeat-x top left; width:10px; height:96px; float:left;}
#tagline .right {background:url(images/taglineRight.jpg) repeat-x top right; width:10px; height:96px; float:right;}
내가 끝을 위치에 대한 부동 소수점을 사용하고, 나의 질문은 플로트 또는 위치하여 최적의 솔루션입니다 것입니다 : 절대. 이전 브라우저에서 문제가 발생하지 않기를 바란다.
감사합니다.
팁 감사합니다. 도움이 될 것입니다. – Andrei
+1 된 중첩 된 배경은 일반적으로 배치 된 장식 요소보다 쉽고 안정적입니다. – bobince
동의합니다. 그래서 마크 업이보기 흉한 것처럼 보일지라도 포맷을 사용하기 위해 –