Wednesday, March 8th 2017
一、什么是闭包?高阶函数除了可以接受函数作为参数外,还可以把函数作为结果值返回。例1:12345678910function makeFunc() { var name = "Mozilla"; function displayName() { alert(name); } return displayName;}va...
Read more
Wednesday, January 4th 2017
一、定义动画过程中形成的状态用transformtransform 分为2D 和 3D,主要包含以下几种变换:旋转rotate、扭曲skew、缩放scale和移动 translate以及矩阵变形matrix,语法如下:
1transform: rotate | scale | skew | translate |matrix;
旋转
描述
rotate(angle)
定义 2...
Read more
Wednesday, October 12th 2016
一、行内元素对父元素设置text-align:center;
二、定宽块状元素HTML1<div class="container">content</div>
CSS12345.container{ width: 300px; margin: 0 auto; background-color: #000; &...
Read more
Saturday, September 10th 2016
文字一、单行文字HTML123<div class="container1"> <div class="container2">content</div></div>
CSS12345.container2{ line-height:400px; height:400px; /*垂...
Read more
Tuesday, August 16th 2016
1. 光圈优先时
顺光拍摄风景照 ——F8-F11,曝光补偿0;拍摄人像时——最大光圈或最大光圈缩小一档,点测光模特面部,曝光补偿0;人文街拍——F2(需要虚化环境),F8(不需要虚化环境);微距拍摄——F8-F11;拍摄星芒效果——F8-F11;
2. 快门优先时
一般肢体动作——1/60s以上;
步行——1/125以上;快行——1/500s以上;跑步——1/1000s以上;滑雪——1/2...
Read more