Box-shadow and border-radius bug in Chrome

后端 未结 9 1686
盖世英雄少女心
盖世英雄少女心 2020-12-13 09:46

I\'ve been experimenting with CSS3 and found something strange. Heres\'s the part of DIV style:

border:#446429 solid 1px;
border-radius:15px;
-moz-border-rad         


        
9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 10:14

    Putting in first an inset shadow that is the same colour as the background seems to work pretty well without putting extra markup on your page.

    E.g. if you had a white background page :

    -webkit-box-shadow:1px 1px 1px #fff inset,0px 0px 5px #333 inset;
    

提交回复
热议问题