之前对div的css布局一直有点半知半解,只其然却不知其所以然,到网上下载了“十天学会DIV+CSS(WEB标准)”的chm电子版,然后跟着练习了一下,特在此记录,备忘。div+css布局练习 此处显示 id "layout" 的内容 此处显示 id "side" 的内容 此处显示 id...
分类:
Web程序 时间:
2014-07-16 23:08:57
阅读次数:
324
#include using namespace std;class Vehicle{public: Vehicle(float speed=0,int total=0) { Vehicle::speed = speed; Vehicle::total = t...
分类:
编程语言 时间:
2014-07-10 13:49:43
阅读次数:
181
STM8虽然功能齐全,但是空间不足也是经常出来的情况。要么.text overflow,要么.bss overflow,让人头疼。这里把一些优化方案列出来,让空间得到充分利用: 1、在Project settings下,C Compiler,Optimizations选择Customize 重点是把...
分类:
其他好文 时间:
2014-07-10 13:44:13
阅读次数:
309
#include#include/*定义学生结构体*/struct Student{ char ID[20]; char Name[20]; float Mark1; float Mark2; float Mark3; float Avarage;};/*声明学生...
分类:
编程语言 时间:
2014-07-10 12:16:39
阅读次数:
298
/* 用户按下触摸屏、快速移动后松开public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {//参数解释:// e1:第1个ACTION_DOWN MotionEvent// ...
分类:
移动开发 时间:
2014-07-10 11:46:59
阅读次数:
217
OpenERP对象支持的字段类型有,基础类型:char, text, boolean, integer, float, date, time, datetime, binary;复杂类型:selection, function, related;关系类型:one2one, one2many, man...
分类:
其他好文 时间:
2014-07-10 11:13:07
阅读次数:
339
1. microtime() 当前 Unix 时间戳以及微秒数。 connect("127.0.0.1", 11211);$time_start = microtime_float();//保存数据for($i = 0; $i set("key$i",$i,0,3);}$time_end = mi....
分类:
Web程序 时间:
2014-07-10 10:28:36
阅读次数:
245
span{word-break:normal;width:auto;display:block;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;} white-space -- 通过HTML文档的源代码的排版方式控制页面显示文本的排...
分类:
其他好文 时间:
2014-07-10 00:07:38
阅读次数:
332
1) 网站上经常会出现用户输入一大段字符和字母以至于文字无法正常折行,把版式破坏,这样我们就要参考以下样式:word-wrap:break-word; overflow:hidden; 当然必须得有宽度属性值。2) 文字过长要出现省略号样式如下:white-space: nowrap; text-o...
分类:
Web程序 时间:
2014-07-09 23:51:24
阅读次数:
474
//初始化 $(function(){ selectData(".format_select"); })function showSearchBar(ID) { if($(ID).css("display")=="none"){ $(ID).fadeIn("slow").css("overflow"...
分类:
Web程序 时间:
2014-07-07 22:54:00
阅读次数:
359