0.前言
水平居中基本方法——指定块的宽度并设定块的左右外边距为auto,上下外边距可取0,那么该块可以在父元素中水平居中。
样式如下:
1:margin:0px auto
2:margin-left:auto; margin-right:auto;
垂直居中基本方法——设定块的上下内边距相等。
样式如下:
padding-top:20px; paddin...
分类:
Web程序 时间:
2014-06-19 12:59:35
阅读次数:
540
1.adb--- 截取屏幕的命令 :adb shell screencap -p | sed 's/\r$//' > outputs.png
2.jni ---命令 :$NDK/ndk-build
3. adb 启动程序:adb shell am start -n 包名/程序Activity类的类名(main)
adb 安装程序: adb install + 路径
...
分类:
移动开发 时间:
2014-06-19 10:17:59
阅读次数:
263
linux命令启动多个终端 终端自动执行命令 shell编程 c语言执行linux命令...
分类:
系统相关 时间:
2014-06-15 19:46:59
阅读次数:
350
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the...
分类:
其他好文 时间:
2014-06-15 19:28:54
阅读次数:
246
su命令和su -命令最大的本质区别就是:
su只是切换了root身份,但Shell环境仍然是普通用户的Shell;
而su -连用户和Shell环境一起切换成root身份了。
只有切换了Shell环境才不会出现PATH环境变量错误。su切换成root用户以后,pwd一下,发现工作目录仍然是普通用户的工作目录;
而用su -命令切换以后,工作目录变成root的工作目录了。用echo $PA...
分类:
系统相关 时间:
2014-06-15 18:52:12
阅读次数:
268
热点热词-Yi18事件风云榜 (top.yi18.net) 基于热点关键词二开放的新闻事件关注榜,
系统实时采集人们关注事件-基于百度搜索、搜狗热词、google趋势而采集的实时关注
事件与新闻。...
分类:
移动开发 时间:
2014-06-15 16:43:08
阅读次数:
572
Android命令行/c语言/java设置获取系统属性的方法
date: 2013.07.09; modification:2013.07.09
目录:
1 命令行(shell) properties设置和获取接口2 c/c++语言 properties设置和获取接口3 Java语言 properties设置和获取的接口4 参考资料
Android提供了一套系统参数设置和获取的...
分类:
移动开发 时间:
2014-06-15 15:46:21
阅读次数:
468
OR1200中实现ICache的文件有or1200_ic_top.v、or1200_ic_fsm.v、or1200_ic_tag.v、or1200_ic_ram.v、or1200_spram.v,分别实现了ICache模块、IC_FSM模块、IC_TAG模块、IC_RAM模块、单口RAM。在ICache中例化了IC_FSM、IC_TAG、IC_RAM模块,在IC_TAG、IC_RAM模块中例化了单口RAM。如图12.4所示。其中IC_TAG、IC_RAM可以称为数据部分,IC_FSM可以称为控制部分,在数据...
分类:
其他好文 时间:
2014-06-14 06:24:13
阅读次数:
335
手工设置文本与图片相对位置时,常用到如下方法:
setCompoundDrawables(left, top, right, bottom)
setCompoundDrawablesWithIntrinsicBounds(left, top, right, bottom)
意思是设置Drawable显示在text的左、上、右、下位置。
但是两者有些区别:
setCompoun...
分类:
移动开发 时间:
2014-06-14 00:18:45
阅读次数:
491
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 path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-06-13 20:36:56
阅读次数:
280