做DIV层时遇到的排版问题!!

来源:百度知道 编辑:UC知道 时间:2024/06/01 09:42:33
想实现
的效果,却变成了图中那样了!要怎么解决啊?网页代码如下~新建网页 1#middle {height:223px; width:535px}#background_06 {height:223px; width:228px; background-image: url('images/background_06.png'); float:left;}#background_07 {height:32px; width:307px; background-image: url('images/background_07.png'); float:left;}#background_09 {height:191x; width:307px; background-image: url('images/background_09.png'); }

第一,#background_09 {height:191x; width:307px; background-image: url('images/background_09.png'); }
这是你的源代码,把height:191x; 改成height:191px;

第二,</stytle>改成</style>

第三,在#background_09 {height:191x; width:307px; background-image: url('images/background_09.png'); }中,加上float:left;因为你的前两个样式都设置了左漂浮,如果你的这个DIV不漂浮,会被前两个掩盖。

第四,写代码的时候要认真哦

把09套到07里面