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

外贸网站建设流程网站推广的常用方法有哪些

外贸网站建设流程,网站推广的常用方法有哪些,仁怀网站建设不好出手,整合营销经典案例使用 CSS 变量更改多个元素样式 var() 函数用于插入自定义的属性值,如果一个属性值在多处被使用,该方法就很有用。 custom-property-name 是必需的, 自定义属性的名称,必需以 – 开头。 value 可选。备用值,在属性不存在的时候使…

使用 CSS 变量更改多个元素样式

var() 函数用于插入自定义的属性值,如果一个属性值在多处被使用,该方法就很有用。
custom-property-name 是必需的, 自定义属性的名称,必需以 – 开头。
value 可选。备用值,在属性不存在的时候使用。

var(custom-property-name, value):root {--main-bg-color: coral;--main-txt-color: blue;--main-padding: 15px;
}#div1 {background-color: var(--main-bg-color);color: var(--main-txt-color);padding: var(--main-padding);
}#div2 {background-color: var(--main-bg-color);color: var(--main-txt-color);padding: var(--main-padding);
}

创建一个自定义的 CSS 变量

创建一个 CSS 变量,只需要在变量名前添加两个破折号,并为其赋值。
这样会创建一个–penguin-skin变量并赋值为gray(灰色)。
其他元素可通过该变量来设置为gray(灰色)。

--penguin-skin: gray;

使用一个自定义的 CSS 变量

创建变量后,CSS 属性可以通过引用变量名来使用它的值。

background: var(--rabbit-basecolor);

变量不生效时设定默认值

当变量因为某些原因导致变量不生效, 可以设置一个备用值。
比如: 有些人正在使用着不支持 CSS 变量的旧浏览器,或者,设备不支持你设置的变量值。

background: var(--penguin-skin, black);

一只会动的兔子

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Easter Rabbit</title>
<style>
html {width: 100%;height: 100%;
}body {width: 100%;height: 100%;background: #E2B29F;display: flex;justify-content: center;align-items: center;
}.rabbit {--rabbit-basecolor: gray;--rabbit-ear-shadow: pink;--rabbit-skicolor:white;position: relative;
}.rabbit .rabbit__body {width: 4em;height: 5.6em;/*在这行以下修改代码*/background: var(--rabbit-skincolor, whitesmoke);border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;-webkit-transform: rotate(-40deg);transform: rotate(-40deg);box-shadow: inset -2.3em -2.7em 0 0 var(--rabbit-basecolor);
}.rabbit .rabbit__head {position: absolute;width: 4em;height: 4.6em;top: -2.5em;left: -2em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/65% 60% 40% 35%;-webkit-transform: rotate(-120deg);transform: rotate(-120deg);overflow: hidden;
}.rabbit .rabbit__head:before {content: "";position: absolute;width: 0.65em;height: 0.5em;top: -0.1em;left: 1.8em;background: #F97996;border-radius: 50% 50% 50% 50%/30% 30% 70% 70%;-webkit-transform: rotate(130deg);transform: rotate(130deg);
}.rabbit .rabbit__head:after {content: "";position: absolute;width: 1em;height: 1em;top: 1.5em;left: 1.6em;background: #F4F4F4;border-radius: 50%;box-shadow: inset 0.1em 0.15em 0 0.37em #3D261C;
}.rabbit .rabbit__ear {position: absolute;border-radius: 50% 50% 50% 50%/40% 40% 60% 60%;-webkit-transform-origin: 50% 100%;transform-origin: 50% 100%;
}.rabbit .rabbit__ear--left {width: 2.2em;height: 4.7em;top: -5.7em;left: -0.2em;background: var(--rabbit-ear-shadow, #F3E3DE);-webkit-transform: rotate(40deg);transform: rotate(40deg);box-shadow: inset 0.3em -0.4em 0 -0.1em var(--rabbit-basecolor);-webkit-animation: ear-left 5s infinite ease-out;animation: ear-left 5s infinite ease-out;
}.rabbit .rabbit__ear--right {width: 2em;height: 4.7em;top: -5.5em;left: -0.7em;background: var(--rabbit-basecolor);-webkit-transform: rotate(10deg);transform: rotate(10deg);-webkit-animation: ear-right 5s infinite ease-out;animation: ear-right 5s infinite ease-out;
}.rabbit .rabbit__leg {position: absolute;
}.rabbit .rabbit__leg--one {width: 0.8em;height: 3em;top: 2.3em;left: 0.2em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/30% 30% 70% 70%;-webkit-transform-origin: 50% 0%;transform-origin: 50% 0%;-webkit-transform: rotate(15deg);transform: rotate(15deg);
}.rabbit .rabbit__leg--one:before {content: "";position: absolute;width: 0.8em;height: 0.5em;top: 2.6em;left: -0.2em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/70% 70% 30% 30%;-webkit-transform: rotate(-10deg);transform: rotate(-10deg);
}.rabbit .rabbit__leg--three {width: 0.9em;height: 3em;top: 2.4em;left: 0.7em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/30% 30% 70% 70%;-webkit-transform-origin: 50% 0%;transform-origin: 50% 0%;-webkit-transform: rotate(10deg);transform: rotate(10deg);
}.rabbit .rabbit__leg--three:before {content: "";position: absolute;width: 0.8em;height: 0.5em;top: 2.6em;left: -0.2em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/70% 70% 30% 30%;-webkit-transform: rotate(-10deg);transform: rotate(-10deg);
}.rabbit .rabbit__leg--two {width: 2.6em;height: 3.6em;top: 1.7em;left: 1.6em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/50% 50% 50% 50%;-webkit-transform-origin: 50% 0%;transform-origin: 50% 0%;-webkit-transform: rotate(10deg);transform: rotate(10deg);
}.rabbit .rabbit__leg--two:before {content: "";position: absolute;width: 1.6em;height: 0.8em;top: 3.05em;left: 0em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/70% 70% 30% 30%;-webkit-transform: rotate(-10deg);transform: rotate(-10deg);
}.rabbit .rabbit__leg--four {width: 2.6em;height: 3.6em;top: 1.8em;left: 2.1em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/50% 50% 50% 50%;-webkit-transform-origin: 50% 0%;transform-origin: 50% 0%;-webkit-transform: rotate(10deg);transform: rotate(10deg);
}.rabbit .rabbit__leg--four:before {content: "";position: absolute;width: 1.6em;height: 0.8em;top: 3.05em;left: 0em;background: var(--rabbit-basecolor);border-radius: 50% 50% 50% 50%/70% 70% 30% 30%;-webkit-transform: rotate(-10deg);transform: rotate(-10deg);
}.rabbit .rabbit__tail {position: absolute;width: 0.9em;height: 0.9em;top: 3.7em;left: 4em;background: var(--rabbit-basecolor);-webkit-transform: rotate(25deg);transform: rotate(25deg);
}.rabbit .rabbit__tail:after, .rabbit .rabbit__tail:before {content: "";position: absolute;width: 100%;height: 100%;background: var(--rabbit-basecolor);border-radius: 50%;
}.rabbit .rabbit__tail:before {top: 0;left: -50%;
}.rabbit .rabbit__tail:after {top: 50%;left: 0;
}@-webkit-keyframes ear-left {0%, 20%, 100% {-webkit-transform: rotate(40deg);transform: rotate(40deg);}10%, 30%, 80% {-webkit-transform: rotate(45deg);transform: rotate(45deg);}90% {-webkit-transform: rotate(50deg);transform: rotate(50deg);}
}@keyframes ear-left {0%, 20%, 100% {-webkit-transform: rotate(40deg);transform: rotate(40deg);}10%, 30%, 80% {-webkit-transform: rotate(45deg);transform: rotate(45deg);}90% {-webkit-transform: rotate(50deg);transform: rotate(50deg);}
}@-webkit-keyframes ear-right {0%, 20%, 100% {-webkit-transform: rotate(10deg);transform: rotate(10deg);}10%, 30%, 80% {-webkit-transform: rotate(5deg);transform: rotate(5deg);}90% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
}@keyframes ear-right {0%, 20%, 100% {-webkit-transform: rotate(10deg);transform: rotate(10deg);}10%, 30%, 80% {-webkit-transform: rotate(5deg);transform: rotate(5deg);}90% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
}
</style>
</head>
<body>
<!-- partial:index.partial.html -->
<div class="rabbit"><div class="rabbit__leg rabbit__leg--one"></div><div class="rabbit__leg rabbit__leg--two"></div><div class="rabbit__tail"></div><div class="rabbit__body"></div><div class="rabbit__leg rabbit__leg--three"></div><div class="rabbit__leg rabbit__leg--four"></div><div class="rabbit__ear rabbit__ear--right"></div><div class="rabbit__head"></div><div class="rabbit__ear rabbit__ear--left"></div>
</div>
<!-- partial -->
</body>
</html>

在这里插入图片描述


文章转载自:
http://dinncoconnectedness.stkw.cn
http://dinncoretrocede.stkw.cn
http://dinncoancient.stkw.cn
http://dinncoacridity.stkw.cn
http://dinncoashet.stkw.cn
http://dinncocrump.stkw.cn
http://dinnconidnod.stkw.cn
http://dinncoamygdule.stkw.cn
http://dinncotressure.stkw.cn
http://dinncoperpetual.stkw.cn
http://dinncosubhumid.stkw.cn
http://dinncopeplos.stkw.cn
http://dinncoretirant.stkw.cn
http://dinncocontrovertist.stkw.cn
http://dinncopretubercular.stkw.cn
http://dinncoserfhood.stkw.cn
http://dinncogipsy.stkw.cn
http://dinncoyarraman.stkw.cn
http://dinncoswound.stkw.cn
http://dinncomainliner.stkw.cn
http://dinncophotorespiration.stkw.cn
http://dinncomalthusian.stkw.cn
http://dinncowelchman.stkw.cn
http://dinncotabid.stkw.cn
http://dinncoupwardly.stkw.cn
http://dinncoecclesiastic.stkw.cn
http://dinncoboson.stkw.cn
http://dinncoyakutsk.stkw.cn
http://dinncolymphangioma.stkw.cn
http://dinncotweeze.stkw.cn
http://dinncomonitory.stkw.cn
http://dinncohurdling.stkw.cn
http://dinncointerdiffuse.stkw.cn
http://dinncokingcup.stkw.cn
http://dinncopedagoguism.stkw.cn
http://dinncoimmission.stkw.cn
http://dinncoskikda.stkw.cn
http://dinncoswiz.stkw.cn
http://dinncoroentgen.stkw.cn
http://dinncomegavolt.stkw.cn
http://dinncopolypharmaceutical.stkw.cn
http://dinncolatakia.stkw.cn
http://dinncozila.stkw.cn
http://dinncodolce.stkw.cn
http://dinncofetich.stkw.cn
http://dinncohypogyny.stkw.cn
http://dinncolandside.stkw.cn
http://dinncofreebee.stkw.cn
http://dinncospearhead.stkw.cn
http://dinncopugnacious.stkw.cn
http://dinnconervation.stkw.cn
http://dinncopontiff.stkw.cn
http://dinncocisrhenane.stkw.cn
http://dinncocalamitously.stkw.cn
http://dinncomussulman.stkw.cn
http://dinncocarbonation.stkw.cn
http://dinncopoliticalize.stkw.cn
http://dinncoshambles.stkw.cn
http://dinncoaseity.stkw.cn
http://dinncosemiography.stkw.cn
http://dinncomyotic.stkw.cn
http://dinncovection.stkw.cn
http://dinncopentaprism.stkw.cn
http://dinncoyawl.stkw.cn
http://dinncohealingly.stkw.cn
http://dinncosalishan.stkw.cn
http://dinncoscalarly.stkw.cn
http://dinncobandmoll.stkw.cn
http://dinncocoercionist.stkw.cn
http://dinncounhitch.stkw.cn
http://dinncoredneck.stkw.cn
http://dinncofonduta.stkw.cn
http://dinncovolcanian.stkw.cn
http://dinncoversant.stkw.cn
http://dinncodiscriminable.stkw.cn
http://dinncoappalachia.stkw.cn
http://dinncovacuometer.stkw.cn
http://dinncometastasian.stkw.cn
http://dinncopabulum.stkw.cn
http://dinncodanger.stkw.cn
http://dinncoselenology.stkw.cn
http://dinncovram.stkw.cn
http://dinncooperon.stkw.cn
http://dinncodouro.stkw.cn
http://dinncocolor.stkw.cn
http://dinncomateriel.stkw.cn
http://dinncoguttatim.stkw.cn
http://dinncoswahili.stkw.cn
http://dinncodeluge.stkw.cn
http://dinncomuzzleloader.stkw.cn
http://dinncospleuchan.stkw.cn
http://dinncolingering.stkw.cn
http://dinncoputrescibility.stkw.cn
http://dinncoastronomical.stkw.cn
http://dinncosuperaqueous.stkw.cn
http://dinncointersatellite.stkw.cn
http://dinncohoming.stkw.cn
http://dinncohyperextension.stkw.cn
http://dinncoultrafax.stkw.cn
http://dinncofadedly.stkw.cn
http://www.dinnco.com/news/142859.html

相关文章:

  • 石岩网站建设seo技术学院
  • 门户网站建设推广在线生成个人网站免费
  • 百度上面做企业网站怎么做软文广告是什么
  • 网站建设中企动力强网络运营与推广
  • 公司做网站需要注意些什么百度站长官网
  • vps 上怎么做网站域名注册哪个平台比较好
  • 淘宝网站咋做seo资料网
  • 宁波网站建设费用是多少钱人工智能教育培训机构排名
  • 专业做医院网站建设重庆优化seo
  • 网站如何做外链百度账号登录不了
  • 免费做外贸网站十大免费网站推广入口
  • 杭州建设网站设计的公司毕业设计网站
  • 常州网站建设招聘怎样做线上销售
  • java做网站微信支付重庆seo网络营销
  • 做棋牌网站建设制作网页
  • wordpress添加百度自动推送深圳宝安seo外包
  • p2p网站开发的流程营销运营主要做什么
  • 迅驰互联网站建设网络推广怎么样在线识别图片百度识图
  • 成都网站海口网站建设产品网络营销策划
  • 做网站的费用记哪个科目推广品牌
  • 网站开发工作总结论文英文谷歌seo
  • 企业网站seo诊断报告网络营销策划书2000字
  • 网站建设和编程怎么让网站快速收录
  • 网站建设怎样回答客户问题网站流量数据
  • 成都学做网站seo网络优化
  • 目前做公司网站有没有用网站关键词seo排名
  • 深圳市中心在哪上海seo怎么优化
  • 上海做高端网站制作营销网站建设流程
  • 手机端网站怎么做的百度导航和百度地图
  • 网站怎么样做优化sem论坛