Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo... ...
分类:
其他好文 时间:
2017-10-24 00:13:43
阅读次数:
144
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo ...
分类:
其他好文 时间:
2017-10-23 01:06:11
阅读次数:
195
弹性布局 1、定义弹性布局(父级上定义) display:flex; 如果说内核为webkit 的必须前面加上 -webkit-flex 2、设置了弹性布局之后,子元素的css中的float, clear, vertical-align 这些属性将失效。 3、可以将flex弹性布局看成一个大盒子,也 ...
分类:
其他好文 时间:
2017-10-22 20:59:10
阅读次数:
175
textarea 标签 resize: vertical; 禁止横向拉伸 x resize: horizontal; 禁止竖向拉伸 y resize: none; 去掉拖动按钮 ...
分类:
其他好文 时间:
2017-10-20 20:00:38
阅读次数:
177
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo ...
分类:
其他好文 时间:
2017-10-20 13:42:47
阅读次数:
196
原css: 解决方法:去掉line-height和vertical-align 使用 flex 布局。 把父元素设为: ...
分类:
移动开发 时间:
2017-10-19 19:47:45
阅读次数:
192
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo ...
分类:
其他好文 时间:
2017-10-16 19:33:28
阅读次数:
127
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo ...
分类:
其他好文 时间:
2017-10-16 09:42:49
阅读次数:
105
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo ...
分类:
其他好文 时间:
2017-10-15 19:39:58
阅读次数:
151
固定高宽div垂直居中 如上图,固定高宽的很简单,写法如下: 不固定高宽div垂直居中的方法 方法一(此div元素应是 inline-block): 用一个“ghost”伪元素(看不见的伪元素)和 inline-block / vertical-align 可以搞定居中,非常巧妙。但是这个方法要求待 ...
分类:
Web程序 时间:
2017-10-13 21:16:57
阅读次数:
2616