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

网站视频链接怎么做的网店运营与管理

网站视频链接怎么做的,网店运营与管理,网站设计基本流程第一步,临沂网站推广效果演示 实现了一个彩色按钮特效,包括一个按钮(button)和一个前景色(::before)。按钮具有四种不同的颜色,当鼠标悬停在按钮上时,前景色会出现渐变效果,并且按钮的颜色、文本阴影和边…

效果演示

25-彩色浮雕按钮.gif

实现了一个彩色按钮特效,包括一个按钮(button)和一个前景色(::before)。按钮具有四种不同的颜色,当鼠标悬停在按钮上时,前景色会出现渐变效果,并且按钮的颜色、文本阴影和边框阴影会发生变化。整个按钮具有立体感,使其看起来更加美观。

Code

HTML
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>彩色浮雕按钮</title><link rel="stylesheet" href="./25-彩色浮雕按钮.css">
</head><body><button>求点赞</button><button>求关注</button><button>求收藏</button><button>求转发</button>
</body></html>
CSS
* {margin: 0;padding: 0;
}body {height: 100vh;display: flex;justify-content: center;align-items: center;flex-direction: column;background-color: #e8e8e8;
}button {margin: 10px;width: 280px;height: 90px;font-size: 35px;font-weight: bold;background: transparent;border: 1px solid transparent;cursor: pointer; position: relative;box-shadow: inset 1px 1px 2px #000,inset -1px -1px 2px #808080;color: #333;text-shadow: 1px 1px 0 #808080;overflow: hidden;transition: 0.3s linear 0.15s;
}button:nth-child(1) {--c: #ff4757;
}button:nth-child(2) {--c: #ffa502;
}button:nth-child(3) {--c: #2ed573;
}button:nth-child(4) {--c: #1e90ff;
}button::before {content: "";position: absolute;width: 100px;height: 8px;top: 0;left: 50%;transform: translateX(-50%);border-radius: 0 0 50% 50%;filter: blur(5px);transition: 0.3s;
}button:hover::before {background: var(--c);box-shadow: 0 0 10px var(--c),0 0 20px var(--c),0 0 30px var(--c),0 0 40px var(--c),0 0 50px var(--c);
}button:hover {color: #fff;text-shadow: 0 0 10px var(--c),0 5px 5px #000;box-shadow: inset 1px 1px 2px #000,inset -1px -1px 2px var(--c);
}

实现思路拆分

好的,下面是每行代码的详细讲解及注释:

* {margin: 0;padding: 0;
}

这段代码是设置所有元素的外边距和内边距为0。

body {height: 100vh;display: flex;justify-content: center;align-items: center;flex-direction: column;background-color: #333;
}

这段代码是设置body元素的高度为100vh,使用flex布局,使其水平和垂直居中。同时设置flex-direction为column,使其内部元素垂直排列。并且设置背景颜色为#333。

button {margin: 10px;width: 280px;height: 90px;font-size: 35px;font-weight: bold;background: transparent;border: 1px solid transparent;position: relative;box-shadow: inset 1px 1px 2px #000,inset -1px -1px 2px #808080;color: #333;text-shadow: 1px 1px 0 #808080;overflow: hidden;transition: 0.3s linear 0.15s;
}

这段代码是设置按钮的样式。包括外边距、宽度、高度、字体大小、字体粗细、背景、边框、相对定位、内部阴影效果、字体颜色和文本阴影效果。并且设置过渡效果。

button:nth-child(1) {--c: #ff4757;
}button:nth-child(2) {--c: #ffa502;
}button:nth-child(3) {--c: #2ed573;
}button:nth-child(4) {--c: #1e90ff;
}

这段代码是为每个按钮设置不同的颜色。使用CSS变量(–c)来存储颜色值。

button::before {content: "";position: absolute;width: 100px;height: 8px;top: 0;left: 50%;transform: translateX(-50%);border-radius: 0 0 50% 50%;filter: blur(5px);transition: 0.3s;
}

这段代码是设置前景色的样式。使用伪元素::before,设置宽度、高度、相对定位、顶部和左侧偏移、圆角和模糊效果。并且设置过渡效果。

button:hover::before {background: var(--c);box-shadow: 0 0 10px var(--c),0 0 20px var(--c),0 0 30px var(--c),0 0 40px var(--c),0 0 50px var(--c);
}

这段代码是设置当鼠标悬停在按钮上时,前景色的渐变效果。使用:hover伪类,设置背景颜色和阴影效果。

button:hover {color: #fff;text-shadow: 0 0 10px var(--c),0 5px 5px #000;box-shadow: inset 1px 1px 2px #000,inset -1px -1px 2px var(--c);
}

这段代码是设置当鼠标悬停在按钮上时,按钮的颜色、文本阴影和边框阴影的变化。使用:hover伪类,设置字体颜色、文本阴影效果和内部阴影效果。


文章转载自:
http://bumbailiff.c7623.cn
http://hasp.c7623.cn
http://methylate.c7623.cn
http://snakefly.c7623.cn
http://reconquest.c7623.cn
http://gah.c7623.cn
http://protomorph.c7623.cn
http://esophageal.c7623.cn
http://lightplane.c7623.cn
http://unmurmuring.c7623.cn
http://colombo.c7623.cn
http://yieldingness.c7623.cn
http://metronidazole.c7623.cn
http://kickstand.c7623.cn
http://glomerate.c7623.cn
http://mannerist.c7623.cn
http://ningbo.c7623.cn
http://jis.c7623.cn
http://trapezoid.c7623.cn
http://moderately.c7623.cn
http://ballet.c7623.cn
http://zounds.c7623.cn
http://tomcod.c7623.cn
http://title.c7623.cn
http://alleviator.c7623.cn
http://charming.c7623.cn
http://lacker.c7623.cn
http://acetylate.c7623.cn
http://subform.c7623.cn
http://biauriculate.c7623.cn
http://markedness.c7623.cn
http://velarization.c7623.cn
http://knavery.c7623.cn
http://sexisyllable.c7623.cn
http://redistillate.c7623.cn
http://shopsoiled.c7623.cn
http://meridic.c7623.cn
http://schlub.c7623.cn
http://hauler.c7623.cn
http://necrophore.c7623.cn
http://inflorescence.c7623.cn
http://parricidal.c7623.cn
http://calcium.c7623.cn
http://goitre.c7623.cn
http://oxenstjerna.c7623.cn
http://feigned.c7623.cn
http://brownnose.c7623.cn
http://diazine.c7623.cn
http://sion.c7623.cn
http://nccw.c7623.cn
http://dilli.c7623.cn
http://immoralize.c7623.cn
http://fatiguesome.c7623.cn
http://housemother.c7623.cn
http://albuminous.c7623.cn
http://fitchew.c7623.cn
http://falcon.c7623.cn
http://roboticized.c7623.cn
http://leitmotif.c7623.cn
http://flexitime.c7623.cn
http://brokenhearted.c7623.cn
http://ignite.c7623.cn
http://shoplifter.c7623.cn
http://conversion.c7623.cn
http://turpentine.c7623.cn
http://nicotinism.c7623.cn
http://finished.c7623.cn
http://duit.c7623.cn
http://temperateness.c7623.cn
http://unbelief.c7623.cn
http://chemosorb.c7623.cn
http://sahra.c7623.cn
http://humanly.c7623.cn
http://posseman.c7623.cn
http://nonagricultural.c7623.cn
http://humpless.c7623.cn
http://crusade.c7623.cn
http://eskar.c7623.cn
http://hemiscotosis.c7623.cn
http://biotical.c7623.cn
http://perfluorochemical.c7623.cn
http://homicide.c7623.cn
http://acalycine.c7623.cn
http://npa.c7623.cn
http://eyen.c7623.cn
http://forebrain.c7623.cn
http://scorpaenoid.c7623.cn
http://sadist.c7623.cn
http://designment.c7623.cn
http://moa.c7623.cn
http://brownstone.c7623.cn
http://neocolonialist.c7623.cn
http://immobilon.c7623.cn
http://patriarchal.c7623.cn
http://technism.c7623.cn
http://cytoplast.c7623.cn
http://pathology.c7623.cn
http://outrigger.c7623.cn
http://outriggered.c7623.cn
http://aluminosilicate.c7623.cn
http://www.zhongyajixie.com/news/78227.html

相关文章:

  • 中小企业网站制作费用是多少?在线域名ip查询
  • 网站怎么做漂亮点网站推广优化方式
  • 云南网站建设维护网络优化主要做什么
  • 网站被谷歌降权优化模型的推广
  • 免费网站排名大全网站搜什么关键词
  • 智能网站系统可以做app吗网址大全2345
  • 优化型网站是什么意思手机优化什么意思
  • wordpress免费图床插件电商seo
  • 网站正在建设中...关系网站优化公司
  • 怎么做网站快照网络舆情信息
  • 做网站的软件有哪些免费网站注册com
  • 做网站的关键词31省市新增疫情最新消息
  • 易语言做网站外挂沈阳网站制作优化推广
  • wordpress 后台 获取分类id如何利用seo赚钱
  • 酒类营销网站深圳市龙华区
  • 跑腿小程序开发免费网站优化排名
  • 深圳好客站seo做一个网站要花多少钱
  • 什么网站做水果蔬菜批发合肥百度关键词优化
  • 宁波免费建网站百度广告联盟赚广告费
  • 东营设计网站建设房地产十大营销手段
  • 什么是电子商务网站开发搜索引擎营销实训报告
  • 快速做网站前端的视频教程seo高级优化方法
  • 有一套源码做网站还差什么网络营销技能大赛优秀作品
  • 汉沽做网站推广软文发布平台
  • php网站开发百度云重庆seo网站系统
  • 做网站app需要多少钱网站seo标题是什么意思
  • 网站推广做百度还是360化妆品软文推广范文
  • 网站下拉菜单关键词密度
  • 舟山网站建设推广长沙优化官网服务
  • 市桥有经验的网站建设互联网推广广告