预定义html代码:没有 所有代码通过js生成和移除。预定义css/* 基本弹出层样式 */.my-popup-overlay { width:100%; height:auto; /* width height is defined by javascript */ p...
分类:
Web程序 时间:
2014-06-26 00:21:57
阅读次数:
296
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.TreeNode *createSearchTree(ListNode *&hea...
分类:
其他好文 时间:
2014-06-26 00:12:57
阅读次数:
289
预定义html代码:没有 所有代码通过js生成和移除。预定义css/* 基本弹出层样式 */.my-popup-overlay { width:100%; height:auto; /* width height is defined by javascript */ p...
分类:
Web程序 时间:
2014-06-25 23:17:14
阅读次数:
303
通过以下标签实现页面自适应:width控制 viewport 的大小,可以指定的一个值或者特殊的值,如 device-width 为设备的宽度(单位为缩放为 100% 时的 CSS 的像素)。height和 width 相对应,指定高度。target-densitydpi一个屏幕像素密度是由屏幕分辨...
分类:
微信 时间:
2014-06-25 23:06:59
阅读次数:
9806
UISwitch大小总是改不了...找了一个简便方法.?mySwitch = [[UISwitch alloc] initWithFrame: CGRectMake( width - 55, height * .5 - 15, 100, 20)]; [mySwitch setOn: YES anim...
分类:
其他好文 时间:
2014-06-25 20:15:39
阅读次数:
403
// 安全释放
#define RELEASE_SAFELY(__Pointer) do{[__Pointer release],__Pointer = nil;} while(0)
// 屏幕的物理高度
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
// 屏幕的物理宽度
#define ScreenWidth...
分类:
其他好文 时间:
2014-06-25 19:58:31
阅读次数:
197
var win = new Ext.Window({ title:'动态窗口', id:'win', height:300, autoScroll:true, layout:'column', width:400, bbar:[{xtype:'button',text:'添加面板',h...
分类:
Web程序 时间:
2014-06-25 14:35:30
阅读次数:
262
一个垂直方向的LinearLayout,包含两个View。下面一个View(工具栏)固定在屏幕底部,上面的View占据剩余的屏幕空间。<LinearLayoutandroid:orientation="vertical"android:id="@+id/vertical_layout"android:layout_width="match_parent"android:layout_height="match_paren..
分类:
其他好文 时间:
2014-06-24 16:57:06
阅读次数:
199
$(function () { $(window).load(function(){ alert($('img').height()); });});
分类:
Web程序 时间:
2014-06-24 14:38:07
阅读次数:
211
在实际应用中,考虑到seo,很多button,icon都要用到inline-block和text-indent来处理,例如:Buttoncss我习惯写成这样.btn{display:inline-block; width:100px; height:23px; text-indent:-9999px...
分类:
其他好文 时间:
2014-06-22 12:56:49
阅读次数:
204