reactjs - 我怎样才能在所有方面都显示卡片阴影?
问题描述
我有以下风格
card: {
backgroundColor: Colors.white,
borderRadius: 10,
marginRight: Metrics.WIDTH*0.02,
marginLeft: Metrics.WIDTH*0.02,
borderColor: Colors.SILVER,
borderWidth: 2,
shadowColor: 'gray',
shadowOffset: { width: 2, height: 2 },
shadowOpacity: 0.5,
shadowRadius: 2,
elevation: 10,
},
上述样式仅在右侧和底部创建阴影。如何平等地创造全方位的对决
解决方案
推荐阅读
- scala - Scala - 如何在地图上使用过滤器
- python - 使用 SQLObject ORM 过滤“列表中的值”
- elasticsearch - 为什么 Grafana ElasticSearch 查询在硬编码时可以工作,但在使用 Grafana 变量值替换时会失败?以及如何解决?
- c++11 - 将命名空间添加到平面缓冲区模式中的枚举类型
- angular - Angular 8:无法实例化循环依赖 - ActivatedRoute
- androidx - 如何将 AndroidX 迁移到 Android?
- oracle - 我可以编译下面的SP吗
- java - 如何将 jsonArray 转换为 List
爪哇? - github - 使用graphql github api过滤两个日期之间合并的pr
- java - 为什么我的 Java 服务器代码在尝试从条带接收 webhook 时抛出 502 错误?