css中2端对其布局

css中2端对其布局

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{margin:0;padding:0;}
.wrapper{800px;border:1px solid #ccc;text-align:justify;text-justify:distribute-all-lines;}
.wrapper:after{content:"";height:0;100%;display:inline-block;overflow:hidden;}
.wrapper div{display:inline-block;*zoom:1;*display:inline;100px;height:100px;border:1px solid blue;}
</style>
</head>

<body>
<div class="wrapper">
    <div>12313213</div>
    <div>12313213</div>
    <div>12313213</div>
    <div>12313213</div>
    <div>12313213</div>
</div>
</body>
</html>

原文地址:https://www.cnblogs.com/xiuciedward/p/3140061.html