1.清除IE6,7下li的上下间隙(3像素).list{ width:300px;margin:0;padding:0;}.list li{ list-style:none;height:30px;border:1px solid #000; font-size:12px; line-height:...
分类:
其他好文 时间:
2015-04-10 11:03:50
阅读次数:
108
块级元素块级元素拥有以下的几个特征:如果宽度未设置,则元素会自动适应父元素的宽度可以拥有外边距与内边距如果高度未设置,则元素会自动适应子元素的高度(假设它们没有设置浮动与定位)默认情况下,将放置在Html标记里前一元素之后(假设没有浮动或定位)忽略vertical-align属性所以,对于块级元素来...
分类:
其他好文 时间:
2015-04-09 13:23:07
阅读次数:
135
(方法一)css 中有一个用于竖直居中的属性 vertical-align,但这个样式只有在父元素为 td 或 th 时,才会生效。所以又要插入 table 标签了。html代码: 1 2 3 4 看我是否可以居中。 5 看我是否可以居中。 6 看我是否可以居中。 7 ...
分类:
其他好文 时间:
2015-04-09 00:40:55
阅读次数:
132
Counting RectanglesTime Limit:2 Seconds Memory Limit:65536 KBWe are given a figure consisting of only horizontal and vertical line segments. Our goal ...
分类:
其他好文 时间:
2015-04-08 00:50:33
阅读次数:
235
??
问题描述:Given
n non-negative integers a1,
a2, ...,
an, where each represents
a pointat coordinate (i, ai).
n vertical lines aredrawn such that the two endpoints of line i is at (i,
ai) and (...
分类:
其他好文 时间:
2015-04-07 11:59:19
阅读次数:
129
题目:
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,
...
分类:
其他好文 时间:
2015-04-06 17:17:36
阅读次数:
142
1.Div子元素水平、垂直居中设置container Div 的属性display:box;box-pack:center;bor-orient:vertical;/*or horizontal*/box-align:center;/*垂直居中*//*需要加前缀 -moz- -webkit-等*/疑...
分类:
Web程序 时间:
2015-04-03 19:14:46
阅读次数:
178
float h = Input.GetAxis("Horizontal") ;//h range from -1 to 1float v = Input.GetAxis("Vertical") ;//v range from -1 to 1float h = Input.GetAxisRaw("Ho...
分类:
编程语言 时间:
2015-03-29 20:49:00
阅读次数:
1403
题目链接:container-with-most-water
/**
*
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 endpoi...
分类:
其他好文 时间:
2015-03-28 08:59:02
阅读次数:
147
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity"&g..
分类:
其他好文 时间:
2015-03-20 14:34:38
阅读次数:
174