简体   繁体   中英

Rounded corners not working for image button in IE

I can`t get this rounded cornes work for image buttons in IE. It's working in other browsers, like Mozilla, Chrome and Opera, but not IE11.

I have tried to get the rounded corners, with both CSS and ajaxcontroltoolkit:

    <style>
    body {
        background-color: green;
    }
    .RoundedElement {
        border-radius: 15px;
    }

    </style>

</head>
<body>
<form id="form1" runat="server">
<div>

        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>


        CSS<br />
            <asp:ImageButton ID="imgbtnCSS" CssClass="RoundedElement" runat="server"  ImageUrl="~/Bilder/1034.jpg" />
                        <br />
        AjaxControlToolKit:<br />
            <asp:ImageButton ID="imgbtnAjax" runat="server"  ImageUrl="~/Bilder/1034.jpg" />
                    <ajaxToolkit:RoundedCornersExtender ID="imgbtnAjax_RoundedCornersExtender" runat="server" BehaviorID="imgbtnAjax_RoundedCornersExtender" Radius="15" TargetControlID="imgbtnAjax" />
                            <br />
        CSS<br />
            <asp:Button ID="btnCSS" CssClass="RoundedElement" runat="server" Text="Button" />
                <br />
        AjaxControlToolKit:<br />
            <asp:Button ID="btnAjax" CssClass="RoundedElement" runat="server" Text="Button" />
                    <ajaxToolkit:RoundedCornersExtender ID="btnAjax_RoundedCornersExtender" runat="server" BehaviorID="btnAjax_RoundedCornersExtender" Radius="15" TargetControlID="btnAjax" />


</div>
</form>

The regular buttons work in IE11. Both CSS and Ajax.

我冒昧地猜测您正在以一种兼容模式运行IE11,以使其破坏像边界半径这样简单的内容。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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