We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. ...
分类:
其他好文 时间:
2016-08-18 00:57:30
阅读次数:
163
//数组的方法 //1. concat() (concat的英文释义:合并数组;合并多个字符串;) var colors = ["red", "green", "blue"]; var color2 = colors.concat("yellow", ["black", "brown"]); con ...
分类:
编程语言 时间:
2016-08-17 22:48:08
阅读次数:
195
Necklace of Beads Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 7733 Accepted: 3234 Description Beads of red, blue or green colors are co ...
分类:
其他好文 时间:
2016-08-15 22:02:34
阅读次数:
155
设置全局导航栏颜色,标题大小和UIBarButtonItem字体大小 在appdelegate里面设置 swift: UINavigationBar.appearance().barTintColor = UIColor.init(red: 47, green: 48, blue: 52) UINa ...
分类:
其他好文 时间:
2016-08-15 14:17:13
阅读次数:
148
渐变色彩 线性渐变(linear): 径向渐变(radial): background-image:linear-gradient(to left, red 30%,blue); 背景图片 background-image : none | url ( url ); body { backgroun ...
分类:
Web程序 时间:
2016-08-15 13:07:03
阅读次数:
197
双逻辑非 双逻辑非操作,会把一个值(数字,字符串.....)转换为布尔值。 第一次逻辑非操作取反的布尔,第二次获得最初元素本身对应的布尔 alert(!!false); //false alert(!!"blue"); //true alert(!!0); //false alert(!!NaN) ...
分类:
其他好文 时间:
2016-08-14 20:35:31
阅读次数:
225
一、position:fixed 锁定位置(相对于浏览器的位置),例如有些网站的右下角的弹出窗口。 <head> <title>123</title> <style type="text/css"> #a { border:5px soild blue;...........边线为5像素 width ...
分类:
Web程序 时间:
2016-08-12 21:25:42
阅读次数:
305
1、滚动条事件scroll 2、mouseenter与mouseover的区别: mouseover事件不牵扯到后代元素,但mouseover事件会 如图两个div,给外层div#red添加mouseenter事件,这个事件也仅仅绑定到了#red上。 给#red添加mouseover事件,#blue ...
分类:
Web程序 时间:
2016-08-10 19:25:09
阅读次数:
149
1.如何让文字在容器内垂直居中?
(1)方法:为容器添加line-height属性,使得line-height的值等于容器的height。
(2)代码
无标题文档
.container{
width: 300px;
height: 500px;
margin: 50px;
background: blue;
line-height: 500px;
text...
分类:
Web程序 时间:
2016-08-07 21:49:38
阅读次数:
198
答案序列一定是个下凸壳,因此添加的等差数列与其之差是个单峰函数,可以先三分求出最值,再二分求出零点,然后用线段树,将得到的区间修改为一个等差数列。 这个做法应该比较好想吧,虽然比较慢…… ...
分类:
Web程序 时间:
2016-08-07 00:57:06
阅读次数:
233