码迷,mamicode.com
首页 >  
搜索关键字:height    ( 24230个结果
扫雷游戏制作学习过程
1. 扫雷游戏的构思: 设计为初级,中级,高级三个级别。 因此不妨设置为如下规格: 9x9 16x15和30x16 (行,列)规格不同地雷的数量也不同,分别为 10,40 ,992.在这个过程遇到了按钮大小调整调用这些函数:1 btn.setBounds(x,y,width,height);//.....
分类:其他好文   时间:2014-07-22 22:51:55    阅读次数:153
CSS盒模型 理解
每个元素(块级和内嵌)都会有个矩形盒子,这个盒子为元素盒,盒子的中间(center)为元素的内?容,center区域内的距离为元素的高度(height)、宽度(width)。在盒模型中?padding就是内容?(cen...
分类:Web程序   时间:2014-07-22 09:10:34    阅读次数:266
用js实现拖拽功能
平常我们在网上可以看到,按住一张图片,然后拖到另一处去,前天在网上看石川(Blue)老师 的js课堂,有见过这个,写下来与大家分享一下: 1,先画个div小红块,样式设置如下: #div1{width:?200px;?height:?200...
分类:Web程序   时间:2014-07-22 08:34:34    阅读次数:213
更改AlertDialog窗口大小的方法
AlertDialog dialog = new AlertDialog.Builder(this).create(); dialog.show(); WindowManager.LayoutParams params = dialog.getWindow().getAttributes(); params.width = 200; params.height = 200 ; dialog....
分类:其他好文   时间:2014-07-22 08:25:36    阅读次数:176
[LeetCode OJ] 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-07-21 10:04:43    阅读次数:229
C++: Find height of a Binary Tree
给定一棵二叉树, 如何确定这棵二叉树的高度(即树的最大的深度), 是一个很常见的问题。 给下图回顾一下: 关于高度和深度的概念, 参见上图。 NOTE: 高度: 参考节点是距离节点最远的叶子 深度: 参考节点是根节点   寻找二叉树的高度也可以通过一个递归函数(a recursive function)实现, 这依然源于树是一个递归的数据结构。 例如, 对于下图, 我们可以求出根...
分类:编程语言   时间:2014-07-21 09:18:35    阅读次数:344
C#中结构与类的区别
一.类与结构的示例比较: 结构示例: 1 public struct Person 2 { 3 string Name; 4 int height; 5 int weight 6 public bool overWeight() 7 { 8 //implement something ...
分类:其他好文   时间:2014-07-20 23:39:51    阅读次数:317
web 前端小记_1 :hasLayout
hasLayout: IE独有CSS渲染引擎。ie下很多bug都因为没有触发hasLaayout而引起。触发hasLayout的方法有:width\height\position:relative或height:1%。但会出现一些副作用。于是,完美的解决方案:zoom:1;当然:zoom:1在极其复...
分类:Web程序   时间:2014-07-20 21:34:20    阅读次数:272
Android学习笔记——Handler实例
Handler的实质就是异步消息处理。实例一:Handler的基本用法XML布局代码:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <T..
分类:移动开发   时间:2014-07-19 16:28:30    阅读次数:334
纯css实现三角形
在设计界面的时候,通常需要三角形的图标,一般做法是用图片,其实也可以使用css来实现。如下:向上的三角形向右的三角形向下的三角形向左的三角形实现它们的css分别是:1 .top{2 width: 0;3 height: 0;4 border-color: transparen...
分类:Web程序   时间:2014-07-19 11:21:13    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!