7月25日
Linux切换图形和命令界面:
Ctrl + Alt + F1 切换图形
Ctrl + Alt +F2 切换命令行
日期 date
date 显示全部
date +%Y/%m/%d 指定格式显示日期
日历 cal
cal 显示当前日期月份
cal 年份 显示指定年份的所有日历
cal 月份 年份 显示指定年月的日历
计算器 bc
输入命令即进入该功能
scale=数值 显示几位小数
关机
shutdown -t 时间 指定多久后关机
shutdown 时间 规定几点关机
shutdown -r 时间 重新启动
poweroff 关机
init 0 关机
shutdown -h 时间 立即关机
init 6 重启
Js内容
onclick的用法:
1.再要执行的地方加入 onclick="事件"
2.在脚本文件内写好 obj.onclick=function(){}
操作文件对象ActiveXObject
js对于文件的操作,需要用到ActiveXObject对象,该对象只有在IE浏览器里可用,而且要更改Internet选项>安全选项中>自定义>更改运行未知activeX ..脚本为提示;
创建文件
var file = new ActiveXObject('Scripting.FileSystemObject');
写入数据
var write = file.CreateTextFile(文件路径,true);
write.WriteLine(数据);
write.close();
读取文件
var file = new ActiveXObject('Scripting.FileSystemObject');
var read = file.OpenTextFile(文件路径,1);
var txt = read.ReadLine();
alert(txt);
read.close();
3D转换
在2D转换的基础上增加了Z轴,然后是将相应的有两个参数的方法拆成了单个如:transform:translate3d(x,y,z)|rotate3d(x,y,z,angle)|scale3d(x,y,z)|perspective(n);
除perspective外,其他方法都可以被拆开单独使用;matrix在3d转换有16个值,不在介绍
transform 3d转换还增加了transform-origin,transform-style,perspective-origin,backface-visibility;
transform-origin:这是设置3d元素的转换原点,值有英文,百分比,还有实际像素;
transform-style:这个方法是显示3d元素的展示效果,是平面还是立体透视,值有flat,preserve-3d;
perspective-origin:这是设置透视的角度,和transform-origin 相同;
backface-visibility:设置背面是否可见;
动画animation
@keyframes定义动画的效果,
用法:
@keyframes name{
from{各种初始设置 }
to{最终要到达的设置值}
}
也可以用相应的百分比控制动画流程:
@keyframes name{
0%{ 。。。 }
100%{。。。 }
}
然后在要调用的元素的css样式中加入属性animation
用法:
animation:name duration timing-function(速度曲线) delay iteration-count(循坏次数n|infinite) direction(方向normal|alternate);
其值对应的方法是:
animation-name;
animation-duration;
animation-timing-function;
animation-delay;
animation-iteration-count;
animation-direction;
还有几个用来控制动画的停止与开始:
animation-play-state:paused|running
animation-fill-mode:设置动画之外的状态。