CSS Border radius not trimming image on Webkit

前端 未结 6 1357
闹比i
闹比i 2020-11-27 20:21

I\'m having trouble figuring out why border-radius is gone from my #screen element when using chrome but not firefox or ie9?

I have all the different prefixes for ea

6条回答
  •  [愿得一人]
    2020-11-27 21:12

    It very much does have a border radius:

    enter image description here

    (I just added a border with Chrome's dev toolbar.)

    The border radius doesn't restrict its contents to within the resulting area—the space outside the corners are still occupiable by the element's contents.

    My recommendation would be to overlay an image that had the corners cut out like that (and then use a map or whatever you feel comfortable with to still enable the left/right arrows).

提交回复
热议问题