html - 我怎样才能在CSS中实现这种效果?

标签 html css

我想知道我怎样才能做出这样的效果:

white-shadow .

右边那个白色影子。

最佳答案

这是通过 box-shadow 属性完成的。你可以阅读它here .

.example {
  background: red;
  box-shadow: 10px 10px 8px rgba(0, 0, 0, .3);
  height: 200px;
  width: 200px;
}
<div class="example"></div>

关于html - 我怎样才能在CSS中实现这种效果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44605826/

相关文章:

jquery - jquery中的浏览器识别

html - 如何在没有绝对位置和 float 的情况下将 div 定位到容器的右端?

javascript - 当事件触发时调用cesiumjs中的函数

html - 向下移动/从顶部平移时淡入元素的方法?

jquery - 调整 HTML 表格大小时的页面宽度

html - 处理 Internet Explorer 兼容模式时并排 Div

javascript - Phonegap 应用程序文本出现后立即消失。我该如何调试?

javascript - 在具有 getElementsByTagName() 的对象上添加 'mouseover' 和 'mouseout' 事件监听器仅将事件应用于最后一项

html - 制作一个列高度相同的表格

javascript - 一个很好的实现 'fashionable' 大输入文本框的例子?