61,112
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<style>
.right{
position: absolute;
top: 50px;
right: 0px;
bottom: 50px;
width: 300px;
text-align: center;
border: 1px solid blue;
}
.rightContent{
position: absolute;
top: 50%;
bottom: 50%;
height: 20px;
}
</style>
</head>
<body>
<div class="right">
<span class="rightContent">右DIV显示的内容</span>
</div>
</body>
</html>