自己写了一段代码,但是浮动的效果没有,是什么情况?
素颜
素颜 2016-12-19 11:33:08
0
3
1255
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style type="text/css">
		div{
			width:600px;
			height:300px;
			border:1px solid red;
			float:left;
		}
	</style>
</head>
<body>
	<div></div>
	<div></div>
</body>
</html>

333.png

素颜
素颜

越努力越幸运!!!

reply all(3)
数据分析师

I have written a piece of code, but the floating effect is not there, what is the situation? - PHP Chinese website Q&A - I have written a piece of code, but the floating effect is not there, what is the situation? - PHP Chinese website Q&A

Take a look around, Study it.

伊谢尔伦

可以把"folat:left"属性删除掉,就可以实现图中的效果了,也可以在两个<div>之间加点内容,看起来效果更明显。


迷茫

可能是是浏览器的宽度不够,你可以吧浏览器最大化,然后在试一下!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template