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

外贸如何建立网站宁波网站推广方式

外贸如何建立网站,宁波网站推广方式,潍坊做网站联系方式,网站建设培训珠海一.理论部分 1.为什么要清除浮动,清除浮动的方法有哪些?(至少两种) 由于父级盒子很多情况下,不方便给高度,但是子盒子浮动又不占有位置,最后父级盒子高度为0时,就会影响下面的标准…

一.理论部分

1.为什么要清除浮动,清除浮动的方法有哪些?(至少两种)

由于父级盒子很多情况下,不方便给高度,但是子盒子浮动又不占有位置,最后父级盒子高度为0时,就会影响下面的标准流盒子。

清除浮动:clear:both;

清除浮动方法:

额外标签法/隔墙法     

在最后一个浮动的子元素后面添加一个额外标签, 添加清除浮动样式.例如<div style=”clear:both”></div>,或者其他标签(如<br/>等)

要求这个新的空标签必须是块级元素

父级添加overflow属性 

可以给父级添加overflow属性,将其属性值设置为hiddenautoscroll

父级添加after伪元素 

.clearfix:after{content: "";//伪元素必须写的属性display: block;//插入的元素必须为块级元素height: 0;//不要看见这个元素    clear: both;//清除浮动代码visibility: hidden;//不要看见这个元素
}
.clearfix {*zoom: 1;/*IE6,7专有*/
}

 ④父级添加双伪元素

.clearfix:before,.clearfix:after{content: "";display: table;//转化为块级元素并且一行显示
}
.clearfix:after {clear:both;
}
.clearfix {*zoom: 1;
}

2.怎么实现左边宽度固定右边宽度自适应的布局?

父盒子使用flex布局,左边的子盒子给一个固定的宽度,右边的盒子flex:1;

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>.container {display: flex;//切记width: 60%;height: 150px;background-color: pink;margin: 0 auto;}.left {width: 100px;height: 150px;background-color: purple;}.right {flex: 1;background-color: skyblue;}</style>
</head><body><div class="container"><div class="left"></div><div class="right"></div></div>
</body></html>

3.讲讲flex:1;

flex:1表示子项目占剩余空间的1份,剩余空间就是看子盒子有没有给宽度

4.怎么实现移动端适配不同设备?

使用rem布局和响应式布局,rem布局和媒体查询结合使用,响应式布局和bootstrap一起使用

二.实操部分

音波

css代码 

.dajianshi {margin: 100px auto;width: 200px;height: 120px;display: flex;}.dajianshi span {width: 10px;border-radius: 18px;margin-right: 10px;animation: bar 2s infinite linear;}.dajianshi span:nth-child(1) {animation-delay: 0.2s;}.dajianshi span:nth-child(2) {animation-delay: 0.4s;}.dajianshi span:nth-child(3) {animation-delay: 0.6s;}.dajianshi span:nth-child(4) {animation-delay: 0.8s;}.dajianshi span:nth-child(5) {animation-delay: 1.0s;}.dajianshi span:nth-child(6) {animation-delay: 1.2s;}.dajianshi span:nth-child(7) {animation-delay: 1.4s;}@keyframes bar {0% {background: red;margin-top: 25%;height: 10%;}50% {background: red;height: 100%;margin-top: 0%;}100% {background: red;height: 10%;margin-top: 25%;}}

html代码

<div class="dajianshi"><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
</div>

爱心怦怦跳

 css代码 

        * {margin: 0;padding: 0;}body {display: flex;justify-content: center;align-items: center;background-color: #000;}.heart-container {display: flex;justify-content: center;align-items: center;width: 231px;/* 9 * 15px width + 8 * 12px gap */height: 300px;gap: 12px;position: relative;}.bar {width: 15px;border-radius: 10px;height: 15px;position: absolute;top: 50%;transform: translateY(-50%);animation: 7.4s infinite;}.bar:nth-child(1) {background-color: #ff0000;left: 0px;animation-name: animate-bar-1;}.bar:nth-child(2) {background-color: #00e5ff;left: 27px;animation-name: animate-bar-2;animation-delay: 0.4s;}.bar:nth-child(3) {background-color: #ffb6af;left: 54px;animation-name: animate-bar-3;animation-delay: 0.8s;}.bar:nth-child(4) {background-color: #ff00c8;left: 81px;animation-name: animate-bar-4;animation-delay: 1.2s;}.bar:nth-child(5) {background-color: #ffff00;left: 108px;animation-name: animate-bar-5;animation-delay: 1.6s;}.bar:nth-child(6) {background-color: #ff00c8;left: 135px;animation-name: animate-bar-6;animation-delay: 1.8s;}.bar:nth-child(7) {background-color: #ffb6af;left: 162px;animation-name: animate-bar-7;animation-delay: 2.0s;}.bar:nth-child(8) {background-color: #00e5ff;left: 189px;animation-name: animate-bar-8;animation-delay: 2.2s;}.bar:nth-child(9) {background-color: #ff0000;left: 216px;animation-name: animate-bar-9;animation-delay: 2.4s;}@keyframes animate-bar-1 {0%,100% {height: 15px;transform: translateY(-50%);}60% {height: 40px;transform: translateY(calc(-50% + -5px));}}@keyframes animate-bar-2 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 80px;transform: translateY(calc(-50% + -10px));}}@keyframes animate-bar-3 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 110px;transform: translateY(calc(-50% + -10px));}}@keyframes animate-bar-4 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 120px;transform: translateY(calc(-50% + 20px));}}@keyframes animate-bar-5 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 140px;transform: translateY(calc(-50% + 40px));}}@keyframes animate-bar-6 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 120px;transform: translateY(calc(-50% + 20px));}}@keyframes animate-bar-7 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 110px;transform: translateY(calc(-50% + -10px));}}@keyframes animate-bar-8 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 80px;transform: translateY(calc(-50% + -10px));}}@keyframes animate-bar-9 {0%,100% {height: 15px;transform: translateY(-50%);}50% {height: 40px;transform: translateY(calc(-50% + -5px));}}

html代码

 <div class="heart-container"><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div></div>

数字日历

css代码

                * {margin: 0;padding: 0;}div {margin: 10px 0 0 10px;width: 50px;height: 70px;background-color: greenyellow;overflow: hidden;font-weight: 600;border-radius: 5px;color: black;}ul {line-height: 70px;text-align: center;width: 50px;background-color: greenyellow;animation: move 6s infinite alternate;}ul li {list-style: none;}@keyframes move {0% {transform: translateY(0px);}11% {transform: translateY(-70px);}22% {transform: translateY(-140px);}33% {transform: translateY(-210px);}44% {transform: translateY(-280px);}55% {transform: translateY(-350px);}66% {transform: translateY(-420px);}77% {transform: translateY(-490px);}88% {transform: translateY(-560px);}100% {transform: translateY(-630px);}}

html代码

 <div><ul><li>0</li><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li><li>7</li><li>8</li><li>9</li></ul></div>

 css代码

        * {margin: 0;padding: 0;box-sizing: border-box;}body {background-color: #f8f8f8;color: #333;line-height: 1.6;}/* 版心容器 */.container {width: 1200px;margin: 0 auto;padding: 0 32px;}/* 导航栏样式 */header {background-color: #333;border-radius: 5px;}.navbar {display: flex;justify-content: space-between;align-items: center;color: white;padding: 10px 32px;margin: 10px auto 0;border-radius: 10px;}.nav-links {display: flex;gap: 32px;}.nav-links span {color: white;font-size: 16px;}/* 卡片容器 */.card-container {display: flex;flex-wrap: wrap;justify-content: space-between;margin: 20px auto;gap: 24px;}/* 卡片样式 */.card {background-color: white;border-radius: 8px;box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);overflow: hidden;width: calc(33.333% - 16px);display: flex;flex-direction: column;}.card-image {margin: 15px 15px 0px;border-radius: 8px;height: 100px;background-color: #d9d9d9;}.card-title {font-size: 24px;margin: 10px 16px;font-weight: bold;}.card-description {padding: 0 16px;color: #666;flex: 1;}.card-meta {padding: 0 0 10px 16px;color: #999;font-size: 15px;margin-top: 8px;}/* 底部 */.footer-banner {background-color: #f0f0f0;text-align: center;padding: 10px;margin: 10px auto;border-radius: 4px;color: #666;}

html代码

<div class="container"><header><nav class="navbar"><div class="logo">考核</div><div class="nav-links"><span>首页</span><span>文章</span><span>关于我们</span></div></nav></header><div class="card-container"><div class="card"><div class="card-image"></div><h2 class="card-title">标题1</h2><p class="card-description">这是一段摘要内容,描述当前文章的简要信息。这是一段摘要内容,描述当前文章的...</p><div class="card-meta">发布于 2025-06-01 · 阅读 123</div></div><div class="card"><div class="card-image"></div><h2 class="card-title">标题2</h2><p class="card-description">这是一段摘要内容,描述当前文章的简要信息。</p><div class="card-meta">发布于 2025-06-02 · 阅读 456</div></div><div class="card"><div class="card-image"></div><h2 class="card-title">标题3</h2><p class="card-description">这是一段摘要内容,描述当前文章的简要信息。</p><div class="card-meta">发布于 2025-06-03 · 阅读 789</div></div></div><div class="footer-banner">web第一次方向考核</div></div>

文章转载自:
http://dinncocatafalque.tpps.cn
http://dinncotzaristic.tpps.cn
http://dinncopre.tpps.cn
http://dinnconitration.tpps.cn
http://dinncoinanga.tpps.cn
http://dinncohyperdulia.tpps.cn
http://dinncograsp.tpps.cn
http://dinncocalender.tpps.cn
http://dinncocoper.tpps.cn
http://dinncounchurched.tpps.cn
http://dinncoroadmanship.tpps.cn
http://dinncoplagiotropic.tpps.cn
http://dinncosyrian.tpps.cn
http://dinncosulfury.tpps.cn
http://dinncoesne.tpps.cn
http://dinncodissimulator.tpps.cn
http://dinncorememberable.tpps.cn
http://dinncosicky.tpps.cn
http://dinncobenzine.tpps.cn
http://dinncolapillus.tpps.cn
http://dinncopretentious.tpps.cn
http://dinncoanorexia.tpps.cn
http://dinncomitchell.tpps.cn
http://dinncotwang.tpps.cn
http://dinncodate.tpps.cn
http://dinncoantitubercular.tpps.cn
http://dinncoroundtop.tpps.cn
http://dinncofacinorous.tpps.cn
http://dinncoattornment.tpps.cn
http://dinncocrannog.tpps.cn
http://dinncovasodilatation.tpps.cn
http://dinncotheir.tpps.cn
http://dinncoslote.tpps.cn
http://dinncokirovabad.tpps.cn
http://dinncohorseshit.tpps.cn
http://dinncoinfrequence.tpps.cn
http://dinncococainize.tpps.cn
http://dinncoambroid.tpps.cn
http://dinncodechristianize.tpps.cn
http://dinncobarbola.tpps.cn
http://dinncoeverdamp.tpps.cn
http://dinncobreslau.tpps.cn
http://dinncohireling.tpps.cn
http://dinnconurserymaid.tpps.cn
http://dinncomicrosporangiate.tpps.cn
http://dinnconuminous.tpps.cn
http://dinncothiamin.tpps.cn
http://dinncoheize.tpps.cn
http://dinncocontabescence.tpps.cn
http://dinncoexudative.tpps.cn
http://dinncounbraid.tpps.cn
http://dinncoorientalism.tpps.cn
http://dinncosomatopleure.tpps.cn
http://dinncokeeler.tpps.cn
http://dinncogigolette.tpps.cn
http://dinncopentavalent.tpps.cn
http://dinncocrankshaft.tpps.cn
http://dinncocinnamon.tpps.cn
http://dinncochloracne.tpps.cn
http://dinncomudbank.tpps.cn
http://dinncoindifference.tpps.cn
http://dinncoureteritis.tpps.cn
http://dinncostochastics.tpps.cn
http://dinncocubanologist.tpps.cn
http://dinncocomitadji.tpps.cn
http://dinncolaky.tpps.cn
http://dinncodemodulator.tpps.cn
http://dinncolymphatolysis.tpps.cn
http://dinncocotter.tpps.cn
http://dinncocowslip.tpps.cn
http://dinncobus.tpps.cn
http://dinncowhereby.tpps.cn
http://dinncoelectrotherapist.tpps.cn
http://dinnconuclearize.tpps.cn
http://dinncotameless.tpps.cn
http://dinncoedmund.tpps.cn
http://dinncojuneberry.tpps.cn
http://dinncoaustralioid.tpps.cn
http://dinncoirk.tpps.cn
http://dinncotyrian.tpps.cn
http://dinncoregnant.tpps.cn
http://dinncoadmissible.tpps.cn
http://dinncocarport.tpps.cn
http://dinncoeosinophilia.tpps.cn
http://dinncodccc.tpps.cn
http://dinncounmannerly.tpps.cn
http://dinncophosphotransferase.tpps.cn
http://dinncobimillennium.tpps.cn
http://dinncoclc.tpps.cn
http://dinncocroppie.tpps.cn
http://dinncoamritsar.tpps.cn
http://dinncodownsman.tpps.cn
http://dinncofieldless.tpps.cn
http://dinncopreamplifier.tpps.cn
http://dinncolatifundista.tpps.cn
http://dinncohyperphysical.tpps.cn
http://dinncohydrogenase.tpps.cn
http://dinncoranid.tpps.cn
http://dinncohindbrain.tpps.cn
http://dinncosekondi.tpps.cn
http://www.dinnco.com/news/137574.html

相关文章:

  • ps个人网站怎么自己做一个网页
  • 微网站是用什么开发的佛山网络推广哪里好
  • 加快网站平台建设推广产品的软文
  • 网站建设一次google全球推广
  • 衡水企业网站网络推广工作能长久吗
  • 松江做网站公司域名查询网址
  • 怎么看网站是哪个平台做的五个成功品牌推广案例
  • 哪个网站推广做的好怎么推广网站链接
  • 网站建设服务费交印花税吗台湾新闻最新消息今天
  • 做爰网站下载地址网站统计分析工具
  • 怎样在国外网站购买新鲜橙花做纯露什么是网店推广
  • wordpress js代码编辑器插件下载地址网站seo关键词排名查询
  • 甘谷县建设局网站淘宝关键词推广
  • 域名访问不了织梦网站全国疫情突然又严重了
  • 企业建个网站要多少钱推广公司经营范围
  • 毕设做网站太简单怎么创建网站教程
  • 学校学不到网站建设贵阳网站优化公司
  • 什么网站做前端练手好北京seo运营
  • facebook做网站推广百度指数行业排行
  • 做网站注册验证码宁波网站优化
  • wordpress主机空间视频号排名优化帝搜软件
  • 个人网站怎么建立步骤专业做网站
  • 远邦保险经纪网站开发助理上海网站设计公司
  • 临清聊城网站优化搜狗指数官网
  • 做好门户网站建设seo优化报价
  • 网站开发文档需求撰写word个人在百度上发广告怎么发
  • 做化工的 有那些网站如何在网络上推广产品
  • 乐清房产在线网快速排名优化
  • 网站搜索排名和什么有关系怎么提高seo关键词排名
  • 观澜专业做网站公司常州seo招聘