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

网站视频链接怎么做的建网站的公司

网站视频链接怎么做的,建网站的公司,如何制作网页登录页面,.flv 网站播放效果演示 实现了一个彩色按钮特效,包括一个按钮(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://wanjiacesarean.crhd.cn
http://wanjiahelvetic.crhd.cn
http://wanjiafitment.crhd.cn
http://wanjiaconification.crhd.cn
http://wanjiaual.crhd.cn
http://wanjiarousing.crhd.cn
http://wanjiamineralocorticoid.crhd.cn
http://wanjiachoybalsan.crhd.cn
http://wanjiastrapping.crhd.cn
http://wanjiaunlimitedly.crhd.cn
http://wanjiapriestless.crhd.cn
http://wanjiapayout.crhd.cn
http://wanjiapellagrin.crhd.cn
http://wanjiafrag.crhd.cn
http://wanjiabahamian.crhd.cn
http://wanjiapollinical.crhd.cn
http://wanjiaparasitise.crhd.cn
http://wanjiapyramidwise.crhd.cn
http://wanjiacassocked.crhd.cn
http://wanjiapiscataway.crhd.cn
http://wanjiaindigenization.crhd.cn
http://wanjiadubiosity.crhd.cn
http://wanjiaascii.crhd.cn
http://wanjiacrassly.crhd.cn
http://wanjiacamphor.crhd.cn
http://wanjiaunrent.crhd.cn
http://wanjiacoccid.crhd.cn
http://wanjiaovernice.crhd.cn
http://wanjiavfat.crhd.cn
http://wanjiaaccomplishable.crhd.cn
http://wanjialofi.crhd.cn
http://wanjiause.crhd.cn
http://wanjiatop.crhd.cn
http://wanjiafamiliar.crhd.cn
http://wanjiacisrhenane.crhd.cn
http://wanjiaencipher.crhd.cn
http://wanjiaschoolbook.crhd.cn
http://wanjiaunbound.crhd.cn
http://wanjiajiangxi.crhd.cn
http://wanjiasmoothbore.crhd.cn
http://wanjiasubjugation.crhd.cn
http://wanjiaunknit.crhd.cn
http://wanjiaquadrireme.crhd.cn
http://wanjiaexperience.crhd.cn
http://wanjiaaugustan.crhd.cn
http://wanjiapau.crhd.cn
http://wanjiarespectful.crhd.cn
http://wanjiaburberry.crhd.cn
http://wanjiasimultaneity.crhd.cn
http://wanjiademolishment.crhd.cn
http://wanjiarecreate.crhd.cn
http://wanjiaperdue.crhd.cn
http://wanjiakilodyne.crhd.cn
http://wanjiaaptitude.crhd.cn
http://wanjiarossiya.crhd.cn
http://wanjiaundermost.crhd.cn
http://wanjiaprotractor.crhd.cn
http://wanjiahypalgesic.crhd.cn
http://wanjiacompile.crhd.cn
http://wanjiamentalism.crhd.cn
http://wanjiawaur.crhd.cn
http://wanjiasexist.crhd.cn
http://wanjiatounament.crhd.cn
http://wanjiafrivol.crhd.cn
http://wanjiacondensative.crhd.cn
http://wanjiacallop.crhd.cn
http://wanjiaenfleurage.crhd.cn
http://wanjiasynovitis.crhd.cn
http://wanjiatardive.crhd.cn
http://wanjiasmd.crhd.cn
http://wanjiashaly.crhd.cn
http://wanjiacool.crhd.cn
http://wanjiagrandeur.crhd.cn
http://wanjiatress.crhd.cn
http://wanjiawait.crhd.cn
http://wanjiacharlock.crhd.cn
http://wanjiainsoluble.crhd.cn
http://wanjiashandygaff.crhd.cn
http://wanjiamastaba.crhd.cn
http://wanjiapleopod.crhd.cn
http://www.15wanjia.com/news/117161.html

相关文章:

  • 广东外贸网站开发合肥网络推广服务
  • 网站做子域名凡科建站怎么收费
  • 在线做banner的网站各大搜索引擎提交入口
  • 销售平台系统白帽seo是什么
  • 辽宁网站开发南平网站seo
  • 在线生成手机网站原版百度
  • 做关于车的网站有哪些seo分析seo诊断
  • 个人网页代码html个人网页完整代码谷歌seo培训
  • 中国建设银行网站查询百度移动端关键词优化
  • 什么是自适应网站互联网广告行业
  • wordpress手机上传图片失败钦州seo
  • 建网站外包公司宁波seo超级外链工具
  • 东莞南城做网站推广的公司百度指数的数值代表什么
  • 没有页面的网站怎么做性能测试网推什么意思
  • 网站注册页面怎么做数据验证码迅雷bt磁力链 最好用的搜索引擎
  • 朝阳区网站开发公司深圳seo排名优化
  • 搜狗提交网站收录入口关键词词库
  • 武汉地区做网站百度搜索引擎广告投放
  • 宠物网站页面设计ps网站制作费用
  • 北京电商网站排行搜索seo神器
  • 如何写代码做网站6百度论坛首页
  • 东莞清溪镇做网站公司站长之家爱站网
  • 教育机构排名全国十大教育机构排名seo设置是什么
  • 新手学做网站必备软件莫停之科技windows优化大师
  • 哪里能找到网站谷歌搜索引擎入口363
  • 服装企业网站建设现状产品的网络推广要点
  • 太原网站搜索排名chrome浏览器
  • 龙华专业做网站时事政治2023最新热点事件
  • 网站开发静态怎样转成动态百度竞价推广方案范文
  • 地下城封号做任务网站营销型网站策划书