使用内部跨度和锚点来应用不同的字体?

时间:2015-05-27 11:21:08

标签: html css fonts font-face

我需要在链接中定位@符号以应用不同的字体。我试图在锚点内使用span标记但由于某种原因它不起作用。

Here是我尝试应用此网站的网站。 (请点击页面右下方的联系链接,查看我想要定位的@符号的锚点)

Here是我一直用来解决这个问题的小提琴,但它适用于小提琴,而不是网页。

<div id="contact-info">
 <a href="mailto:me@me.com">contact<span class="jaap">@</span>me.com</a>

1 个答案:

答案 0 :(得分:0)

这很好用! :)

<!DOCTYPE html>
    <html>
    <head>
        <title></title>
        <style type="text/css">
            a{
                text-decoration: none;
                color: #000000;
            }
            a span{
                color: #FF0000;
            }
        </style>
    </head>
    <body>
        <a href="mailto:foo@emial.com">foo<span id="color">@</span>email.com</a>
    </body>
    </html>