书签 分享 收藏 举报 版权申诉 / 5

类型东师20《Web前端综合案例开发》离线作业2答案.docx

  • 文档编号:110242
  • 上传时间:2023-04-28
  • 格式:DOCX
  • 页数:5
  • 大小:21.11KB

2.倒计时做成百分比进度条的样式,可以是彩色的,女神一定会喜欢的。

DOCTYPEhtml>

倒计时

*{

box-sizing:

border-box;

}

html{height:

100%;

}

body{

background:

#efeeea;

background:

linear-gradient(#f9f9f9,#cecbc4);background:

-moz-linear-gradient(#f9f9f9,#cecbc4);background:

-webkit-linear-gradient(#f9f9f9,#cecbc4);background:

-o-linear-gradient(#f9f9f9,#cecbc4);color:

#757575;

font-family:

"HelveticaNeue-Light","HelveticaNeueLight","HelveticaNeue",Helvetica,Arial,"LucidaGrande",sans-serif;text-align:

center;

}

h1,p{

padding:

0;margin:

0;

}

.wrapper{width:

350px;

margin:

200pxauto;

}

.wrapperpa{color:

#757575;text-decoration:

none;}

.wrapper.load-bar{width:

100%;height:

25px;

border-radius:

30px;background:

#dcdbd7;position:

relative;

box-shadow:

01px0rgba(255,255,255,0.8),inset02px3pxrgba(0,

0,0,0.2);

}

.wrapper.load-bar:

hover.load-bar-inner,.wrapper.load-bar:

hover#counter{

animation-play-state:

paused;

-moz-animation-play-state:

paused;

-o-animation-play-state:

paused;

-webkit-animation-play-state:

paused;

}

.wrapper.load-bar-inner{height:

99%;

width:

0%;

border-radius:

inherit;position:

relative;background:

#c2d7ac;

background:

linear-gradient(#e0f6c8,#98ad84);

background:

-moz-linear-gradient(#e0f6c8,#98ad84);background:

-webkit-linear-gradient(#e0f6c8,#98ad84);background:

-o-linear-gradient(#e0f6c8,#98ad84);

box-shadow:

inset01px0rgba(255,255,255,1),01px5pxrgba(0,

0,0,0.3),04px5pxrgba(0,0,0,0.3);

animation:

loader 10slinearinfinite;

-moz-animation:

loader 10slinearinfinite;

-webkit-animation:

loader 10slinearinfinite;

-o-animation:

loader 10slinearinfinite;

}

.wrapper#counter{position:

absolute;background:

#eeeff3;

background:

linear-gradient(#eeeff3,#cbcbd3);background:

-moz-linear-gradient(#eeeff3,#cbcbd3);background:

-webkit-linear-gradient(#eeeff3,#cbcbd3);background:

-o-linear-gradient(#eeeff3,#cbcbd3);padding:

5px10px;

border-radius:

0.4em;

box-shadow:

inset01px0rgba(255,255,255,1),02px4px1px

rgba(0,0,0,0.2),01px3px1pxrgba(0,0,0,0.1);left:

-25px;

top:

-50px;

font-size:

12px;font-weight:

bold;width:

44px;

animation:

counter10slinearinfinite;

-moz-animation:

counter10slinearinfinite;

-webkit-animation:

counter10slinearinfinite;

-o-animation:

counter10slinearinfinite;

}

.wrapper#counter:

after{content:

"";

position:

absolute;width:

8px;height:

8px;

background:

#cbcbd3;transform:

rotate(45deg);

-moz-transform:

rotate(45deg);

-webkit-transform:

rotate(45deg);

-o-transform:

rotate(45deg);left:

50%;

margin-left:

-4px;bottom:

-4px;

box-shadow:

3px3px4pxrgba(0,0,0,0.2),1px1px1px1pxrgba(0,0,0,0.1);

border-radius:

003px0;

}

.wrapperh1{font-size:

28px;

padding:

20px08px0;

}

.wrapperp{font-size:

13px;

}

@keyframesloader{from{

width:

0%;

}

to{

width:

100%;

}

}

@-moz-keyframesloader{from{

width:

0%;

}

to{

width:

100%;

}

}

@-webkit-keyframesloader{from{

width:

0%;

}

to{

width:

100%;

}

}

@-o-keyframesloader{from{

width:

0%;

}

to{

width:

100%;

}

}

@keyframescounter{from{

left:

-25px;

}

to{

left:

323px;

}

}

@-moz-keyframescounter{from{

left:

-25px;

}

to{

left:

323px;

}

}

@-webkit-keyframescounter{from{

left:

-25px;

}

to{

left:

323px;

}

}

@-o-keyframescounter{from{

left:

-25px;

}

to{

left:

323px;

}

}

< divclass="wrapper">

Loading

$(function(){

varinterval=setInterval(increment,100);varcurrent=0;

functionincrement(){current++;

$('#counter').html(current+'%');if(current==100){current=0;}

}

$('.load-bar').mouseover(function(){clearInterval(interval);

}).mouseout(function(){

interval=setInterval(increment,100);

});

});

配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
Web前端综合案例开发 东师 20 Web 前端 综合 案例 开发 离线 作业 答案
提示  冰点文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:东师20《Web前端综合案例开发》离线作业2答案.docx
链接地址:https://www.bingdoc.com/p-110242.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2


收起
展开