问题描述:
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 endpoints of line
i is at (i, ai) and (i, 0...
分类:
其他好文 时间:
2014-11-13 22:32:10
阅读次数:
251
Given a binary tree, print it vertically. The following example illustrates vertical order traversal. 1 / \ 2 3 / \ / \ 4 5 6 7 \ \ 8 9The output of p...
分类:
其他好文 时间:
2014-11-08 19:29:26
阅读次数:
212
LinearLayout是Android中最常用的布局之一,它将自己包含的子元素按照一个方向进行排列。方向有两种,水平或者竖直。这个方向可以通过设置android:orientation="vertical"或者android:orientation="horizontal"来实现,所有的元素排列都是一个接着一个的。如果是竖直排列,那么LinearLayout的元素就一个接着一个的从上到下竖直排列...
分类:
移动开发 时间:
2014-11-03 11:37:16
阅读次数:
193
加一个vertical-align:top;就好了。原因就是inline-block会使元素向下对齐。这和padding-top,margin-top没有关系的。使用浮动就不会有这种情况了,当然会带来浮动清理问题。如果父div是相对定位,可以.lable{position:absolute;top:...
分类:
其他好文 时间:
2014-11-01 11:37:12
阅读次数:
186
Container With Most WaterGiven n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are draw...
分类:
其他好文 时间:
2014-10-28 19:30:59
阅读次数:
163
CSS兼容常用技巧 请尽量用xhtml格式写代码,而且DOCTYPE影响 CSS 处理,作为W3C标准,一定要加DOCTYPE声明。 1.div的垂直居中问题 vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字,就垂...
分类:
Web程序 时间:
2014-10-24 14:13:28
阅读次数:
268
1,图片垂直居中:
设置包含图片的div:height=20px;line-height=20px。设置图片vertical-align:middle 即可。
2,行内块元素有3px bug,可通过设置为块元素解决。典型元素:img input
行内元素:内容撑开宽高,宽高随内容变化而变化,不可控制宽高,用于控制字体、颜色。可设置line-height
块级元素:默认撑满行,可设置。
...
分类:
Web程序 时间:
2014-10-24 00:29:50
阅读次数:
195
1.分割窗口QSplitter(1)QSplitter的构造方法:QSplitter*splitterMain=newQSplitter(Qt::Horizontal,0);第一个参数通过Qt::Horizontal和Qt::Vertical来设定为水平分割或垂直分割。第二个设定0代表是主窗口,无父窗口。将0替换为splitterMain时,代表是主窗口,子splitter就被..
分类:
其他好文 时间:
2014-10-22 06:29:13
阅读次数:
197
..中也可包含通过display: inline-block;将ul取消块级转为内嵌式。vertical-align: top; 将图像顶端对齐。ul{display: none; 隐藏ul中的hover ul{ display: block; }显示ul中的text-decoration: no....
分类:
Web程序 时间:
2014-10-20 22:46:42
阅读次数:
210
As the state vigorously promote technological innovation and new dry cement design optimization, in order to meet market demand for cement, relying An...
分类:
其他好文 时间:
2014-10-19 16:54:44
阅读次数:
254