Drop shadow on a div container?

后端 未结 6 1255
温柔的废话
温柔的废话 2020-12-23 19:52

I have a searchbox with auto-suggest that pops a div up underneath it with multiple search string suggestions (like google). Is it possible to have drop shadow on the auto-

6条回答
  •  别那么骄傲
    2020-12-23 20:31

    This works for me on all my browsers:

    .shadow {
    -moz-box-shadow: 0 0 30px 5px #999;
    -webkit-box-shadow: 0 0 30px 5px #999;
    }
    

    then just give any div the shadow class, no jQuery required.

提交回复
热议问题