码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
显示不全——CheckBox
在布局文件中声明了CheckBox。设置属性为height=wrap,width=wrap。在Java代码中checkBox.setButtonDrawable(selector)。selector放上一些图片资源。这里,在布局文件中,CheckBox组件它是有默认大小的,然后在Java代码中设置了...
分类:其他好文   时间:2014-12-30 13:19:48    阅读次数:382
让div始终显示在底部
html代码: 注意:千万不能设置.container的高度为100%,否则将无法随滚动条的滚动而滚动.第一种情况:footer随着滚动条的滚动而滚动.container{position:relative;width:100%;min-height:100%;}.body{padding-bott...
分类:其他好文   时间:2014-12-30 13:15:12    阅读次数:202
linux 下 OpenGL 读取 JPG, PNG, TAG 纹理数据
实际读取图片的代码已经上传到我的资源里面; 下面贴出使用例子: unsigned char*  esLoadJPG(const char *fileName, int *width, int *height, int *size) {     FILE *f = fopen(fileName, "rb");     fseek(f, 0, SEEK_END);     *size ...
分类:系统相关   时间:2014-12-30 11:41:37    阅读次数:276
标题右边10px位置紧跟发布时间
一个ul列表,拥有若干li,内容是新闻标题,标题右边10px位置紧跟发布时间,当标题过长需要控制标题width,需要兼容ie6,不能用max-widthh4{font-size:14px;height:27px;line-height:27px;padding-left:10px;border-bo...
分类:其他好文   时间:2014-12-30 11:21:35    阅读次数:208
Container With Most Water
Two pointer, 一头一尾;brute force的话需要时间复杂度为O(n^2);但是two pointer的方法可以进行简化(通过对某些case的省略): 具体: height[low] = height[high]: 则知道 height[high]与任意height[low...
分类:其他好文   时间:2014-12-30 09:11:34    阅读次数:153
LeetCode Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.解题思路:根据递增序列,求平衡二叉查找树,根据平衡二叉查找树的性质,其左右都是二叉查找树,用递归可以比较轻...
分类:其他好文   时间:2014-12-29 22:55:25    阅读次数:297
Android 使控件位于界面底部
Android 如何使控件位于界面底部     使控件位于界面底部有很多种办法,下面我就分情况说一下:   一、LinearLayout布局中:          把握三个原则即可轻松使控件位于界面底部:           1、最外层父容器LinearLayout设置高度  layout_height="match_parent"              2、 内层LinearLay...
分类:移动开发   时间:2014-12-29 21:36:06    阅读次数:187
thinkphp 3.2 导入第三方类库的两种方式
第一种类库文件头如下_upload('Filedata',$_POST['filetype_post'],'','',array($_POST['thumb_width'],$_POST['thumb_height']),$_POST['watermark_enable']); var_dump(....
分类:Web程序   时间:2014-12-29 19:51:38    阅读次数:252
CSS中的display:inline-block
1、display:inline-block2、IE中的inline-block3、其它浏览器1、display:inline-block让一个元素具有“区块元素”的属性(可以设置width和height),又具有“内联元素”的属性(不产生换行)。2、IE中的inline-blockIE6不支持这个...
分类:Web程序   时间:2014-12-29 19:45:44    阅读次数:255
10天学通Android开发(5)-项目实战:计算器
项目实战:实现一个简单计算器界面设计(1)拖进一个大文本,整屏,设计各个数字及运算,用Table来存放。<TableLayoutandroid:layout_width="fill_parent"android:layout_height="wrap_content"><TableRowandroid:id="@+id/tableRow1"android:layout_width="fill_pare..
分类:移动开发   时间:2014-12-29 18:38:00    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!