<GridView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/main_gv_tuijian"
android:numColumns="auto_fit"...
分类:
其他好文 时间:
2015-02-13 13:25:39
阅读次数:
141
盒模型宽度和高度和我们平常所说的物体的宽度和高度理解是不一样的,css内定义的宽(width)和高(height),指的是填充以里的内容范围。因此一个元素实际宽度(盒子的宽度)=左边界+左边框+左填充+内容宽度+右填充+右边框+右边界。元素的高度也是同理。比如:css代码:div{ width...
分类:
其他好文 时间:
2015-02-13 13:15:37
阅读次数:
165
本实例以新文档开始2先放置一个div,并且设置class名为aa,赋予它css属性:width:0;height:0;position:fixed;left:50%;rigth:50%;top:50%;bottom:50%;3在.aa中放置一个div,并且设置class名为aaa,赋予它必要的css...
分类:
其他好文 时间:
2015-02-13 13:01:02
阅读次数:
157
1.清除float.clearfix { *zoom: 1; }.clearfix:after { display: block; height: 0px; content: 'clear'; overflow: hidden; visibility: hidden; clear: both; }2...
分类:
Web程序 时间:
2015-02-13 11:31:48
阅读次数:
143
1,XML布局<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"><com.eduask.demo3.ui.UiTextViewandroid:marqueeR..
分类:
其他好文 时间:
2015-02-13 01:44:02
阅读次数:
153
/*Java代码 将Drawable转化为Bitmap */
Bitmap drawableToBitmap(Drawable drawable)
{
int width = drawable.getIntrinsicWidth();
int height = drawable.getIntrinsicHeight();
Bitmap bitmap...
分类:
移动开发 时间:
2015-02-12 22:54:32
阅读次数:
202
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diff...
分类:
其他好文 时间:
2015-02-12 21:29:37
阅读次数:
256
CSS中的line-height属性控制着文字的行间距离。通常被设置为一个无单位的值(例如:line-height:1.4),与文字尺寸是成比例的。它是排版中的一个重要的属性。太低了文字会挤在一起,太高了文字会分开很远。是不可读的。 这篇文章会集中讨论一些技巧。如果你知道(或者可以算出)line-....
分类:
其他好文 时间:
2015-02-12 21:18:27
阅读次数:
283
---创建waterfallcreate or replace type waterfall is object(name varchar2(30),height number);--创建rivercreate or replace type rivertest is object(name va....
分类:
数据库 时间:
2015-02-12 18:17:21
阅读次数:
196
看到别的网站有个这么个小东西,感觉挺有趣就模范着做了下,只支持了webkit内核的 浏览器。html代码css3代码html {height: 100%;}body {background: #2f2f2f;}.pin{width: 100px;height: 100px;position: abs...
分类:
Web程序 时间:
2015-02-12 15:36:20
阅读次数:
112