1,创建主界面<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=".MainActi..
分类:
其他好文 时间:
2015-02-01 07:25:09
阅读次数:
174
<RelativeLayoutxmlns: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"tools:context=".MainActivity"><TextViewandroid:id="@+id/tv..
分类:
其他好文 时间:
2015-02-01 07:23:08
阅读次数:
239
我在Twitter 中有看到如下selector:.show-grid [class*="span"] { background-color: #eee; text-align: center; border-radius: 3px; min-height: 30px; ...
分类:
Web程序 时间:
2015-02-01 01:52:16
阅读次数:
251
这题我的第一感觉就是用DFS。自己写的貌似不够完美,因为我看见别人的时间都特别的短,而我的有点长。
#include
#include
#include
#include
#include
#include
using namespace std;
const int N=102;
int height[N][N];
bool visited[N][N];
int dx[]={1,0,-1,0}...
分类:
其他好文 时间:
2015-01-31 21:53:26
阅读次数:
220
public aaa(IntPtr myPtr,int left, int top, int width, short height)这里myPtr应该是对应到一块内存,你需要查看aaa函数是如何把myPtr转化成它内部要使用的结构体的(一般都是结构体,也可能是其它对象,比如数组)。然后,你需要在你...
分类:
其他好文 时间:
2015-01-31 21:49:15
阅读次数:
159
最近项目中用到了遮罩层,在这里总结下以备下次使用。首先,遮罩应全屏,同时需要兼容多种浏览器,需要设置div的样式为: 复制代码 1 position:absolute; 2 top:0%; /**遮罩全屏top,left都为0,width,height为100%**/ 3 left:0%...
分类:
其他好文 时间:
2015-01-31 15:55:47
阅读次数:
158
1. 空layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical...
分类:
移动开发 时间:
2015-01-31 12:32:00
阅读次数:
172
昨天遇到一用js改变元素浮动的,当时直接写了 obj.style.float="left";结果没起作用;查了资料后才发现不能这样写,现在整理下几种样式写法1,直接写css属性的,如:obj.style.height/width/color/position等2,要改大写的,如:obj.style....
分类:
编程语言 时间:
2015-01-31 12:05:19
阅读次数:
176
文章摘自:http://blog.csdn.net/cicada_slough/article/details/43305413min-height最小高度的实现(兼容IE6、IE7、FF)(解决IE6不兼容min-height)布局过的人都知道CSS的最小高度min-height是个很有用的属性,...
分类:
其他好文 时间:
2015-01-30 20:50:39
阅读次数:
147
<!doctype?html>
<html>
<head>
<meta?charset="UTF-8">
<title>Document</title>
<style>
.wrap{background:?gray;width:?100px;height:?30px;overflow:?hidden;
/*关键属性*/position:?relative;}
.btn...
分类:
Web程序 时间:
2015-01-30 19:44:51
阅读次数:
283