在第七行输入veretical-align:middle;为什么不在中间的位置
在第七行输入veretical-align:middle;为什么不在中间的位置
在第七行输入veretical-align:middle;为什么不在中间的位置
2017-03-02
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>父元素高度确定的多行文本</title>
<style>
body{
background-color:blue;
}
.one{
position:absolute;
height:100%;
background-color:green;
}
.two{
height:500px;
width:100px;
background-color:red;
}
table,tr,td{
height:100%;
}
</style>
</head>
<body>
<div class="one">
<!--下面是代码任务区-->
<table><tr><td>
<div class="two"><table><tr><td>
<img src="http://img1.sycdn.imooc.com//54ffac56000169c001840181.jpg" title="害羞的小女生"/></td></tr></table>
</div></td></tr></table>
</div>
</body>
</html>
举报