怎样使得div2和div1在同一行上
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head ><title>
</title>
</head>
<body>
<div id="div1" style="width: 239px; float: left;">
<div id="div11" style="width:239px;margin-bottom:10px;clear:both;float:left;">
<h1>全站搜索</h1>
</div>
<div id="div12" style="width:239px;margin-bottom:10px;clear:both;float:left;">
<h1>热点下载</h1>
</div>
<div id="div13" style="width:239px;margin-bottom:10px;clear:both;float:left;">
<h1 >沙龙书籍</h1>
</div>
</div><div id="div2" style="clear:both;float:right;width:690px;margin-bottom:8px;border:#ccc 1px solid;border-top:none;">
下载地址</a>李阳疯狂英语 - 08
<div>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head ><title>
</title>
</head>
<body>
<div id="div1" style="width: 239px; float: left;">
<div id="div11" style="width:239px;margin-bottom:10px;clear:both;float:left;">
<h1>全站搜索</h1>
</div>
<div id="div12" style="width:239px;margin-bottom:10px;clear:both;float:left;">
<h1>热点下载</h1>
</div>
<div id="div13" style="width:239px;margin-bottom:10px;clear:both;float:left;">
<h1 >沙龙书籍</h1>
</div>
</div><div id="div2" style="clear:both;float:right;width:690px;margin-bottom:8px;border:#ccc 1px solid;border-top:none;">
下载地址</a>李阳疯狂英语 - 08
<div>
</div>
</div>
</body>
</html>
解决方案 »
- Telerik Reporting 控件加载速度慢的问题
- 求教关于读取Excel表的问题
- 如何在asp.net中嵌入word编辑器。请高手回答 谢谢
- asp.net的CSS问题
- 急,使用Web Parts后,如何在前台显示对控件的改动。。!
- Asp和Asp.net能在一个项目中混用吗?能否各自开发一部分代码,然后整合起来?
- Web如何在匿名访问下获得客户端用户信息(如:机器名、登录用户帐号等)
- 请求验证的问题,急!
- 在端口80的"localhost"位置找不到web服务器
- An error occurred during local report processing
- treeview点击后查询数据显示在gridview里
- 如何在UpdatePanel中实现滚动条置底?
clear : none | left |right | both
参数:
none : 允许两边都可以有浮动对象
both : 不允许有浮动对象
left : 不允许左边有浮动对象
right : 不允许右边有浮动对象 所以应该把clear:both改成clear:none,或者直接去掉