﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Twenka-随笔分类-Drips&amp;Draps</title><link>http://www.blogjava.net/twenka/category/16803.html</link><description>A simple person, living a simple life in every simple day</description><language>zh-cn</language><lastBuildDate>Fri, 02 Mar 2007 03:37:30 GMT</lastBuildDate><pubDate>Fri, 02 Mar 2007 03:37:30 GMT</pubDate><ttl>60</ttl><item><title>HTML中div标签与table标签组合使用问题</title><link>http://www.blogjava.net/twenka/archive/2006/12/08/86287.html</link><dc:creator>twenka</dc:creator><author>twenka</author><pubDate>Fri, 08 Dec 2006 04:32:00 GMT</pubDate><guid>http://www.blogjava.net/twenka/archive/2006/12/08/86287.html</guid><wfw:comment>http://www.blogjava.net/twenka/comments/86287.html</wfw:comment><comments>http://www.blogjava.net/twenka/archive/2006/12/08/86287.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/twenka/comments/commentRss/86287.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/twenka/services/trackbacks/86287.html</trackback:ping><description><![CDATA[1.div标签直接包容tr标签：语法检测通过，但div不生效。例如，对于如下代码，table的内容还会在页面上显示出来。<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">table</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">div </span><span style="color: rgb(255, 0, 0);">id</span><span style="color: rgb(0, 0, 255);">="divTest"</span><span style="color: rgb(255, 0, 0);"> style</span><span style="color: rgb(0, 0, 255);">="display: none"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">tr</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">th</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">title</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">th</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">tr</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">tr</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">td</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">td</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">tr</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">div</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">table</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br /><br />2.div标签直接包容td或th标签：语法检测不通过。提示错误为“Invalid location of tag (div).”。<br /><br />合法有效的组合方式有如下三种：<br />1.div标签包容整个table标签<br />2.div标签置于th标签之内<br />3.div标签置于td标签之内<br /><img src ="http://www.blogjava.net/twenka/aggbug/86287.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/twenka/" target="_blank">twenka</a> 2006-12-08 12:32 <a href="http://www.blogjava.net/twenka/archive/2006/12/08/86287.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>