测试
| 测试表格 | 测试表格 |
| 测试表格 | 测试表格 |
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
以前有人问过,我也找过资料,但没有找到好的解决办法,只能先 overflow-x:hidden 可这样mozilla引擎的浏览器老是看不到完整的内容,要看到的话,页面就会被撑破,这真是一个头疼的问题。今天又发现即使 这样的空格标签也会被当成普通连续不换行字幕处理!谁知道解决方案请指教。
这是常见的url,IE加上 word-break:breal-all 就可以自动换行了,firefox不行
http://aa.aa.com/aa/aa/aa/aa/aa/aaa/aa/aa/aa/aaa/aa/aa/aa/aaa/aa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aa/aa/a?a=1&b=2
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
这是带了“空格”的html代码
guoshuangtest guoshuangtest guoshuangtest guoshuangtest guoshuangtest guoshuangtest guoshuangtest guoshuangtest guoshuangtest guoshuangtest
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
现在临时的几种解决办法(有的都适用,有的只适用IE)
|
http://aa.aa.com/aa/aa/aa/aa/aa/aaa/aa/aa/aa/aaa/aa/aa/aa/aaa/aa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aaaa/aa/aa/a?a=1&b=2 |
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
以前见过“最有效”的建议你知道是什么?手工换行!我昏倒…今天一定要搞定这个问题!哼…在 mozillazine.org 也发了个贴
http://forums.mozillazine.org/viewtopic.php?p=1072486
相关资料:
以下为引用内容:
MQ: We want to be able to make content more accessible, and word wrap is important to this.
Resolved: No change.
http://www.w3.org/WAI/UA/2000/04/rfbd-20000411
以下为引用内容:
Visual ordering of flowing text requires the author to disable any line wrapping and to explicitly add line-breaks…
http://www.w3.org/International/articles/inline-bidi-markup/
以下为引用内容:
When an inline box exceeds the width of a line box, it is split into several boxes and these boxes are distributed across several line boxes. If an inline box cannot be split (e.g. if the inline box contains a single character, or language specific word breaking rules disallow a break within the inline box, or if the inline box is affected by a white-space value of nowrap or pre), then the inline box overflows the line box.
http://w3.org/TR/CSS21/visuren.html
估计后台也有问题,本来“真”空格被替换成 ,可能就是这个问题。修改ubbcode.asp(两个蓝色箭头处加了真空格)

解决 英文+ 不空格不换行 在firefox下显示的问题,但url没办法断开,怎么办呢?
Guoshuang20041217+这样不行!!!这样会导致正则出现问题!又要改这里!只好先改回去,也就是说firefox现在仍然会显示不全!下午或明天有时间再解决。
20041230+上图第二个替换空格暂时先屏蔽掉,这样就不会出现 aaa aaa这样的连续字符串
来自MSDN的一些翻译文章,此文及链接中提到的一些文章都很不错,需要花不少时间来看。
http://www.jxyc.gov.cn/blog/withwolf/showlog.asp?cat_id=29&log_id=539
非常感谢 Platinum 的意见以及提供微软官方地址:
http://www.microsoft.com/china/msdn/Archives/msdnonline/features/articles/dhtmlperf.asp
做学问就怕认真二字。
Please view witH Firefox,IE will see nothing or the mistake one.
| Header 1 | Cell 1 | Cell 2 |
|---|---|---|
| Header 2 | Cell 3 | Cell 4 |
| Header 3 | Cell 5 | Cell 6 |
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
table { display: table }
tr { display: table-row }
thead { display: table-header-group }
tbody { display: table-row-group }
tfoot { display: table-footer-group }
col { display: table-column }
colgroup { display: table-column-group }
td, th { display: table-cell }
caption { display: table-caption }
table { border-collapse: collapse;
border: 5px solid yellow; }
*#col1 { border: 3px solid black; }
td { border: 1px solid red; padding: 1em; }
td.solid-blue { border: 5px dashed blue; }
td.solid-green { border: 5px solid green; }
| 1
| 2
| 3 |
| 4
| 5
| 6 |
| 7
| 8
| 9 |
| 10
| 11
| 12 |
| 13
| 14
| 15 |
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
表格层模型(应用背景时)

表格border-spacing解释

border冲突时,优先级
以下为引用内容:
he following rules determine which border style “wins” in case of a conflict:1. Borders with the ‘border-style’ of ‘hidden’ take precedence over all other conflicting borders. Any border with this value suppresses all borders at this location.
2. Borders with a style of ‘none’ have the lowest priority. Only if the border properties of all the elements meeting at this edge are ‘none’ will the border be omitted (but note that ‘none’ is the default value for the border style.)
3. If none of the styles are ‘hidden’ and at least one of them is not ‘none’, then narrow borders are discarded in favor of wider ones. If several have the same ‘border-width’ then styles are preferred in this order: ‘double’, ’solid’, ‘dashed’, ‘dotted’, ‘ridge’, ‘outset’, ‘groove’, and the lowest: ‘inset’.
4. If border styles differ only in color, then a style set on a cell wins over one on a row, which wins over a row group, column, column group and, lastly, table. It is undefined which color is used when two elements of the same type disagree.
简单地说,就是 hidden > none ; 粗边 > 细边 ; solid > dashed ;cell > row >group等。IE的渲染有错误,FF完全正确。示例如下:
| bar | |
| foo | bar |
| foo | bar |
| foo | bar |
| foo | bar |
| foo | bar |
| foo | bar |
| foo | bar |
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
IE浏览器仍然存在这个问题,firefox没有。
*5+1)+'.gif')
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]