详解:37 text-align-last的案例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="css/reset.css"/>
	<style type="text/css">
		.test{
			margin:150px;
		}
		.test p{
			width: 400px;
			height: 30px;
			font-size:20px;
			border:2px solid #abcdef;
			text-align:justify;
			text-align-last: justify;/*记住哈,这里指明的text-align-last: justify;是代表每一个标签里面的哈,这里不行的话是,是浏览器兼容的问题!!!*/
		}
	</style>
</head>
<body>
	<div class="test">
		<p>你 好 世 界 2016</p>
		<p>测 试 两 端 对 齐</p>
		<p>Hello King</p>
		<p>谢 谢 大 家 对 我 课 程 的 支 持 欢 迎 点 赞</p>
		</ul>
	</div>
</body>
</html>

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_37805832/article/details/106773856
37