垂直居中: 先height再ling-height,都设成一样高设置外边距:
margin-top,margin-left,margin-right,margin-bottomdiv背景单张铺满设置: width: 30px;
height: 30px; line-height: 30px;...
分类:
Web程序 时间:
2014-05-08 14:38:55
阅读次数:
474
Found the solution myself in the end. The problem
was not with theLinearLayout,but with theScrollView(seems weird, considering the
fact that theScroll...
分类:
移动开发 时间:
2014-05-08 13:42:02
阅读次数:
321
sql%rowcount用于记录修改的条数,就如你在sqlplus下执行delete
from之后提示已删除xx行一样,这个参数必须要在一个修改语句和commit之间放置,否则你就得不到正确的修改行数。例如:SQL> declare n
number; 2 begin 3 insert into t...
分类:
数据库 时间:
2014-05-07 17:21:07
阅读次数:
386
if(navigator.userAgent.indexOf("MSIE")>0){return"MSIE";}if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){return"Firefox";}if(isSafari=navigator....
分类:
Web程序 时间:
2014-05-07 17:03:46
阅读次数:
288
DescriptionYou are to write a program that has
to decide whether a given line segment intersects a given rectangle.An
example:line: start point: (4,9)...
分类:
其他好文 时间:
2014-05-07 13:55:45
阅读次数:
387
IT的事就是过场多,过场多了就容易忘,所以我们不妨看一个记一个,这也是一个办法,顺便跟同行们学习交流一下)前几天出去拍照,饿到腿软,
回城附近有一家永和豆浆店, 我们决定去那边解决午餐.豆浆店里面还不错, 整得挺时尚的,
(跟我几年前在杭州去的那家区别蛮大).我喜欢餐馆里明亮的色调和鲜翠欲滴的菜品照...
分类:
其他好文 时间:
2014-05-07 13:40:23
阅读次数:
393
21天战拖记——Day3:今天起得早,全天要过好(2014-05-06)
分类:
其他好文 时间:
2014-05-07 13:27:30
阅读次数:
215
变形了的最近点对,关键在于计算距离的时候,如果同类点的话,直接判定为无穷大即可。
其他闲话:
(1)因为一些原因,被迫暂时用回C++.
(2)好久没刷题,忘记了数组一开始要开最大,多次new和delete,导致超时。
(3) 感觉算法导论的最近点对没有考虑到有多个点都在一条vertical line上的情形。
#include
#include
#include
#include...
分类:
其他好文 时间:
2014-05-07 11:29:11
阅读次数:
334
procedure TForm1.N11DrawItem(Sender: TObject;
ACanvas: TCanvas; ARect: TRect; Selected: Boolean);beginIf (Selected)
ThenbeginACanvas.Font.Color := clW...
分类:
其他好文 时间:
2014-05-07 10:52:51
阅读次数:
283