css中实现两个div左右并排摆放,且自动按比例伸缩
| #Div0 |
| { |
| float:left; background-color:Blue; width:100%; height:180px; |
| } |
| #Div1 |
| { |
| float:left; background-color:Blue; width:70%; height:180px; |
| } |
| #Div2 |
| { |
| background-color: Green; width:30%;height:180px; float:right; |
| } |
0
0
css中实现两个div左右并排摆放,且自动按比例伸缩
| #Div0 |
| { |
| float:left; background-color:Blue; width:100%; height:180px; |
| } |
| #Div1 |
| { |
| float:left; background-color:Blue; width:70%; height:180px; |
| } |
| #Div2 |
| { |
| background-color: Green; width:30%;height:180px; float:right; |
| } |
本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门AI工具
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号