quick下sprite的大小获取,记录一下:local w = sprite:getContentSize().widthlocal h =sprite:getContentSize().height今天连这个最基本的,都不知道怎么获取。挺实用的代码额~
分类:
其他好文 时间:
2014-07-07 08:41:25
阅读次数:
377
我们一般直接为canvas元素设置width与height属性来指定大小,但是,当我们使用css设置canvas元素大小的时候,会发现一些奇奇怪怪的问题,比如,坐标偏移,图形缩放等,根据原因在于canvas元素尺寸与绘图表面尺寸的区别
分类:
其他好文 时间:
2014-07-07 08:16:27
阅读次数:
301
asp .NET弹出窗口 汇总(精华,麒麟创想) 注://关闭,父窗口弹出对话框,子窗口直接关闭this.Response.Write("");//关闭,父窗口和子窗口都不弹出对话框,直接关闭this.Response.Write("");//弹出窗口刷新当前页面width=200 height=2...
分类:
Web程序 时间:
2014-07-07 00:36:04
阅读次数:
352
我们知道select标签在各个浏览器中的属性和各浏览器的支持各有些不同,从而造成select选择框在各浏览器的显示有不同,下面我们通过对主要 外形CSS属性的支持,打造全兼容select。 我对select的height、padding、line-height分别利用控制变量的方法写了个DEMO在各...
分类:
其他好文 时间:
2014-07-05 19:03:04
阅读次数:
200
css:[css]#race{display:block;width:200px;height:50px;line-height:50px;text-align:center;background:#CCC;border:#555 1px solid;}.raceShow{border:solid ...
分类:
Web程序 时间:
2014-07-05 18:15:42
阅读次数:
144
当一个Div块div1里面放着另一个div块div2时1、div1的width,height即content的宽和高为div2的margin-top与margin-bottom和left与right之间的距离;2、当div里面padding有值时,且div2的margin有值时,则div1的边框距离...
分类:
其他好文 时间:
2014-07-03 20:05:04
阅读次数:
192
复分析可视化方法:笔记:log(z)的可视化微分法
分类:
其他好文 时间:
2014-07-03 19:57:54
阅读次数:
313
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
分类:
其他好文 时间:
2014-07-03 19:10:40
阅读次数:
201
Given a binary tree, determine if it is height-balanced.
分类:
其他好文 时间:
2014-07-03 19:00:17
阅读次数:
188
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
分类:
其他好文 时间:
2014-07-03 18:55:48
阅读次数:
236