当前位置: 首页 > news >正文

CSS :mix-blend-mode、aspect-ratio

mix-blend-mode

元素的内容应该与元素的直系父元素的内容和元素的背景如何混合。

mix-blend-mode: normal; // 正常mix-blend-mode: multiply; // 正片叠底mix-blend-mode: screen; // 滤色mix-blend-mode: overlay; // 叠加mix-blend-mode: darken; // 变暗mix-blend-mode: lighten; // 变亮mix-blend-mode: color-dodge; // 颜色减淡mix-blend-mode: color-burn; // 颜色加深mix-blend-mode: hard-light; // 强光mix-blend-mode: soft-light; // 柔光mix-blend-mode: difference; // 差值mix-blend-mode: exclusion; // 排除mix-blend-mode: hue; // 色相mix-blend-mode: saturation; // 饱和度mix-blend-mode: color; // 颜色mix-blend-mode: luminosity; // 亮度mix-blend-mode: initial;mix-blend-mode: inherit;mix-blend-mode: unset;

 PS: mix-blend-mode: multiply;    // 可以得到图片背景透明效果

aspect-ratio 

 保持长宽比

.container {width: 100%;aspect-ratio: 16 / 9;
}

http://www.lryc.cn/news/140174.html

相关文章:

  • Module not found: Error: Can‘t resolve ‘less-loader‘解决办法
  • 量化QAT QLoRA GPTQ
  • CentOS下查看 ssd 寿命
  • Node基础--npm相关内容
  • Python图片爬虫工具
  • 制造执行系统(MES)在汽车行业中的应用
  • Spring与Mybatis集成且Aop整合
  • 【nonebot-plugin-mystool】快速安装使用nonebot-plugin-mystool
  • js实现数据关联查找更新。数据求和验证
  • 区块链上地址与银行账户有什么区别?
  • CF 148 D Bag of mice(概率dp求概率)
  • 引入本地 jar 包教程
  • 优维产品最佳实践第5期:什么是持续集成?
  • 空时自适应处理用于机载雷达——元素空间空时自适应处理(Matla代码实现)
  • 聚观早报 | 青瓷游戏上半年营收3.34亿元;如祺出行冲击IPO
  • 硅谷的魔法:如何塑造了全球技术的未来
  • (三)行为模式:4、迭代器模式(Iterator Pattern)(C++示例)
  • React Antd form.getFieldsValue() 和 form.getFieldsValue(true) 有区别吗?
  • 浅谈Java中的观察者模式
  • C++:命名空间,缺省参数,函数重载,引用,内联函数
  • 2.Vue报错Cannot read properties of undefined (reading ‘then‘)
  • 【LeetCode 】数组简介
  • 一文解析block io生命历程
  • Python爬虫学习之旅:从入门到精通,要学多久?
  • HarmonyOS/OpenHarmony(Stage模型)卡片开发应用上下文Context使用场景一
  • MAE 论文精读 | 在CV领域自监督的Bert思想
  • C++中内存的分配
  • Qt中的垂直布局QVBoxLayout和水平布局QHBoxLayout
  • 【C#学习笔记】委托和事件
  • 堆排序简介