表内的div [英] div inside table
本文介绍了表内的div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我,表内的div是否被允许或不能根据w3c
解决方案
< html xmlns =http://www.w3.org/1999/xhtmlxml:lang =en>
< head>
< title> test< / title>
< / head>
< body>
< table>
< tr>
< td>
< div>内容< / div>
< / td>
< / tr>
< / table>
< / body>
< / html>
成功将此文档检查为XHTML 1.0 Transitional!
Can somebody tell me whether div inside a table is allowed or not according to w3c
解决方案
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>test</title>
</head>
<body>
<table>
<tr>
<td>
<div>content</div>
</td>
</tr>
</table>
</body>
</html>
This document was successfully checked as XHTML 1.0 Transitional!
这篇关于表内的div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文