css中浮动的案例

Original 2019-06-06 23:27:41 304
abstract:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css中的浮动</title> <style type="text/css"> /**{margin:0px;padd
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>css中的浮动</title>
	<style type="text/css">
	/**{margin:0px;padding: 0px;}*/
		ul li{list-style: none;width: 100px;height: 40px;line-height: 40px;text-align: center;background: #ccc;float: left;margin: 0px 1px;}
		.box{width: 200px;height: 200px;background-color: pink;float:right;}
		.clear{clear: both;}
	</style>

</head>
<body>
<h1>css中的浮动</h1>
<ul>
	<li>html</li>
	<li>css</li>
	<li>JavaScript</li>
	<li>jQuery</li>
	<li>php</li>
</ul>
<div class="clear"></div>
<div class="box">div1</div>
<div class="box">div2</div>
<div class="box">div3</div>
</body>
</html>


Correcting teacher:查无此人Correction time:2019-06-10 09:27:31
Teacher's summary:完成的不错。浮动在移动端用到的比较多。继续加油。

Release Notes

Popular Entries