Two-column layout: The left fixed to the right adaptive

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>两列布局</title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			body{
				min-width: 600px;
			}
			div{
				height: 200px;
			}
			.left{
				width: 200px;
				background: #096;
				float: left;
			}
			.right{
				background: #FFFF00;
				overflow: hidden;
			}
		</style>
	</head>
	<body>
		<div class="left">11111</div>
		<div class="right">22222</div>
	</body>
</html>

  

Guess you like

Origin www.cnblogs.com/yitiansanchangyu/p/12318000.html