Skip to content
On this page

Effects

不透明度

用于控制元素不透明度的功能类。

使用前缀

为了防止和开发者项目中的其他原子化样式语法冲突,样式库默认添加了前缀 lwu,使用示例如下:

vue
<view class="lwu-flex"></view>

语法

0-100,步进5

ClassProperties平台兼容性说明
opacity-0opacity: 0 * 0.01H5、小程序、app-vue、app-nvue
opacity-5opacity: 5 * 0.01H5、小程序、app-vue、app-nvue
opacity-10opacity: 10 * 0.01H5、小程序、app-vue、app-nvue
opacity-15opacity: 15 * 0.01H5、小程序、app-vue、app-nvue
opacity-20opacity: 20 * 0.01H5、小程序、app-vue、app-nvue
opacity-25opacity: 25 * 0.01H5、小程序、app-vue、app-nvue
opacity-30opacity: 30 * 0.01H5、小程序、app-vue、app-nvue
opacity-35opacity: 35 * 0.01H5、小程序、app-vue、app-nvue
opacity-40opacity: 40 * 0.01H5、小程序、app-vue、app-nvue
opacity-45opacity: 45 * 0.01H5、小程序、app-vue、app-nvue
opacity-50opacity: 50 * 0.01H5、小程序、app-vue、app-nvue
opacity-55opacity: 55 * 0.01H5、小程序、app-vue、app-nvue
opacity-60opacity: 60 * 0.01H5、小程序、app-vue、app-nvue
opacity-65opacity: 65 * 0.01H5、小程序、app-vue、app-nvue
opacity-70opacity: 70 * 0.01H5、小程序、app-vue、app-nvue
opacity-75opacity: 75 * 0.01H5、小程序、app-vue、app-nvue
opacity-80opacity: 80 * 0.01H5、小程序、app-vue、app-nvue
opacity-85opacity: 85 * 0.01H5、小程序、app-vue、app-nvue
opacity-90opacity: 90 * 0.01H5、小程序、app-vue、app-nvue
opacity-95opacity: 95 * 0.01H5、小程序、app-vue、app-nvue
opacity-100opacity: 100 * 0.01H5、小程序、app-vue、app-nvue