在解释 BFC 是什么之前,需要先介绍 Box、Formatting Context的概念。 Box: CSS布局的基本单位 Box 是 CSS 布局的对象和基本单位, 直观点来说,就是一个页面是由很多个 Box 组成的。元素的类型和 display 属性,决定了这个 Box 的类型。 不同类型.....
分类:
其他好文 时间:
2014-08-25 13:14:34
阅读次数:
185
动画与动作,在quick中都有对其封装,所以我们还是来看一下吧。
总的来说,对于帧动画,quick封装的方法我们可以经常使用,这是非常方便的,下面直接上代码来直观感受下,
比如,14张帧图片,采用cocos2d-x lua的方法来写是这样的,
local sp = display.newSprite("grossini_dance_01.png", display.cx, display.c...
分类:
其他好文 时间:
2014-08-24 23:56:23
阅读次数:
486
FREENAME free - Display amount of free and used memory in the system 显示内存的使用情况SYNOPSIS free [options] -b, --bytes 字节单位显示 -k, --kilo ...
分类:
其他好文 时间:
2014-08-24 20:51:53
阅读次数:
313
他妈的。气死我了试试这里的代码功能如何。#ifndef _PAGE_CLASS_#define _PAGE_CLASS_#include #include using namespace std;typedef struct{ string text;}Display;typedef void...
分类:
其他好文 时间:
2014-08-24 14:09:52
阅读次数:
160
样式:*现代浏览器的最新版都支持inline-block,只有ie6、7不支持inline-block,但ie6、7可以通过 display:inline;zoom:1;来模拟。*firefox,safari,opera,ie8+中的 inline-block 元素之间会莫名其妙多出3px的间距,其...
分类:
其他好文 时间:
2014-08-23 22:53:21
阅读次数:
303
总结与网络1.$("#id").show()表示display:block,$("#id").hide()表示display:none;$("#id").toggle()切换元素的可见状态。如果元素是可见的,切换为隐藏的;如果元素是隐藏的,切换为可见的。$("#id").css('display',...
分类:
其他好文 时间:
2014-08-23 15:08:00
阅读次数:
245
本文是利用css和html实现自适应于文本长度菜单。
实现后的效果图,如下:
实现代码如下:
menu4.html
-->
a{
display: block;
height:38px;
/* width:107px; */
/* line-heig...
分类:
Web程序 时间:
2014-08-23 10:01:20
阅读次数:
177
inline-block 前世今生 作者:一丝 | 时间:2012-08-15 19:23 曾几何时,display:inline-block 已经深入「大街小巷」,随处可见 「display:inline-block; *display:inline; *zoom:1; 」这样的代码。如今现代浏....
分类:
其他好文 时间:
2014-08-23 09:58:20
阅读次数:
473
Android adb setup for ubuntu connect the device to ubuntu, use command $sudo lsusb will display like: mean: Spreadtrum device idVendor 1782 ?idProduct 5d24 1, touch the file: ~/.android/adb_usb.in...
分类:
移动开发 时间:
2014-08-23 03:36:20
阅读次数:
249
通常BASIS会使用PFCG做权限管理,时你保存时会产生一个系统外的profile name,记得SU01时用户有profile 和role两栏位吗?它们的关系如何呢?首先明白几个概念.1.activityinsert, update, display什么的.这些东西当年德国佬是写在tobj表中的....
分类:
其他好文 时间:
2014-08-22 22:24:09
阅读次数:
402