Does Opera 10.6 properly support border-radius on

2019-07-22 11:58发布

I am trying to get the border radius property to work properly on a fieldset in Opera 10.6, but it does not appear to be working correctly.

Here is the html:

<form method="post" action="character.php" class="form">
    <fieldset>
        <legend>Insert</legend>
        <label for="txtCharacter">Character</label>
        <input type="text" id="txtCharacter" name="txtCharacter" />
    </fieldset>
</form>

Here is the css I am trying to use:

.form fieldset {
    background-color:#355e3b;
    margin:0px;
    border:3px solid #635147;

    /* Adds the rounded border effect. */
    -webkit-border-radius:10px;
    -moz-border-radius:10px;
    border-radius:10px;
}

The above works perfectly in Firefox and Safari, giving a me a rounded fieldset with desired border shape/size/color and the correct background color:

Safari http://img827.imageshack.us/img827/8411/safari1.png

Opera gives me the correct colors, but the borders are square:

Opera1 http://img37.imageshack.us/img37/2051/opera1r.png

However, if I take the line specifying the border (border:3px solid #635147;) then Opera gives a rounded fieldset just as it is supposed to:

Opera2 http://img651.imageshack.us/img651/4651/opera2j.png

What's going on here? Why won't Opera display the border-radius when a border is selected? Thanks!

3条回答
可以哭但决不认输i
2楼-- · 2019-07-22 12:05

There are a few well know issues with rounded corners on input elements in Opera, possibly one of the workarounds people have discovered for that would work on your fieldset.

查看更多
太酷不给撩
3楼-- · 2019-07-22 12:16

That's probably a bug in their rendering engine.

查看更多
看我几分像从前
4楼-- · 2019-07-22 12:25

I'm using Opera 11.51, and the bug is still there.

css:

fieldset {
    moz-border-radius:1.5em;
    border-radius:1.5em;
}

Chrome, Safari, Firefox: works

IE 6 thru 8, Opera 11.51: doesn't work (no support until IE9, of course).

查看更多
登录 后发表回答