这一节怎么弄
完全按照只做表格的方式 写图像 确还是无妨让其垂直居中
完全按照只做表格的方式 写图像 确还是无妨让其垂直居中
2016-07-04
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>父元素高度确定的多行文本</title> <style> .wrap{height:300px;background:#ccc} #bodyH{ position:absolute; left:0; top:0; height:100%; } </style> </head> <body> <table><tbody><tr><td class="wrap"> <div> <p>看我是否可以居中。</p> <p>看我是否可以居中。</p> <p>看我是否可以居中。</p> <p>看我是否可以居中。</p> <p>看我是否可以居中。</p> </div> </td></tr></tbody></table> <!--下面是代码任务区--> <table id="bodyH"> <tbody> <tr> <td> <div> <img src="http://img1.sycdn.imooc.com//54ffac56000169c001840181.jpg" title="害羞的小女生"/> </div> </td> </tr> </tbody> </table> </body> </html>
举报