Ajaxcontroltoolkit roundedcornersextender 不起作用

发布于 2024-08-17 23:16:18 字数 1109 浏览 4 评论 0原文

以下是示例代码。我找不到表格的任何圆角。 .. 我无法修复错误...请帮助

            <cc1:roundedcornersextender id="rce" runat="server" targetcontrolid="tbl"
        radius="10" corners="All" />
    <table id="tbl" runat="server" style="border: medium solid #0000FF; width: 41%;">
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>

Following is the sample code.. I cannot find any rounded corners for the table. ..
I can't fix the error... plz,help

            <cc1:roundedcornersextender id="rce" runat="server" targetcontrolid="tbl"
        radius="10" corners="All" />
    <table id="tbl" runat="server" style="border: medium solid #0000FF; width: 41%;">
        <tr>
            <td>
                 
            </td>
            <td>
                 
            </td>
            <td>
                 
            </td>
        </tr>
        <tr>
            <td>
                 
            </td>
            <td>
                 
            </td>
            <td>
                 
            </td>
        </tr>
        <tr>
            <td>
                 
            </td>
            <td>
                 
            </td>
            <td>
                 
            </td>
        </tr>
    </table>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

霓裳挽歌倾城醉 2024-08-24 23:16:18

请尝试这个示例代码,它在 IE7 和 IE7 中对我来说工作得很好。 IE8

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .myborder
        {
            background-color:Green;
         }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Panel runat="server" ID="RoundedPanel" CssClass="myborder" Width="200px" Height="80px">
            <table id="tbl" >
                <tr>
                    <td>
                       Testing
                    </td>
                     <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                </tr>
                <tr>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                </tr>
                <tr>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                </tr>
            </table>
        </asp:Panel>
         <cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="RoundedPanel" radius="10" corners="All" >
         </cc1:RoundedCornersExtender>
    </div>
    </form>
</body>
</html>

请提供高度&面板的宽度值,

输出屏幕截图alt text

Please try this sample code its work fine for me in IE7 & IE8

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .myborder
        {
            background-color:Green;
         }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Panel runat="server" ID="RoundedPanel" CssClass="myborder" Width="200px" Height="80px">
            <table id="tbl" >
                <tr>
                    <td>
                       Testing
                    </td>
                     <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                </tr>
                <tr>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                </tr>
                <tr>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                    <td>
                       Testing
                    </td>
                </tr>
            </table>
        </asp:Panel>
         <cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="RoundedPanel" radius="10" corners="All" >
         </cc1:RoundedCornersExtender>
    </div>
    </form>
</body>
</html>

please provide height & width values for Panel,

Screen shot of outputalt text

给妤﹃绝世温柔 2024-08-24 23:16:18

将桌子包裹在面板中并将面板用作目标。

<asp:Panel ID="Panel1" runat="server" BackColor="Blue">
  <table>....</table>
<asp:Panel>
<cc1:roundedcornersextender id="rce" runat="server" targetcontrolid="Panel1" radius="10" corners="All" />

Wrap the table in a panel and use the panel as your target.

<asp:Panel ID="Panel1" runat="server" BackColor="Blue">
  <table>....</table>
<asp:Panel>
<cc1:roundedcornersextender id="rce" runat="server" targetcontrolid="Panel1" radius="10" corners="All" />
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文