Drop shadow on a div container?

后端 未结 6 1258
温柔的废话
温柔的废话 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:21

    CSS3 has a box-shadow property. Vendor prefixes are required at the moment for maximum browser compatibility.

    div.box-shadow {
        -webkit-box-shadow: 2px 2px 4px 1px #fff;
        box-shadow: 2px 2px 4px 1px #fff;
    }
    

    There is a generator available at css3please.

提交回复
热议问题