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

商丘专业做网站seo人员的相关薪资

商丘专业做网站,seo人员的相关薪资,深圳网络营销做什么的,利用模板建网站效果演示 实现了一个彩色按钮特效#xff0c;包括一个按钮#xff08;button#xff09;和一个前景色#xff08;::before#xff09;。按钮具有四种不同的颜色#xff0c;当鼠标悬停在按钮上时#xff0c;前景色会出现渐变效果#xff0c;并且按钮的颜色、文本阴影和边…效果演示 实现了一个彩色按钮特效包括一个按钮button和一个前景色::before。按钮具有四种不同的颜色当鼠标悬停在按钮上时前景色会出现渐变效果并且按钮的颜色、文本阴影和边框阴影会发生变化。整个按钮具有立体感使其看起来更加美观。 Code HTML !DOCTYPE html html langenheadmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0title彩色浮雕按钮/titlelink relstylesheet href./25-彩色浮雕按钮.css /headbodybutton求点赞/buttonbutton求关注/buttonbutton求收藏/buttonbutton求转发/button /body/htmlCSS * {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://www.dnsts.com.cn/news/130903.html

相关文章:

  • 淄博做淘宝网站盐山做网站的
  • 可信网站网站认证wordpress 发布到公网
  • 网站建设可行性排名优化的公司
  • 东莞网络营销型网站网站建设需要技术
  • 互联广告精准营销福州网站seo优化公司
  • 深圳专业网站建设平台网页用什么软件可以做网站
  • 电子厂家网站建设网站风格要求
  • 手机模板的网站哪个好百度收录情况
  • 用dw做网站怎么添加背景图片工作室网站需要备案吗
  • 公益网站建设的意义扬州做公司网站
  • 某网站项目策划书莆田建网站公司
  • 自主网站橙云的主机支持放两个网站吗
  • 高品质网站建设公司react 做网站
  • 龙胜网站建设公司网站策划书包括哪些内容?
  • 济南一哥网站建设网页游戏排行傍
  • 服装毕业设计代做网站wordpress删除顶部
  • 网站备案 座机号码亚马逊建设网站用什么实例
  • mvc5网站开发之美自己的网站如何给别人做有偿广告
  • 加强公司内部网站建设网站文章怎么做标签
  • 分享站wordpress主题园岭网站建设
  • 如何用wordpress做产品介绍优化网站排名哪家好
  • 海南网页设计培训成都爱站网seo站长查询工具
  • 买东西网站网站开发服务的协议
  • 高端网站建设的公司网站开发网页ui设计公司
  • 企业网站优化服务公司企业酒店的网站建设
  • 橱柜手机网站模板做啤酒行业的网站
  • 商城类网站备案网站英文域名怎么查
  • 做gif动图的网站犯法吗怎样给网站做
  • 建好的网站能修改吗国内广告公司排名
  • 太仓网站建设教程唐山seo排名外包