Border-radius bleeding

后端 未结 3 2015
夕颜
夕颜 2020-12-17 08:45

I want to give border-radius to a

相关标签:
3条回答
  • 2020-12-17 09:25

    Add:

    -webkit-background-clip: padding-box;
    

    To fix this in Webkit.

    0 讨论(0)
  • 2020-12-17 09:31

    To fix this in all browsers you should use:

    -moz-background-clip: padding; 
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    

    I found the answer here

    0 讨论(0)
  • 2020-12-17 09:40

    I had a problem with a bootstrap panel border or background bleeding to a HTML header <h> element above the bootstrap panel. The <h> element has class="page-header" and is contained in a div element with class="col-lg-12". The answers here and in other places didn't work for me.

    What worked was adding this to the panels CSS class:

    overflow:hidden;
    

    I got the direction from here from Carol's answer.

    Edit:

    This caused another problem for me. I had Dropdown controls in the panel and the overflow:hidden; caused the dropdowns to be cut off and not displayed fully.

    The dropdowns are contained in div elements with Bootstrap col-lg classes. I added style="position: inherit" to those div elements containing the dropdowns and that solved the problem.

    The solution to that problem I found here.

    Additional Option:

    I added 3 or 4 <br/> elements before the div tag that was bleeding and that solved the bleeding problem without any bad side effects.

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