Does Opera 10.6 properly support border-radius on fieldsets?

馋奶兔 提交于 2019-12-13 16:52:08

问题


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:

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


回答1:


That's probably a bug in their rendering engine.




回答2:


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:


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).



来源:https://stackoverflow.com/questions/3461201/does-opera-10-6-properly-support-border-radius-on-fieldsets

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!