感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文本c为嘛会被两个浮动元素挤右边去了</title>
</head>
<body>
<div id="a">a</div>
<div id="b">b</div>
<div id="c">c</div>
<p>
文本c为嘛会被两个浮动元素挤右边去了
</p>
</body>
</html>
输入 JavaScript 代码……
xxxxxxxxxx
#a{
width:50px;
height:100px;
float:left;
border:1px solid blue;
}
#b{
height:150px;
border:1px solid red;
#c{
width:100%;
//clear:both;
border:1px solid green;