我们用的第一个滤镜是sepia(),他会给图片增加一整降饱和度的橙色染色效果

原图

添加sepia滤镜的效果

 img{
width:100%;
transition: .5s filter;
filter:sepia(2);
}
img:hover{
filter:none;
}

给色度添加饱和度可以用saturate()

filter: saturate(4);

两个同时添加的效果

filter:sepia(2) saturate(4);

如果不希望把图片调成橙黄色调也可以添加hue-rotate滤镜,变成稍深的亮粉色,大约295度

filter:sepia(1) saturate(4) hue-rotate(295deg);

还有一种毛玻璃的效果如下

html

<div class="box">
<p class='p'> An international forum for the world's major
bay areas launched a new cooperation platform over
the weekend to exchange resources and development
ideas, with bay areas in China and the United States
also standing to benefit.
</p>
</div>

css

.box {
margin: 0 auto;
width: 500px;
height: 300px;
color: #fff;
background: url('../assets/pic.jpg') 0 / cover;
display: flex;
justify-content: center;
align-items: center;
}
.p{
position:relative;
padding: 15px;
background:hsla(0 ,0% ,100%,.3);
width: 350px;
font-size:1.2em;
overflow:hidden;
z-index:; }
.p::before{
content:'';
z-index:-1;
position:absolute;
top:;left:;right:;bottom:;
filter:blur(20px);
margin:-10px;
background: url('../assets/pic.jpg') 0 / cover;
}

效果图

最新文章

  1. Oracle Database 12c Release 1下载安装(自身经历)
  2. Android first --- 单元测试框架junit
  3. C++对析构函数的误解(转)
  4. 2013年 蓝桥杯预赛 java 本科A 题目
  5. 验证标题是否存在(TextBox控件失去焦点验证)
  6. vml 在IE8 不显示的问题, Group不能用等问题.
  7. JavaScript 数组方法总结
  8. C++ QT中的QSound使用方法
  9. 可恶的QT隐式共享
  10. Eclipse不能自动编译 java文件,不会生成CLASS
  11. UART串口协议基础1
  12. 开源Math.NET基础数学类库使用(17)C#计算矩阵条件数
  13. IE11 Windows7下F12 DOC资源管理器不能用Exception in window.onload: Error: An error has ocurredJSPlugin.3005
  14. 【BZOJ3238】差异(后缀自动机)
  15. [HNOI2001]求正整数
  16. RTMP 摄像头推流至七牛云直播
  17. Zabbix Server 自带模板监控更加灵活MySQL数据库
  18. 基于asp.net的excel导入导出
  19. ucli tcl cmd
  20. python全栈开发笔记---------数据类型-----字典dict

热门文章

  1. kmp与扩展kmp模板
  2. JSON 和 xml 浅读
  3. Python第十二节 异常
  4. shell变量替换扩展 字符串计数截取
  5. Eclipse如何设置jsp文件默认UTF-8格式编码
  6. vue 使用Animate.css库
  7. 根据ID查询实体
  8. 阿里云资深技术专家黄省江:让天下没有难做的SaaS
  9. QT之sqlite连接
  10. Service4