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

网站设计专家百度搜索排名与点击有关吗

网站设计专家,百度搜索排名与点击有关吗,wix做网站,vue做移动端网站与pc端有什么区别毛玻璃效果简介 它的主要特征就是半透明的背景,以及阴影和边框。 同时还要为背景加上模糊效果,使得背景之后的元素根据自身内容产生漂亮的“变形”效果,示例: 代码实现 首先,创建一个 HTML 文件,写入如下…

毛玻璃效果简介

        它的主要特征就是半透明的背景,以及阴影和边框。

同时还要为背景加上模糊效果,使得背景之后的元素根据自身内容产生漂亮的“变形”效果,示例:

Glassmorphism

 代码实现

首先,创建一个 HTML 文件,写入如下内容:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Glassmorphism effect</title>
</head>
<body><!-- code goes here -->
</body>
</html>

为 body 标签添加一些样式,并使用鲜艳的颜色和渐变作为背景:

body {padding: 4.5rem;margin: 0;background: #edc0bf;background: linear-gradient(90deg, #edc0bf 0,#c4caef 58%);font-family: 'Inter', sans-serif;
}

现在基本的标签和样式做好了,接下来在 body 标签里创建一个卡片元素:

<div class="card"><h3 class="card-title">Glassmorphism is awesome</h3><p>A modern CSS UI library based on the glassmorphism design principles that will help you quickly design and build beautiful websites and applications.</p><a href="https://ui.glass">Read more</a>
</div>

添加样式

.card {width: 400px;height: auto;padding: 2rem;border-radius: 1rem;
}.card-title {margin-top: 0;margin-bottom: .5rem;font-size: 1.2rem;
}p, a {font-size: 1rem;
}a {color: #4d4ae8;text-decoration: none;
}

 你要做的只是设置一个半透明背景颜色,并使用 backdrop-filter 属性设置模糊效果。在 .card 元素的样式中加入以下 CSS:

.card {/* other styles */background: rgba(255, 255, 255, .7);-webkit-backdrop-filter: blur(10px);backdrop-filter: blur(10px);
}

 

后方没有形状时的效果

让我们使用 img 标签在 body 起始标签之后加入一个形状图片:

<img class="shape" src="https://s3.us-east-2.amazonaws.com/ui.glass/shape.svg" alt="">

 并为 .shape 元素添加以下样式,将其定位在页面的合适位置:

.shape {position: absolute;width: 150px;top: .5rem;left: .5rem;
}

效果如下图所示:

 

 完整代码html和css代码如下:

glass.html

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" type="text/css" href="glass.css"><title>Glassmorphism effect</title>
</head>
<body><img class="shape" src="https://s3.us-east-2.amazonaws.com/ui.glass/shape.svg" alt=""><!-- code goes here -->
<div class="card"><h3 class="card-title">Glassmorphism is awesome</h3><p>A modern CSS UI library based on the glassmorphism design principles that will help you quickly design and build beautiful websites and applications.</p><a href="https://www.baidu.com">Read more</a>
</div>
</body>
</html>

glass.css:

body {padding: 4.5rem;margin: 0;background: #edc0bf;background: linear-gradient(90deg, #edc0bf 0,#c4caef 58%);font-family: 'Inter', sans-serif;
}.card {width: 400px;height: auto;padding: 2rem;border-radius: 1rem;background: rgba(255, 255, 255, .7);webkit-backdrop-filter: blur(10px);backdrop-filter: blur(10px);
}.card-title {margin-top: 0;margin-bottom: .5rem;font-size: 1.2rem;
}p, a {font-size: 1rem;
}a {color: #4d4ae8;text-decoration: none;
}.shape {position: absolute;width: 150px;top: .5rem;left: .5rem;
}

 

http://www.dinnco.com/news/50536.html

相关文章:

  • 域名备案要先做网站的吗广州软文推广公司
  • 个人音乐网站模板百度首页排名优化多少钱
  • 海南网站建设介绍西安seo哪家好
  • 地方门户网站模板免费百度seo引流
  • 在相亲网站认识了一个做红酒生意的宁波seo在线优化方案公司
  • 网站运营托管seo营销
  • 广州网站建设排行最近发生的热点新闻
  • 餐馆网站怎么做游戏优化是什么意思
  • 怎么做舞曲网站进入百度app查看
  • 电子商城网站开发教程怎么查询搜索关键词
  • wordpress主题茶叶360优化大师官方下载
  • 谷歌广告投放东莞关键词seo
  • 医疗设备网站建设怎么做朝阳区seo搜索引擎优化怎么样
  • 湛江免费企业建站十大接单平台
  • 莆田做网站建设网络优化的三个方法
  • 怎么找做网站的外包公司爱站网影院
  • 建站快车管理alexa
  • 企业网站asp源码百度推广投诉中心
  • 做网站怎么接活百度提问在线回答问题
  • 国内电商网站html源码seo站长常用工具
  • 印刷报价下单网站开发国际军事形势最新消息
  • 做新房什么网站好友情链接页面
  • 北京各大网站推广服务公司最新nba排名
  • 电气网站模板直通车推广怎么收费
  • 来年做哪个网站致富线上广告推广
  • 湖南seo网站优化排名软件哪些最好
  • 岳阳网站建设 熊掌号合肥做网站公司哪家好
  • 建设一个网站需要做哪些事情如何提高网站排名seo
  • 企业网站建设大概费用正规seo排名公司
  • 深圳网站开发教程长沙官网seo技术