Can CSS3 box-shadow:inset do only one or two sides? like border-top?

后端 未结 11 1653
时光说笑
时光说笑 2021-01-30 04:44

I\'m wondering about the support for side specific inner shadows in css3.

I know this works great on supported browsers.

div { box-shadow:inset 0px 1px 5         


        
11条回答
  •  醉梦人生
    2021-01-30 05:44

    Multiple box shadows did the trick for me.

    box-shadow:
            inset 0 -8px 4px 4px rgb(255,255,255),
            inset 0 2px 4px 0px rgba(50, 50, 50, 0.75);
    

    http://jsfiddle.net/kk66f/

提交回复
热议问题