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

b2b电子订货平台百度seo服务

b2b电子订货平台,百度seo服务,1688品牌加盟网,广告公司简介介绍大家好,我是csdn的博主:lqj_本人 lqj_本人_python人工智能视觉(opencv)从入门到实战,前端,微信小程序-CSDN博客 最新的uniapp毕业设计专栏也放在下方了: https://blog.csdn.net/lbcyllqj/category_12346639.html?spm1…

 大家好,我是csdn的博主:lqj_本人

lqj_本人_python人工智能视觉(opencv)从入门到实战,前端,微信小程序-CSDN博客

最新的uniapp毕业设计专栏也放在下方了:

https://blog.csdn.net/lbcyllqj/category_12346639.html?spm=1001.2014.3001.5482

平时我也会在哔哩哔哩视频中讲解一些大家平时用得到的东西,

哔哩哔哩欢迎关注:

卢淼儿的个人空间-卢淼儿个人主页-哔哩哔哩视频

目录

怎么做?

HTML

CSS

js


磨砂玻璃效果已经在互联网上流行了很多年,Mac OS以其磨砂玻璃效果而闻名,Windows 10也通过其他一些灯光,深度,运动,材质,比例尺实现了磨砂玻璃的效果 。

在CSS中使用磨砂玻璃效果时,我们中的一些人知道该怎么做,而其他人仍会在百度搜索:

怎么做?

“ css光泽效果”
“ css毛玻璃”
“透明模糊背景css”
“毛玻璃效果photoshop”
“仅cs模糊背景”
“ css玻璃窗格”
“ css背景滤镜”
“ css模糊覆盖物”
“ css div后面的模糊背景”

今天,我将展示仅CSS的一种方法,教你可以使用该方法在CSS中进行磨砂玻璃效果。 

HTML

<div class="card"><h2 class="gradient"><哔哩哔哩:卢淼儿/></h2><div><p>.welcome{</p><p class="indent">"CSDN:lqj_本人"</p><p class="indent">"哔哩哔哩:卢淼儿"</p><p>}</p></div><a href="#" class="gradient">欢迎三连</a>
</div>

CSS

body {display: flex;justify-content: center;align-items: center;margin: 0;padding: 0;width: 100vw;min-height: 100vh;background: url(https://img0.baidu.com/it/u=1049144354,3589714554&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800) no-repeat;background-size: cover;
}.card {display: flex;flex-direction: column;justify-content: center;align-items: center;padding: 20px;width: 300px;height: 400px;box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);border-top: 1px solid rgba(255, 255, 255, 0.1);border-left: 1px solid rgba(255, 255, 255, 0.1);border-radius: 15px;background: rgba(255, 255, 255, .9);//   background: rgba(255, 255, 255, .3);//   backdrop-filter: blur(20px) brightness(150%);@supports (backdrop-filter: blur(20px) brightness(150%)) {background: rgba(255, 255, 255, .3);backdrop-filter: blur(20px) brightness(150%);}h2 {font-size: 1.8em;color: transparent;-webkit-background-clip: text;background-clip: text;}p {font-size: 1em;color: #1b263b;font-weight: 300;&.indent {text-indent: 1em;}}a {padding: 15px 50px;border-radius: 30px;color: white;text-decoration: none;font-weight: 500;// background-image: linear-gradient(//     45deg,//     hsl(220deg 67.24% 60%),//     hsl(333.91deg 50% 60%)// );box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);transition: filter .5s;&:hover {filter: brightness(120%);}}
}

js

function rgbToHsl(r, g, b) {r /= 255;g /= 255;b /= 255;let max = Math.max(r, g, b);let min = Math.min(r, g, b);let h, s, l = (max + min) / 2;if (max === min) {h = s = 0;} else {let d = max - min;s = l > 0.5 ? d / (2 - max - min) : d / (max + min);switch (max) {case r:h = (g - b) / d + (g < b ? 6 : 0);break;case g:h = (b - r) / d + 2;break;case b:h = (r - g) / d + 4;break;}h /= 6;}return [h * 360, s * 100, l * 100];
}
const gradientBtn = () => {const img = new Image();img.addEventListener('load', function() {const colorThief = new ColorThief();let palette = colorThief.getPalette(img, 3);palette.forEach((item, index) => {palette[index] = rgbToHsl(...item);})// document.getElementById('button').style.backgroundImage = `linear-gradient(//     45deg,//     hsl(${palette[1][0]}deg 60% 60%),//     hsl(${palette[2][0]}deg 60% 60%)// )`;document.querySelectorAll('.gradient').forEach(el => el.style.backgroundImage = `linear-gradient(45deg,hsl(${palette[1][0]}deg 60% 60%),hsl(${palette[2][0]}deg 60% 60%))`);// document.getElementById('button').style.backgroundImage = `linear-gradient(//     45deg,//     hsl(${palette[1][0]}deg ${palette[1][1]}% ${palette[1][2]}%),//     hsl(${palette[2][0]}deg ${palette[2][1]}% ${palette[2][2]}%)// )`;// document.getElementById('button').style.backgroundImage = `linear-gradient(//     45deg,//     rgb(${palette[1][0]}, ${palette[1][1]}, ${palette[1][2]}),//     rgb(${palette[2][0]}, ${palette[2][1]}, ${palette[2][2]})// )`;});img.crossOrigin = 'anonymous';img.src = 'https://img0.baidu.com/it/u=1049144354,3589714554&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800 no-repeat';
}gradientBtn();

http://www.qdjiajiao.com/news/10124.html

相关文章:

  • 全国中高风险地区最新名单系统优化助手
  • 搭建微网站平台青岛seo软件
  • 绘本借阅网站开发seo排名快速
  • 伊春住房和城乡建设局网站网站设计公司排行榜
  • 成都网站建设 全美宁波seo公司
  • 桂林生活网二手宁波网站建设网站排名优化
  • 网站建设移交确认书域名注册价格及续费
  • 陕西网站设计什么是网站外链
  • 吴兴区建设局网站seo研究中心vip课程
  • wordpress商城制作教程东莞seo整站优化火速
  • 天津做网站的企业百度推广开户多少钱
  • 佛山做网站邢台市seo服务
  • 工程建设信息网站接口百度发视频步骤
  • 带动画引导的网站北京最新消息今天
  • 宁波大型网站推广服务谷歌搜索广告
  • 中英文企业网站源码做个电商平台要多少钱
  • 俄罗斯网站建设抖音seo培训
  • 做公司网站优劣势网络推广要求
  • 网站建设资讯版块如何做用户运营成都网站制作关键词推广排名
  • 淘宝京东网站建设目的郑州seo全网营销
  • 建设网站的技巧网络信息发布平台
  • 宝塔 怎么做网站网络营销过程步骤
  • 网站开发工程师岗位职责要求搜索软件排行榜前十名
  • 网站建设 提成多少网站seo优化多少钱
  • 华为手机官网入口南宁百度seo建议
  • 自己建购物网站公司网站设计公司
  • 长沙网站制作今日新闻最新消息50字
  • 做站长工具网站如何开展网络营销活动
  • 武汉建网公司网站建设什么是网络营销?
  • 公司装修放假期间有没有工资seo外链