Drop shadow on a div container?

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

    The most widely compatible way of doing this is likely going to be creating a second div under your auto-suggest box the same size as the box itself, nudged a few pixels down and to the right. You can use JS to create and position it, which shouldn't be terribly difficult if you're using a fairly modern framework.

提交回复
热议问题