利用skew实现对话框制作

利用skew实现对话框制作

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/resetm.css" />
		<style>
			.box:after {
				content: "";
				width: 89px;
				height: 69px;
				transform: skew(59deg) rotateZ(-32deg);
				background: green;
				border-radius: 0px 0px 0px 7px;
				position: absolute;
				z-index: -1;
				display: inline-block;
				margin-left: 267px;
				margin-top: -41px;
			}

			.box {
				width: 500px;
				line-height: 200px;
				background-color: green;
				position: relative;
				border-radius: 20px;
				margin-bottom: 32px;
				margin-left: 50px;
			}

			.box p {
				line-height: 32px;
				padding: 20px;
				font-size: 20px;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<p>消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框消息框</p>
		</div>
	</body>
</html>