【发布时间】:2012-02-19 20:37:50
【问题描述】:
当用户点击“发送电子邮件”按钮时,他们的默认电子邮件应用程序会打开,主题行是:请求信息”。
谁能告诉我为什么这个“mailto:”代码在 IE7/8 中不起作用?它可以在 FF、Chrome 和 Safari 中正常工作。我不想将我的图像包裹在一个锚标签中,除非没有其他办法。
HTML
<a href="mailto:info@mydomain.com?subject=Request Information" class="info-main">Send email</a>
CSS
.info-main {
background-image:url('/i/info_email_button.png') no-repeat;
display:block;
height:123px;
width:24px;
text-indent:-9999px;
}
谢谢!
【问题讨论】:
标签: html css internet-explorer-8 background-image mailto