1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 img{ 8 float: left; 9 } 10 p{ 11 clear:left; 12 } 13 </styl
分类:
其他好文 时间:
2016-03-01 10:53:32
阅读次数:
115
1.只要求保留N位不四舍5入 float f = 0.55555f; int i =(int)(f * 100); f = (float)(i*1.0)/100; 2.保留N位,四舍五入 . decimal d= decimal.Round(decimal.Parse( "0.55555 "),2)
过渡放在原:transiton:2s; 块无素:block,inline inline-block1,占一行,有宽,有高内元素:2,无宽高,内容撑开宽高。不支持上下margin.代码换行补解析。3, 一行,有宽,有高。不设宽度,要内容撑开。float:浮动元素.clearfix{*zoom:1;}.
分类:
其他好文 时间:
2016-02-29 07:07:10
阅读次数:
158
1.配置annotation-driven <mvc:annotation-driven ></mvc:annotation-driven> 2.在实体类上加上@NumberForma这样的注解 @NumberFormat(pattern="#,###,###.#") private Float p
分类:
编程语言 时间:
2016-02-28 23:04:54
阅读次数:
404
【要求】编程实现:定义一个学生结构体,包括学生姓名、学号、分数,输入10位同学的姓名,学号,成绩,然后按照分数由高到低排序,输出。 要求使用以下结构体作为数据存储: struct student { int num; char name[20]; float score; }
分类:
其他好文 时间:
2016-02-28 23:00:50
阅读次数:
223
按照网上的教程配置好caffe的环境后 make all -j8 最后出现 non-virtual thunk to caffe::BasePrefetchingDataLayer< float > InternalThreadEntry () 最后各种查找,google,竟然在http://dis
分类:
其他好文 时间:
2016-02-28 18:12:13
阅读次数:
193
仔细分析各种布局的技术实现,可以发现这三种技术被经常使用:浮动 (float)、负边距( negative margin)、相对定位 (relative position)。这是实现布局的三个最基本的原子技术,只要巧妙组合,并加以灵活运用,就能“拼”出各种布局的实现方案。 双飞翼布局就是一种灵活的布
分类:
其他好文 时间:
2016-02-28 12:26:10
阅读次数:
125
图片压缩后长度和宽度及像素坐标CGFloatscaleFloat=0.6;+(UIImage*)scaleImage:(UIImage*)p_w_picpathscaleFactor:(float)scaleFloat{CGSizesize=CGSizeMake(p_w_picpath.size.width*scaleBy,p_w_picpath.size.height*scaleBy);UIGraphicsBeginImageContext(size);CGContextRef..
分类:
其他好文 时间:
2016-02-28 01:07:14
阅读次数:
212
开始抖动 -(void)BeginWobble { srand([[NSDate date] timeIntervalSince1970]); float rand=(float)random(); CFTimeInterval t=rand*0.0000000001; [UIView animat
分类:
移动开发 时间:
2016-02-27 19:22:53
阅读次数:
234
Capsule的射线检测和Cylinder的类似,只是把上下两个面换成了两个半球,代码上稍作区别即可。Capsule类型定义 public class Capsule : NGeometry
{
public Vector3 p0;
public Vector3 p1;
public float radius;
public...
分类:
其他好文 时间:
2016-02-27 06:23:36
阅读次数:
295