RowSpan& ColSpan问题 [英] RowSpan & ColSpan problem
问题描述
我在以下几行代码中挣扎,用
Photoshop Slices生成。
一旦结构稍微复杂,输出就会被打破。
我似乎无法遵循它背后的逻辑,弄清楚桌子什么时候
休息或什么时候工作正常。
我用示例搜索了教程,到目前为止我发现的所有教程都是
,其中的单元格相互碰到在角落,没有类似于我的东西。
我假设如果Photoshop生成它,它应该是有效的,但是......
请建议。谢谢。
格雷格
< html>
< body>
< table width = 756 border = 0 cellpadding = 0 cellspacing = 0>
< tr>
< td width = 343 height = 57 rowspan = 2> ;
< img src =" hdr_top_lft.gif" width = 343 height = 57>< / td>
< td width = 245 height = 148 rowspan = 5>
< img src =" hdr_truck。 JPG" width = 245 height = 148>< / td>
< td width = 168 height = 45>
< img src =" hdr_top_rght.gif" width = 168 height = 45>< / td>
< / tr>
< tr>
< td width = 168 height = 78 rowspan = 3>
< img src =" hdr_text_rght.gif" width = 168 height = 78>< / td>
< / tr>
< tr>
< td width = 343 height = 47>
< img src =" hdr_logo.gif" width = 343 height = 47>< / td>
< / tr>
< tr>
< td width = 343 height = 44 rowspan = 2>
< img src =" hdr_bot_lft.gif" width = 343 height = 44>< / td>
< / tr>
< tr>
< td width = 168 height = 25>
< img src =" hdr_bot_lft-07.gif" width = 168 height = 25>< / td>
< / tr>
< / table>
< / body> ;
< / html>
Hi,
I''m breaking my head over the following few lines of code, generated with
Photoshop Slices.
As soon as the structure is slightly complicated, the output is broken.
I can''t seem to follow the logic behind it, figuring out when the table
breaks or when it''s works OK.
I searched for tutorials with examples, so far all I''ve found are tutorials
with cells that meet each other at corners, nothing similar to what I have.
I''m assuming if Photoshop generated it, it should be valid, but...
Please advise. Thank you.
Greg
<html>
<body>
<table width=756 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=343 height=57 rowspan=2>
<img src="hdr_top_lft.gif" width=343 height=57></td>
<td width=245 height=148 rowspan=5>
<img src="hdr_truck.jpg" width=245 height=148></td>
<td width=168 height=45>
<img src="hdr_top_rght.gif" width=168 height=45></td>
</tr>
<tr>
<td width=168 height=78 rowspan=3>
<img src="hdr_text_rght.gif" width=168 height=78></td>
</tr>
<tr>
<td width=343 height=47>
<img src="hdr_logo.gif" width=343 height=47></td>
</tr>
<tr>
<td width=343 height=44 rowspan=2>
<img src="hdr_bot_lft.gif" width=343 height=44></td>
</tr>
<tr>
<td width=168 height=25>
<img src="hdr_bot_lft-07.gif" width=168 height=25></td>
</tr>
</table>
</body>
</html>
推荐答案
" Greg Adourian" < GR ** @ dontspam.com>在消息中写道
新闻:HR ******************** @ weber.videotron.net ...
"Greg Adourian" <gr**@dontspam.com> wrote in message
news:HR********************@weber.videotron.net...
我正在打破以下几行代码,用Photoshop切片生成。
Hi,
I''m breaking my head over the following few lines of code, generated with
Photoshop Slices.
当您使用图像创建生成HTML时,您对此有何期待
程序?
-karl
What exactly did you expect when you generated HTML with an image creation
program?
-karl
" Greg Adourian" < GR ** @ dontspam.com>在消息中写道
新闻:HR ******************** @ weber.videotron.net ...
"Greg Adourian" <gr**@dontspam.com> wrote in message
news:HR********************@weber.videotron.net...
我正在打破以下几行代码,用Photoshop切片生成。
Hi,
I''m breaking my head over the following few lines of code, generated with
Photoshop Slices.
当您使用图像创建生成HTML时,您对此有何期待
程序?
-karl
What exactly did you expect when you generated HTML with an image creation
program?
-karl
这一次我都假设,我会节省时间:)
我正在手动设计表格。
我只是想知道出了什么问题使用该代码,因为没有一个在线
文档/教程解决了相同的结构
Greg
" ; Karl Groves < KA ** @ NOSPAMkarlcore.com>在消息中写道
news:c5 ********** @ ngspool-d02.news.aol.com ...
All this time I assumed, I will be saving time :)
I''m back designing the table manually.
I just wanted to know what was wrong with that code, as none of the online
documention/tutorials addressed the same structure
Greg
"Karl Groves" <ka**@NOSPAMkarlcore.com> wrote in message
news:c5**********@ngspool-d02.news.aol.com...
" ; Greg Adourian < GR ** @ dontspam.com>在消息中写道
新闻:HR ******************** @ weber.videotron.net ...
"Greg Adourian" <gr**@dontspam.com> wrote in message
news:HR********************@weber.videotron.net...
我正在打破以下几行代码,用Photoshop Slices生成
。
Hi,
I''m breaking my head over the following few lines of code, generated with Photoshop Slices.
你到底想到了什么?用图像创建程序生成HTML?
-karl
What exactly did you expect when you generated HTML with an image creation
program?
-karl
这篇关于RowSpan& ColSpan问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!