css实现5种图片滤镜效果代码

代码语言:html

所属分类:其他

代码描述:css实现5种图片滤镜效果代码

代码标签: css 图片 滤镜

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
<style>
@import url("https://fonts.googleapis.com/css?family=Lato:700");
* {
  margin: 0;
  box-sizing: border-box;
}
body {
  background: #2f2f31;
  height: 100vh;
  overflow: hidden;
  color: #f5f5f5;
  line-height: 1.34;
}
.container {
  width: 100%;
  height: 100%;
}
.container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.all_label {
  width: 32px;
  aspect-ratio: 1;
  border-radius: 12%;
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: #fff;
  box-shadow: 0 0 16px rgba(0,0,0,0.267);
  z-index: 50;
  cursor: pointer;
  opacity: 0.4;
}
.all_label::after {
  content: "•";
  color: #f00;
  font-weight: bold;
  font-size: 1.6e.........完整代码请登录后点击上方下载按钮下载查看

网友评论0