IE11 border radius and border bug

后端 未结 6 1035
青春惊慌失措
青春惊慌失措 2020-12-06 04:50

I have an odd visual bug in IE11 as you can see in image here >


(source: jonwallacedesign.biz)

See the odd effect on corners of the white

相关标签:
6条回答
  • 2020-12-06 05:24

    Please try this inside conditional CSS block.

    background-image: url("../images/core/primnavItemBG_sprite.png");
    border: 1px solid #FFFFFF; /*In Border color use color same as background color otherwise use border-size:0*/
    box-shadow: none;
    outline: none;
    

    hope this will fix your issue

    0 讨论(0)
  • 2020-12-06 05:29

    Instead of a background-image why not use http://css3buttongenerator.com/ to recreate this button and save on any additional requests and loading time. I was able to re-create your button and your gradient just fine in IE 11 using the above generator. Picture attached; Button image

    0 讨论(0)
  • 2020-12-06 05:31

    Solution:

    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    
    <style>
        border-top-right-radius: 7px;
        border-top-left-radius: 7px;
        border-bottom-right-radius: 2px;
        border-bottom-left-radius: 2px;
    </style>
    
    0 讨论(0)
  • 2020-12-06 05:40

    You turn on IE10 mode by adding <meta http-equiv="X-UA-Compatible" content="IE=10" /> to head section and will work normally.

    0 讨论(0)
  • 2020-12-06 05:46

    Adding a solid BG colour to IE10 + fixed this... seems like an IE bug trying to render CSS3 bits...

    0 讨论(0)
  • 2020-12-06 05:50

    This worked for me. I am not sure if you have the same problem as me. I was getting slight white borer just around the corners.

    background-clip: padding-box;

    0 讨论(0)
提交回复
热议问题