Alt标记字体大小

时间:2012-07-05 13:38:27

标签: html email font-size alt

嘿我正在制作一封电子邮件,我有我的徽标

<img src="head/email-concept1_04.gif" width="172" height="61" border="0" alt="Test" title="Test" style="display:block; color:#ffffff !important;" />

我试图让alt标记的字体大小更大,但它似乎不起作用。

<img src="head/email-concept1_04.gif" width="172" height="61" border="0" alt="Test" title="Test" style="display:block; color:#ffffff !important; font-weight:bold !important; font-size:36px !important;" />

我已经看到它适用于我收到的电子邮件,例如来自Pizza Express,无法弄清楚他们是如何做到的。

1 个答案:

答案 0 :(得分:5)

您可以将图像标记放在容器中并实现该特定容器的字体样式。例如:

<!DOCTYPE HTML>
<html>
    <head>
        <style type="text/css">
            #font {
                width:400px;
                height:400px;
                margin:0 auto;
                font-size:16px;
                font-weight:bold;
                color:#ff0000;
                text-align:center;

            }
        </style>
    </head>
    <body>
        <div id="font">
            <img src="" alt="Customized Font" />
        </div>
    </body>
</html>
相关问题