2
A
回答
3
HTML
<div id="upleft"></div>
<div id="upright"></div>
<div id="below"></div>
CSS
#upleft { width:100px; height: 500px; background:red; float:left; }
#upright { width:300px; height:200px; background:blue; float:left }
#below { height:300px; width:100%; background:green; clear:both }
1
CSS:
#divA
{
float:left;
width: <width of div A>;
}
#divB
{
float:left;
width: <width of div B>;
}
#divC
{
clear:both;
}
HTML:
<div id="divA"></div>
<div id="divB"></div>
<div id="divC"></div>
0
事情是这样的:
一个 float:left
B float:left;
C 明确:两者;
2
我会制作百分比,这样你就可以得到这些比例,无论用户有多大的屏幕尺寸。
CSS
#sectionA { float:left; width: 20%; } #sectionB { float:left; width: 80%; } #sectionB { clear:both; width: 100%; }
HTML
<div id="sectionA"></div> <div id="sectionB"></div> <div id="sectionC"></div>
0
嗨,你可以让这个仅仅作为这样
的CSS
#left {
width:100px;
min-height: 300px;
background:red;
float:left;
}
#right {
min-height:200px;
background:blue;
float:left;
width:400px;
}
#bottom{
height:200px;
background:green;
clear:both;
}
HTML
<div id="left"></div>
<div id="right"></div>
<div id="bottom"></div>
1
可以内嵌以下为右对齐例如使其:
<div style="width:30%;float:right"><!--write your required tags--></div>
他重新宽度和浮点数取决于要求
相关问题
- 1. 我怎样才能得到屏幕-Android
- 2. 我怎样才能将这些div并排排列
- 3. 我怎样才能让这样的使用CSS和DIV
- 4. android:我怎样才能通过XML将屏幕完全分为两部分?
- 5. 我怎样才能得到这些值
- 6. 我怎样才能复制这与CSS?
- 7. 我怎样才能解决这个屏幕> PHP>无屏幕会发现
- 8. 我怎样才能用连字符分割这个字符串?
- 9. 我怎样才能使这些div去旁边彼此
- 10. 我怎样才能分开这个NSString?
- 11. 在Ghostscript中我怎样才能暂停输出到屏幕
- 12. 我怎样才能使这样的CSS形状与CSS?
- 13. 我怎样才能将HIVE分区?
- 14. 我怎样才能在%相对DIV
- 15. 我怎样才能在一个div
- 16. 我怎样才能在屏幕上显示日历
- 17. 我怎样才能把导航栏在谷歌登录屏幕?
- 18. 我怎样才能让一个div跨越我的屏幕的整个宽度
- 19. 我怎样才能把这些放在一个数组中?
- 20. 我怎样才能让我的网格脱离屏幕?
- 21. 我怎样才能让这样的
- 22. 我怎样才能按他们的百分比分割线程
- 23. 我怎样才能按分隔符分割数组
- 24. 分割屏幕一半CSS
- 25. 我怎样才能让这个长方形帆布一样锋利的CSS DIV
- 26. 使用CSS图像定位和屏幕分辨率,我怎样才能最好地定位这张图片?
- 27. 我怎样才能使用CSS只有这样的背景?
- 28. 我怎样才能使布局小于3“屏幕和布局4.8”屏幕(android)
- 29. 我怎样才能创建2分面在Android上的屏幕的一半?
- 30. 我怎样才能排队我的CSS的DIV
欢呼编辑......这就是我得到的复制和粘贴:P – 2012-04-03 02:15:36