Loading ...
Posts RSS Comments RSS 360 Posts and 793 Comments till now

QQ 信纸是如何实现的

上文我说了QQ邮箱的信纸除了在自身的邮箱里面是显示正确的以外,在其他的服务商那里都是不正确的

在进一步的看了QQ邮箱的功能,发现后台有一个查看当前邮件的HTML代码的选项,我便看了看我选择的那个信纸的HTML代码

 

<table class=”i” style=”table-layout: fixed;” align=”center” background=”http://res.mail.qq.com/zh_CN/images/stationery/love/60/top-bg.gif” bgcolor=”#b1f0ff” border=”0″ cellpadding=”0″ cellspacing=”0″>
    <tbody>
        <tr>
            <td style=”background-position: right top; background-repeat: no-repeat;” background=”http://res.mail.qq.com/zh_CN/images/stationery/love/60/top-l.jpg” valign=”top” width=”210″ height=”73″ nowrap=”nowrap”></td>
            <td valign=”top” width=”1%” nowrap=”nowrap”>&nbsp;</td>

            <td style=”width: 99%;” valign=”top” nowrap=”nowrap”>&nbsp;</td>
        </tr>
    </tbody>
</table>

<table class=”i” style=”table-layout: fixed;” align=”center” bgcolor=”#a0e1ff” border=”0″ cellpadding=”0″ cellspacing=”0″ height=”344″>
    <tbody>
        <tr>
            <td valign=”top” width=”40″></td>
            <td style=”font-size: 12px; line-height: 30px; color: rgb(0, 0, 153);” id=”QQMAILSTATIONERY” align=”left” valign=”top”><br><qzone>
              </qzone></td><td valign=”top” width=”40″>&nbsp;</td>
        </tr>
    </tbody>
</table>

<table style=”font-size: 0px; height: 0px;” border=”0″ cellpadding=”0″ cellspacing=”0″>
    <tbody>
        <tr>
            <td></td>
        </tr>
    </tbody>
</table>

看了这个我才发现,原来QQ信纸只不过是一份普通的HTML格式的电子邮件。而信纸用了三个Table来规定了格式,你输入的文字实际上是输入到一个Table之中,自然也就带有那个Table的格式。而背景则只是这个Table的背景而已。

 

但至于到底如何详细分析以及前面的显示错误的问题如何解决,我就不知道了


_________________________________________________________________

下一篇 » 棋盘山滑雪记
_________________________________________________________________

如需转载请注明:转载自codeium http://www.codeium.com/blog/

本文链接地址:http://www.codeium.com/blog/1792
_________________________________________________________________

你可能也对下面的文章感兴趣

Trackback this post | Feed on Comments to this post

Leave a Reply