ModalPopupExtender有不能拖动

<head id="Head1" runat="server">
    <title>无标题页</title>


<script type="text/javascript">
      
        var styleToSelect;
        function onOk() {
            $get('Paragraph1').className = styleToSelect;
          
        }
       
      
        </script>

    <style type="text/css">
    .modalBackground {
    background-color:Gray;
   
   
}
 
.modalPopup {
    background-color:#ffffdd;
    border-width:3px;
    border-style:solid;
    border-color:Gray;
    padding:3px;
   
}
 
.sampleStyleA {
    background-color:#FFF;
}
 
.sampleStyleB {
    background-color:#FFF;
    font-family:monospace;
    font-size:10pt;
    font-weight:bold;
}
 
.sampleStyleC {
    background-color:#ddffdd;
    font-family:sans-serif;
    font-size:10pt;
    font-style:italic;
}
 
.sampleStyleD {
    background-color:Blue;
    color:White;
    font-family:Arial;
    font-size:10pt;
}
    </style>
</head>

<body>
    <form id="form1" runat="server">
       
        <div>
            <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
            <asp:Panel ID="Panel1"  runat="server"  Style="display: none; width:100%; height:100%">
            <asp:Panel ID="Panel2" runat="server" CssClass="modalPopup" Width="309px">
                <div>
                    <p>
                        请选择页面风格:</p>
                    <p>
                        <input type="radio" name="Radio" id="RadioA" checked="checked"
                            οnclick="styleToSelect = 'sampleStyleA';" />
                        <label for="RadioA" class="sampleStyleA" style="padding: 3px;">风格样式一</label>
                    </p>
                    <p>
                        <input type="radio" name="Radio" id="RadioB"
                            οnclick="styleToSelect = 'sampleStyleB';" />
                        <label for="RadioB" class="sampleStyleB"
                            style="padding: 3px;">风格样式二</label>
                    </p>
                    <p>
                        <input type="radio" name="Radio" id="RadioC"
                            οnclick="styleToSelect = 'sampleStyleC';" />
                  
                        <label for="RadioC" class="sampleStyleC"
                            style="padding: 3px;">风格样式三</label>
                     
                    </p>
                    <p>
                        <input type="radio" name="Radio" id="RadioD"
                            οnclick="styleToSelect = 'sampleStyleD';" />
                        <label for="RadioD" class="sampleStyleD"
                            style="padding: 3px;">
                            风格样式四
                        </label>
                    </p>
                    <p>
                        <label class="sampleStyleD" for="RadioD" style="padding-right: 3px; padding-left: 3px;
                            padding-bottom: 3px; padding-top: 3px">
                            <span style="font-size: 12pt"><span style=""><span style="color: #000000">
                            </span></span></span>
                        </label>
                        <asp:Button ID="OkButton" runat="server" Text="确定" />
                        <asp:Button ID="CancelButton" runat="server" Text="取消" />
                    </p>
                </div>
            </asp:Panel>
        </asp:Panel>

<asp:ScriptManager ID="ScriptManager2" runat="server">
            </asp:ScriptManager>
           
            <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton1"
            PopupControlID="Panel1"
            BackgroundCssClass="modalBackground"
            OkControlID="OkButton"
            OnOkScript="onOk();"
            CancelControlID="CancelButton"
             DropShadow="false"
           
           Drag="true"  PopupDragHandleControlID="Panel1">
            </cc1:ModalPopupExtender>
            <p id="Paragraph1">
                今天天气不错挺风和日丽的<br />
                我们下午没有课这天气挺爽的
                <br />
                我一大中午早早的跑去上自习心里啄么着大学生活是多么美好啊 ……
            </p>
        </div>
       
    </form>

      

</body>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值