web开发日志1.doc

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
web开发日志1

经验1 html head style .box{width: 200px;height: 200px;background-color: blue;//宽度高度颜色transform://transform起始调用的有 translate(100px 200px); -webkit-transform:// -webkit-transform 兼容性识别移过去的 translate(100px 200px);//translate 位移跟两个值100px逆时针x轴200pxy轴transform:rotate(45deg);-webkit-transform:rotate(45deg);//rotate 角度deg 顺时针横纵单独挪-webkit-transform-origin: 0 0; //origin 中心定位点 center 0 0 中间空格 x轴与y轴的位置-webkit-transform: scale(0.5);//缩放0.5 按比例缩小0.5 -webkit-transform: skew(50deg 50deg);\\斜切角度 x轴斜切50deg skew origin中心点也起作用} -webkit-animation: name 10s ease 5s 2 forwards packwards alternate滑方式 等待5s 2次重复 forwards停在结尾 packwards停在开头 alternate 往返 @-webkit-keyframes name{ 0%{-webkit-transform:translate(0,0);width: 200px;height:200px;}//from 从哪里来 to到哪里去 200px尺寸200像素 100%{-webkit-transform:translate(500px,500px);width:0;height:0;} } /style meta charset=UTF-8 title/title /head body div class=box/div /body /html 经验2 html head style .box{width: 200px;height: 200px;background-color: blue; transition: all background-color 2s ease;}// transition 过度 all全部 2s延迟 鼠标停下 Transition-property检索或设置对象中参与过度的属性 Transition-duration检索或设置对象中的过度持续时间 .box:hover{background-color:black;}//过度 鼠标触发事件 /style meta charset=UTF-8 title/title /head body div class=box/div /body /html 经验3 html head style body,figure,figcaption,p,h3{margin:0;padding: 0;}//空隙重置 *{font-family:微软雅黑;} figure{float left; overflow: hidden;background-color:blanchedalmond;height: 358px;position:relative;}//float: 左浮动 盖住overflow 背景颜色黄色 缝隙多余隐藏无边界 figcaption{position:absolute; top:0;left:0;}//父集 absolute定位飘起来空中架着 figure img{opacity:0.8;transition:all 2s ease;}// 图片 透明度变化 过度形式 figcaption p{transition: all 2s ease;}//P标签 @media only screen and (min-width: 1001px) { figure {width:33.33%;}}//@设置最小宽度 里面不同内容浮动 大于33.33%放不下 在中间占一半 小于600px 占一张 @media only screen and (min-width: 601px) and (max-width: 1000px) { figure {width:50%;} } @media only screen and (max-width: 600px) { figure {w

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档