Rect.hstruct CPoint { float x; float y;};typedef struct CPoint CPoint;struct CSize { float width; float height;};typedef struct CSize CSiz...
分类:
编程语言 时间:
2014-06-28 15:10:15
阅读次数:
381
使用 require("MyAapp.DepTree", function (DepTree) { DepTree(({ renderTo: "holder", width: "820", height: "580", data: [ { "name": "System" }, { "nam...
分类:
Web程序 时间:
2014-06-28 10:47:03
阅读次数:
320
a{color:#fff; background:#F93;width:100px;height:50px;/*内联元素的宽度高度不起作用--><!--将内联元素转换为块元素*/ display: block;}没有加 display: block; 之前width:100px;height:50p...
分类:
Web程序 时间:
2014-06-23 00:38:02
阅读次数:
420
一、canvas元素API canvas元素并未提供很多API,实际上他只提供了两个属性与三个方法: 1、canvas元素属性 width 属性:与height 属性: canvas元素绘图表面的宽度,在默认状况下,浏览器会将canvas元素大小设定成与绘图表面大小一...
分类:
Web程序 时间:
2014-06-23 00:24:13
阅读次数:
322
这几天用jquery写了两个轮播的插件,功能很简单。第一次尝试写插件,有很多不足的地方,代码如下:注:图片链接请替换掉,配置信息必须加上图片width和height。 轮播动画 1 2 3 4 ...
分类:
Web程序 时间:
2014-06-23 00:06:16
阅读次数:
483
npot texture: non-power-of-two texture.rectangle texture: non-square (height != wdith)在测试Samsumg Galaxy S4的时候, 发现rectangle texture支持不好, 虽然创建成功, 但是绘制有问...
分类:
移动开发 时间:
2014-06-22 23:17:17
阅读次数:
240
刮刮乐jquery插件:wScratchPad
运用wScratchPad插件很快弄出刮刮乐的效果,代码如下:
刮刮乐
$("#scratchpad").wScratchPad({
width:'150',height:'40',color : "#a...
分类:
微信 时间:
2014-06-22 21:54:17
阅读次数:
519
自由拖动的DIV层方块
#draggable{
background-color:green;
font-size:9pt;
padding:30px;
color:white;
width:360px;
height:224px;
position:absolute;
}
var rDrag = {
o:null,
init:function(o){
o.onmoused...
分类:
其他好文 时间:
2014-06-22 19:28:18
阅读次数:
292
LinearLayout布局:<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"androi..
分类:
移动开发 时间:
2014-06-21 19:17:45
阅读次数:
239
.catelistdlddulliimg{width:expression(this.width>228?'228px':true);max-width:228px;height:expression(this.height>160?'160px':true);max-height:160px;}解...
分类:
其他好文 时间:
2014-06-20 17:50:42
阅读次数:
155