<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="start" href="http://www.loaoao.com" title="Home" />
<style>
table{ table-layout:fixed;width:50%;}
td{
border:1px solid;
padding:5px 20px;
background-color:#efefef;
}
.justify{
height:1.1em;
overflow:hidden;
text-align:justify;
text-justify :distribute-all-lines ;
}
div.cn:after {
content: "__________________________________________";
font-size:100px;
}
div.en:after {
content: " ______________________________________________________________________________________________________________________________";
}
</style>
</head>
<body>
<table>
<tr>
<td><div class="justify cn">三个字</div></td>
<td><div class="justify en">hi hi hi</div></td>
</tr>
<tr>
<td><div class="justify cn">四个字滴</div></td>
<td><div class="justify en">hi hi hi hi</div></td>
</tr>
</table>
</body>
</html>
文字两端对齐
最新推荐文章于 2023-03-13 20:13:01 发布