让输入文字在div中的右下角

需要如下效果:

 

 

html代码:

 

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			#box {
				width: 1000px;
				height: 900px;
				background-color: sandybrown;
				position: absolute;
			}
			
			#box>p {
				position: absolute;
				right: 0;
				bottom: 0;
				color: salmon;
			}
		</style>
	</head>

	<body>
		<div id="box">
			<p>
				hello 过年好!
			</p>
		</div>
	</body>

</html>

  

posted @ 2020-01-30 14:03  AAA五金批发王建军  阅读(2374)  评论(0编辑  收藏  举报