1、将图片转换为块级对象
即,设置img为“display:block;”。在本例中添加一组CSS代码:“#sub img {display:block;}”。2、设置图片的垂直对齐方式
即设置图片的vertical-align属性为“top,text-top,bottom,text-botto.....
分类:
其他好文 时间:
2014-06-13 14:06:55
阅读次数:
276
top命令 是Linux下常用的性能 分析工具 ,能够实时显示系统
中各个进程的资源占用状况,类似于Windows的任务管理 器。下面详细介绍它的使用方法。 top - 02:53:32 up 16 days, 6:34, 17
users, load average: 0.24, 0.21, 0....
分类:
系统相关 时间:
2014-06-13 13:27:01
阅读次数:
446
IO.sh##iostat是查看磁盘活动统计情况##显示全部设备负载情况 r/s: 每秒完毕的读
I/O 设备次数。即 rio/s;w/s: 每秒完毕的写 I/O 设备次数。即 wio/s等iostat
##每隔2秒刷新磁盘IO信息,而且每次显示3次iostat 2 3#显示某个磁盘的IO信息i.....
分类:
系统相关 时间:
2014-06-11 22:00:36
阅读次数:
321
原创!ngxtop-监控nginx的利器!!!无论名称还是界面,ngxtop的灵感均源自大名鼎鼎的top命令.ngxtop的功能就是,分析Nginx访问日志文件(以及其他日志文件,比如Apache2日志),并通过类似top的界面,实时显示分析后所得的结果.你可能吹嘘自己的综合监控工具拥有各种各样的所...
分类:
其他好文 时间:
2014-06-11 12:47:49
阅读次数:
309
今天在群里面,有人抛出了一个关于css中margin-right没有效果的问题。CSS代码和HTML代码如下:
.style1{
width:400px;
height:440px;
background-color:red;
border:5px solid silver;
margin-top:20%;
margin-right:30%;
}...
分类:
其他好文 时间:
2014-06-08 17:38:27
阅读次数:
204
问题
给定N个元素的数组,求第k大的数。
特例
当k=0时,就是求最大值,当k=N-1时,就是求最小值。
应用
顺序统计
求top N排行榜
基本思想
使用快速排序方法中的分区思想,使得a[k]左侧没有更小的数,右侧没有更大的数
性能
快速选择算法的复杂度...
分类:
其他好文 时间:
2014-06-08 09:58:08
阅读次数:
211
android 中使用Canvas的drawText绘制文本的位置,是基于基线的。如下图:
其中字母Q的小尾巴在横线下面了。
怎么样找准字母的中心位置呢?
先看下面的例子:(右边的数字,表示字体的 left, top, right, bottom)
这里面的关键是Paint.getTextBound。 getTextBound会填充一个Rect,这个Rect表示...
分类:
移动开发 时间:
2014-06-08 09:08:44
阅读次数:
279
Android中有时需动态设置控件四周的drawble图片,这个时候就需要调用
setCompoundDrawables(left, top, right,
bottom),四个参数类型都是drawableButton继承TextView,所以可以采用相同的设置方法方法一.XML方式方法二.JAVA...
分类:
移动开发 时间:
2014-06-08 01:17:39
阅读次数:
430
题目链接 Given a m x n grid filled with non-negative
numbers, find a path from top left to bottom right which minimizes the sum of
all numbers along its p...
分类:
其他好文 时间:
2014-06-07 21:59:08
阅读次数:
344
Given amxngrid filled with non-negative
numbers, find a path from top left to bottom right whichminimizesthe sum of all
numbers along its path.Note:Yo...
分类:
其他好文 时间:
2014-06-07 20:22:17
阅读次数:
264