在一个大的div里有2个横列(DIV),并且在大的div里加入背景图片。可是改好后,在Firefox下却无法正确显示背景图片。代码是这样的:;
<div id="footer">; <div id="footer_left">Content1</div>; <div id="footer_right">Content2</div>; </div>
#footer {; width:730px;; background-image: url(../images/bg.jpg);; background-repeat: repeat-y;; }; #footer_left {; float:left;; width:230px;; }; #footer_right{; float:left;; width:500px;; }
此代码是左右两栏排版,利用父DIV(footer)的背景图片做子DIV(footer_left)的背景,来达到左右两栏高度对齐。;
#footer {; width:730px;; background-image: url(../images/bg.jpg);; background-repeat: repeat-y;; overflow:auto;; }
按字母顺序浏览:A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
→我们致力于为广大网民解决所遇到的各种电脑技术问题 如果您认为本词条还有待完善,请 编辑词条