DropShadow控件

功能:
        1.锐化边角效果:可以让Panel等控件的边角圆滑。
        2. 阴影效果:让指定的控件具备阴影效果。
        3. 阴影透明:此设置是专门针对控件的阴影,设置透明度,如果控件没有阴影,则此功能也不存在。
属性:
        TargetControlID:要应用阴影的控件ID。
         Opacity:阴影的透明度。最大值为1,默认为0.5。
         Rounded:是否锐化目标控件的边角。
        TrackPosition:追随目标控件的位置,此属性一般应用在控件被拖动,或有其他移动的时候。

实例代码:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    
<title>DropShadow控件</title>
</head>
<body>
    
<form id="form1" runat="server">
    
<asp:ScriptManager ID="ScriptManager1" runat="server">
    
</asp:ScriptManager>
    
<asp:Panel ID="Panel1" runat="server" Width="300"  style="background-color: #BBBBFF;">
      
<table border="0">
      
<tr>
      
<td>First Name</td><td><input type="text" id ="firstName" /></td>
      
</tr>
      
<td>Last Name</td> <td><input type="text" id="lastName"</td>
      
<tr>
      
</tr>
      
</table>
    
</asp:Panel>
    
<ajaxToolkit:DropShadowExtender ID="DropShadowExtender1" runat="server"
                                    TargetControlID
="Panel1" 
                                    Opacity
=".35"                                                                      
                                    Rounded
="true"
                                    Radius
="10"
                                    TrackPosition
="true">
    
</ajaxToolkit:DropShadowExtender>
    
</form>
</body>
</html>

   运行结果:
    

    

 

 

转载于:https://www.cnblogs.com/abcdwxc/archive/2007/11/02/946700.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值