简体   繁体   English

AJAX圆角扩展器未在ASP.Net中的电子邮件中显示

[英]AJAX Rounded Corners extender not getting displayed in email in ASP.Net

I have displayed the below HTML source in page and mailed the same. 我已经在页面中显示了以下HTML源代码并通过邮件发送了相同内容。 The Rounded Corners extender present in the HTML is not displayed in the email that I sent. 我发送的电子邮件中没有显示HTML中的“圆角”扩展程序。

<asp:Panel ID="pnlDetails" BackColor="#F9F9F9" Width="740px" runat="server">

                <table width="100%">
                    <tr>
                        <td>
                            <span style="font-family: Verdana; font-size: 11px; color: Black; font-weight: bold;">
                                Name:</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblName" Style="font-family: Verdana; font-weight: normal;
                                font-size: 11px; color: Black; margin-left: 0px;" runat="server" Text="-"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span style="font-family: Verdana; font-size: 11px; color: Black; font-weight: bold;">
                                Address:</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblAddress" Style="font-family: Verdana; font-weight: normal;
                                font-size: 11px; color: Black; margin-left: 0px;" runat="server" Text="-"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>    <!-- Extraneous? -->
        </tr>        <!-- Extraneous? -->
    </table>         <!-- Extraneous? -->
</asp:Panel>
   <cc1:RoundedCornersExtender ID="RoundedCornersExtender1" Corners="All" TargetControlID="pnlDetails"
    Radius="6" BorderColor="#D5DCDF" runat="server">
</cc1:RoundedCornersExtender>

The entire HTML is displayed perfectly in the email except that the rounded corners alone does not appear. 整个HTML可以完美地显示在电子邮件中,只是不显示圆角。 If I save the email's HTML source as HTML page and view in browser, the rounded corners is getting displayed perfectly. 如果我将电子邮件的HTML源保存为HTML页面并在浏览器中查看,则圆角将得到完美显示。 The panel and rounded corners are getting converted to div's. 面板和圆角将转换为div。 The following is the source of rounded corners extender present in email (when saved as HTML I got this code): 以下是电子邮件中存在的圆角扩展器的来源(当另存为HTML时,我得到了此代码):

<DIV style='BORDER-LEFT: #d5dcdf 1px solid;
 BACKGROUND-COLOR: transparent; HEIGHT: 1px; MARGIN-LEFT: 0px; FONT-SIZE: 1px; OVERFLOW: hidden; 
MARGIN-RIGHT: -2px; BORDER-RIGHT: #d5dcdf 1px solid' __roundedDiv='true'></DIV>  
<DIV style='BORDER-LEFT: #d5dcdf 1px solid; BACKGROUND-COLOR: transparent; HEIGHT: 1px; 
MARGIN-LEFT: 0px; FONT-SIZE: 1px; OVERFLOW: hidden; MARGIN-RIGHT: -2px; BORDER-RIGHT: #d5dcdf 1px solid' 
__roundedDiv='true'></DIV>  <DIV style='BORDER-LEFT: #d5dcdf 1px solid; BACKGROUND-COLOR: transparent; 
HEIGHT: 1px; MARGIN-LEFT: 1px; FONT-SIZE: 1px; OVERFLOW: hidden; MARGIN-RIGHT: -1px; 
BORDER-RIGHT: #d5dcdf 1px solid' __roundedDiv='true'></DIV>  
<DIV style='BORDER-LEFT: #d5dcdf 1px solid; 
BACKGROUND-COLOR: transparent; HEIGHT: 1px; MARGIN-LEFT: 2px; FONT-SIZE: 1px; OVERFLOW: hidden; 
MARGIN-RIGHT: 0px; BORDER-RIGHT: #d5dcdf 1px solid' __roundedDiv='true'></DIV>

It is normal HTML except the property __roundedDiv='true' is different from normal HTML code! 除属性__roundedDiv ='true'与普通HTML代码不同外,它是普通HTML!

For top left, top right, top and bottom part of rounded corner extender, a separate div is created with borders. 对于圆角扩展器的左上,右上,顶部和底部,将创建一个单独的带有边框的div。 But the borders are not getting displayed in email! 但是,边框不会在电子邮件中显示!

Please guide me to display the rounded corners in email. 请指导我在电子邮件中显示圆角。

No AJAX and no ASP.Net in email. 电子邮件中没有AJAX,也没有ASP.Net。 All you can use it HTML, tables, images, and inline CSS. 您可以使用它的全部HTML,表格,图像和内联CSS。

For rounded corners, you will need to create an image and position it with a table. 对于圆角,您将需要创建图像并将其与桌子一起放置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM