码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
2014.12.10 ScrollerView循环滚动的三种方法
1.循环滚动每次滚动后都将scrollview的offset设置为中间的一页若本次滚动是向前一页滚动,则把三页都向后放置,最后一页放到开头若本次滚动是向后一页滚动,则把三页都向前放置,第一页放到末尾初始化UISCrollViewfloat x,y,width,height;x = WIDTH_OFF...
分类:其他好文   时间:2014-12-15 11:54:17    阅读次数:187
关于fill_parent,match_parent和wrap_content
android:layout_width和android:layout_height常用这三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。fill_parent&match_parent:在Android2.2及以上版本中,fill_paren...
分类:其他好文   时间:2014-12-14 21:18:38    阅读次数:232
打印杨辉三角形
import java.util.Scanner; public class Yanghui { public static void main(String[] args) { System.out.print("请输入你要打印的杨辉三角的层数:"); Scanner sc = new Scanner(System.in); sc.close(); int height ...
分类:其他好文   时间:2014-12-14 17:18:48    阅读次数:234
Programming in Scala (Second Edition) 读书笔记10
你肯定见过在控制台用字符打印图形的程序,这一章就从定义一个图形元素开始。我们的图形元素都是一些字符组成的矩形abstractclassElement{ defcontents:Array[String] defheight:Int=contents.length defwidth:Int=if(height==0)0elsecontents(0).length }上面定义的三个方法都..
分类:其他好文   时间:2014-12-14 07:11:30    阅读次数:299
LeetCode Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.解题思路:找到链表的中点,作为根,前端作为左子树,后端作为右子树,并对前后做递归操...
分类:其他好文   时间:2014-12-13 13:21:52    阅读次数:153
行间距
style="font-size:14px;line-height:30px;"
分类:其他好文   时间:2014-12-13 10:46:32    阅读次数:151
Atitit.web预览播放视频的总结
Atitit.web预览播放视频的总结   1. 浏览器类型的兼容性(chrome,ff,ie) 1 2. 操作系统的兼容性 1 3. 视频格式的内部视频格式跟播放器插件的兼容性.. 2 4. 指定播放器 embed 模式 2   1. 浏览器类型的兼容性(chrome,ff,ie) " height="" >  " />            " height=...
分类:Web程序   时间:2014-12-13 01:00:18    阅读次数:209
CSS 魔法系列:纯 CSS 绘制三角形(各种角度)
Triangle Up1234567#triangle-up {width:0;height:0;border-left:50pxsolidtransparent;border-right:50pxsolidtransparent;border-bottom:100pxsolidred;} Tri....
分类:Web程序   时间:2014-12-12 23:29:46    阅读次数:199
Leetcode: Largest Rectangle in Histogram
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:其他好文   时间:2014-12-12 22:09:45    阅读次数:191
html中的圆角边框
border-radius:20px;radius:以某某为半径画圆。如何制作一个圆形:div{height:150px;//像素的一半,再加上边框的像素 width:150px; border:#0c3 20px solid; border-left-color: red; border-...
分类:Web程序   时间:2014-12-12 20:50:04    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!