关于多行文本的据中国
下图代码中如何设置使图片相对应浏览器垂直居中?
还有这个代码!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>多行文本的垂直居中</title>
<style type="text/css">
table td{
height: 500px;
background:#ccc;
}
</style>
</head>
<body>
<table><tbody><tr><td class="wrap">
<div>
<p>是否居中</p>
</div>
</td></tr></tbody></table>
</body>
</html>
我按照教程敲的代码,为什么<p>标签的文字不居中显示!