简单说来,css实现方法有三种,先贴代码看效果: .triangle1,.triangle2,.triangle3{ width: 0; height: 0;/*overflow:hidden;解决ie6左右向溢出问题*/ display: inline-block; border-color: #...
分类:
Web程序 时间:
2015-01-07 16:22:06
阅读次数:
160
2. 渲染
2.1 基本渲染
2.1.1 输出标签方法
2.1.2 图片地址
2.1.3 prepare_event_handlers(&$component) 预处理方法
2.1.4 prepare_legacy_width_and_height($component)
2.2 核心渲染
2.2.1 action_icon 活动图标
2.2.2 box,box_start 和 box_end
2.2.3...
课时176PHP图形计算器需求分析课时177PHP图形计算器功能设计width = $arr['width'];$this->height = $arr['height'];$this->name = $arr['name'];}function area(){return $this->width...
分类:
Web程序 时间:
2015-01-07 13:00:58
阅读次数:
122
$(document).ready(function(){alert($(window).height()); //浏览器当前窗口可视区域高度alert($(document).height()); //浏览器当前窗口文档的高度alert($(document.body).height());//浏...
分类:
编程语言 时间:
2015-01-07 10:41:45
阅读次数:
232
摘要: 在我们制作页面的时候经常会遇到内容垂直居中的需求,今天分享5种垂直居中的方法,每种方法都有自己的优缺点,可以选择自己喜欢的方式。以下代码都经过本人亲自测试。line-height: vertical-align:middle; :before: ...
分类:
Web程序 时间:
2015-01-07 10:38:45
阅读次数:
162
今天专门把python的字典各种方法对比测试了一下性能效果.测试代码如下: 1 def dict_traverse(): 2 from time import clock 3 my_dict = {'name': 'Jim', 'age': '20', 'height': '180c...
分类:
编程语言 时间:
2015-01-06 17:48:14
阅读次数:
180
问:void print( int arr[][], int size );这个函数声明是对是错? 当然是错的了,这个根本不是什么函数声明的问题,而是数组声明的问题,int arr[][]这个声明就是错的,后面一维的长度不可省略!问:char* ScreenInit(int height = 12....
分类:
编程语言 时间:
2015-01-06 17:43:38
阅读次数:
180
.img-outer { display: table; width: 100%; height: 100%; text-align: center; .img-inner { display: table-cell; vertical-al...
分类:
其他好文 时间:
2015-01-06 17:20:20
阅读次数:
120
+(UIImage*)maxSize_is64:(BOOL)is64or_640:(BOOL)is640p_w_picpath:(UIImage*)_p_w_picpath{if(is64==YES){floattemp=_p_w_picpath.size.height>_p_w_picpath.size.width?_p_w_picpath.size.height:_p_w_picpath.size.width;floata=temp/320;CGSizesize=CGSizeMake(_p_w_pi..
分类:
其他好文 时间:
2015-01-06 15:47:58
阅读次数:
122
$(window).load(function() { if($(".toursforfun-show").height() > $(".toursforfun-left").height()) { $(".toursforfun-left").scrollFix(-125); } else {.....
分类:
其他好文 时间:
2015-01-06 15:31:15
阅读次数:
132