簡體   English   中英

在簽名中將圖像彼此對齊

[英]Aligning images next to eachother in a Signature

我正在為Gmail進行HTML簽名,並且圖像出現對齊問題。 在DW和Chrome中預覽代碼可以使我看起來像第一張圖片。 但是,當我將其復制到Gmail時,它看起來像這樣:

Gmail和Chrome之間的比較

這是代碼:

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>psdtowebPSD2648.psd</title>
    <link href="psdtowebPSD2648/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
         <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <a href="mailto:sarahhughes@spear-fish.com"> 
        <div id="SarahHughes"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/SarahHughes.png"></div></a>
         <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <div id="BusinessDevelopmentM"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/BusinessDevelopmentM.png"></div>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <div id="spearfishlogov04"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/spearfishlogov04.png"></div>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <div id="divider"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/divider.png"></div>
         <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <a href="http://www.spear-fish.com/">
        <div id="SpearFishcom"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/SpearFishcom.png"></div></a>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <a href="https://twitter.com/spear_fish"> 
        <div id="twitter"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/twitter.png"></div></a>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <a href="https://www.linkedin.com/pub/dan-hooton/3/910/689"> 
        <div id="linkedin"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/linkedin.png"></div></a>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <div id="divider"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/divider.png"></div>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <a href="https://goo.gl/En7Cn9"> 
        <div id="ASpearfishRadleyHous"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/ASpearfishRadleyHous.png"></div></a>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <div id="P443330555501M44"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/P443330555501M44.png"></div>
        <td width="10" style="width:10px;min-width:10px;max-width:10px;margin:0;padding:0;">&nbsp;</td>
        <a href="https://plus.google.com/u/0/100772955751868660892/posts"> 
        <div id="G"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/G.png"></div></a></div>

嘗試使用表格使所有內容正確對齊:

<table>
    <tr>
        <td colspan=3><a href="mailto:sarahhughes@spear-fish.com"><img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/SarahHughes.png"></a>

        </td>
    </tr>
    <tr>
        <td colspan=3>
            <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/BusinessDevelopmentM.png">
        </td>
    </tr>
    <tr>
        <td>
            <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/spearfishlogov04.png">
        </td>
        <td>
            <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/divider.png">
        </td>
        <td>
            <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/SpearFishcom.png">
        </td>
    </tr>
    <tr>
        <td colspan=3><a href="https://goo.gl/En7Cn9"> 
                    <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/ASpearfishRadleyHous.png"></a>

        </td>
    </tr>
    <tr>
        <td colspan=3>
            <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/P443330555501M44.png">
        </td>
    </tr>
    <tr>
        <td colspan=3><a href="https://twitter.com/spear_fish"> 
       <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/twitter.png"></a>
 <a href="https://www.linkedin.com/pub/dan-hooton/3/910/689"> 
               <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/linkedin.png"></a>
 <a href="https://plus.google.com/u/0/100772955751868660892/posts"> 
       <img src="http://thegaminggeek.co.uk/wp-content/uploads/2015/06/G.png"></a>

        </td>
    </tr>
</table>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM