2010-01-15 56 views
0

以下是示例代碼..我找不到表的任何圓角。 .. 我不能修復的錯誤... PLZ,幫助 Ajaxcontroltoolkit roundedcornersextender不起作用

  <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> 
+0

是你使用Ajax 1.0和IE8?嘗試在Chrome瀏覽器或Firefox瀏覽器中查看,IE8顯示圓角的問題。 – 2010-01-16 21:59:08

+0

我正在使用Ajax 2.0和IE7。我嘗試了所有的瀏覽器。我看不到圓角??! – Nila 2010-01-20 06:38:45

回答

1

請嘗試此示例代碼的工作對我罰款在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

0

總結表在面板中使用的面板爲目標。

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

不..我試過..這不工作:( – Nila 2010-01-16 05:56:23

相關問題