在href mailto链接中设置正文文本

Kar*_*man 7 html css

我有一个链接,它有一个mailto链接,我在超链接本身指定主题和正文.因此,当用户单击超链接时,将打开其默认电子邮件客户端应用程序,其中预先填充了"收件人","主题"和正文.

我想知道如何在body文本中应用css格式化技术,如font名称font color等.

任何人都可以对此有任何想法吗?

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Unauthorized access</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
        <!-- font Awesome -->
        <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
    </head>
    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <div>
            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side" style="margin-left:0">
                <section class="content">
                    <div class="error-page" style="margin: 0">
                        <div class="error-content" style="width:100%">
                            <h3><i class="fa fa-warning text-yellow"></i> You are not authorized to view the content.</h3>       <br>
                            <p style="width:75%; text-align:center;margin-left:15%">
                                Please make sure you have the access to the server or contact support team at <a href="mailto:username@domain.com?subject=Unable&nbsp;to&nbsp;access&nbsp;server&body=Hi,%0D%0A%0D%0AMy&nbsp;user&nbsp;account&nbsp;does&nbsp;not&nbsp;have&nbsp;access&nbsp;for&nbsp;the&nbsp;server.%0D%0A%0D%0ARequest&nbsp;you&nbsp;to&nbsp;kindly&nbsp;provide&nbsp;access&nbsp;to&nbsp;server.">username@domain.com</a>.
                            </p>
                        </div><!-- /.error-content -->
                    </div><!-- /.error-page -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

单击电子邮件超链接时,以下消息将显示在电子邮件内容中.

样品

我想将CSS格式应用于红色框中突出显示的内容.

dip*_*pas 4

您无法通过<a href="mail to:mail@example.com"></a>.

他们有自己的 CSS 样式,这将是一个安全问题