利用css+原生js制作简单的钟表。效果如下所示 实现该效果,分三大块:html、javascript、css html部分html部分比较简单,定义一个clock的div,内部有原点、时分秒针、日期以及时间,至于钟表上的刻度、数字等元素,因为量比较多,采用jvascript生成 <!doctype ...
分类:
Web程序 时间:
2017-09-24 20:27:26
阅读次数:
246
@Override public boolean onCreateOptionsMenu(Menu menu) { // We only want to show it as a menu in landscape, and only for clock/alarm fragment. ... ...
分类:
移动开发 时间:
2017-09-23 23:25:42
阅读次数:
231
1、vi /etc/sysconfig/clock #编辑文件ZONE="Asia/Shanghai"UTC=false #设置为false,硬件时钟不于utc时间一致ARC=false 2、ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtim ...
分类:
系统相关 时间:
2017-09-23 15:28:52
阅读次数:
203
transform:改变,变形,转换 transform:rotate(10deg); 旋转10度 transform:skew(20deg); 倾斜20度 transform:scale(1.5); 放大1.5倍,缩小改为负 transform:translate(100px,50px); 向右移 ...
分类:
Web程序 时间:
2017-09-23 12:30:47
阅读次数:
297
一、日期时间 命令 date 查看、设置当前系统时间: 命令 hwclock 或 clock 显示硬件时钟时间 命令 cal 查看日历 命令 uptime 查看系统启动后运行时间,也可查看系统负载(过去1分钟、5分钟、15分钟的负载) 二、输出、查看命令 命令 echo 回显输入的内容 命令 cat ...
分类:
系统相关 时间:
2017-09-22 18:57:04
阅读次数:
248
Matrix 是 Android SDK 提供的一个矩阵类,它代表一个 3 X 3 的矩阵 Matrix主要可以对图像做4种基本变换 Translate 平移变换 Rotate 旋转变换 Scale 缩放变换 Skew 错切变换 Matrix类中的方法,主要也是和这四个变换相关,只是对计算过程做了封 ...
分类:
移动开发 时间:
2017-09-22 16:09:15
阅读次数:
215
1. remove skew Why: Many model built on the hypothsis that the input data are distributed as a 'Normal Distribution'(Gaussian Distribution). So if the ...
分类:
其他好文 时间:
2017-09-22 12:04:29
阅读次数:
145
1:2d、3d转换需要加前缀 transform; 2d translate() rotate() scale() skew() matrix(); 3d: rotateX() rotateY() 2d: Internet Explorer 10、Firefox 以及 Opera 支持 transf ...
分类:
Web程序 时间:
2017-09-21 15:52:56
阅读次数:
1376
css3中, 最常用的2D静态变换有一下5种,他们都包含在transform方法中 * translate() * rotate() * scale() * skew() * matrix() 下面来逐一介绍 translate()方法 通过translate()方法,元素从当前位置发根据传如入的2 ...
分类:
Web程序 时间:
2017-09-21 15:50:30
阅读次数:
191