1. CSS 样式兼容:1)
对Box解析的不一样: height:160px!important; height:200px; padding:5px;2)
float闭合 添加一个新的div子元素 clear:both 父元素样式 overflow:auto;zoom:1; after伪类添加....
分类:
其他好文 时间:
2014-06-04 16:39:58
阅读次数:
372
小鸟一直在扑翅膀的代码块:
auto sprite = Sprite::create();
Animation *animation = Animation::create();
animation->addSpriteFrameWithFileName("bird_blue_1.png");
animation->addSpriteFrameWithFileName("bird_blu...
分类:
其他好文 时间:
2014-06-04 14:01:08
阅读次数:
308
Auto CAD 安装不上,提示“cad装不上
提示无法启动此程序,因为计算机中丢失ac1st16.dll”解决方法:我的电脑——>右键
属性——>高级选项卡(win7的是高级系统设置)——>环境变量——>系统变量——>然后新建系统变量 变量名为:AutoCAD
变量值为:c:\program fi...
分类:
其他好文 时间:
2014-06-03 15:42:01
阅读次数:
1415
通常,我们要让某元素居中,会这样做:
#element{
margin:0 auto;
}
如果还想让此元素位置固定呢?一般我们会添加position:fixed,如下:
#element{
position:fixed;
margin:0 auto;
}
但是这样做的结果就是,元素不居中了。这说明fixed使对象脱离了正常文档流。
解决方案:
#ele...
分类:
Web程序 时间:
2014-06-02 23:00:57
阅读次数:
327
auto_ptr是C++标准库中()为了解决资源泄漏的问题提供的一个智能指针类模板(注意:这只是一种简单的智能指针)auto_ptr的实现原理其实就是RAII,在构造的时候获取资源,在析构的时候释放资源,并进行相关指针操作的重载,使用起来就像普通的指针。std::auto_ptr
pa(new Cl...
分类:
其他好文 时间:
2014-06-02 17:12:02
阅读次数:
210
LVS-DR负载均衡-01
第一章WebLVS安装实施
2.1软件测试环境部署
软件平台Vmwareworkstation
系统平台redhatAS5.432bit
Lvs集群软件ipvsadmv1.24
KeepalivedKeepalivedv1.1.20
Web服务Apache
2.2服务器资源分配规划
集群角色Master负载均衡器Backup负载均衡器真实服务器真实..
分类:
其他好文 时间:
2014-06-02 03:56:32
阅读次数:
338
/**
* @author gao
*/
package gao.org;
public class RunnableDemo implements Runnable{
@Override
public void run() {
// TODO Auto-generated method stub
for(int i=0;i<10;i++){
System.out.pri...
分类:
编程语言 时间:
2014-06-01 18:12:33
阅读次数:
441
适配器模式定义:将一个类的接口,转换成客户期望的另一个接口。适配器让原本接口不兼容的类可以合作无间。
简单定义:封装对象,并提供不同的接口。
简单例子:
鸭子接口:
package headfirst.adapter.ducks;
public interface Duck {
public void quack();
public void fly();
}
具...
分类:
其他好文 时间:
2014-05-31 22:00:43
阅读次数:
288
1.垂直居中有时我们会使用margin: 0
auto;作居中使用。但有的时候我们需要垂直居中,例如在div里面垂直居中显示一张加载中的gif图。下面这种写法就可以完美实现:垂直居中的子容器 {
position: absolute; left: 0; right: 0; ...
分类:
Web程序 时间:
2014-05-31 20:15:24
阅读次数:
261
题意:给你一些二进制的数,然后你可以选择按位取反,也可以不变,你只能选择一种,然后让你找出最大和最小,求最大的差值
思路:将取反与不取反都算出来,然后大的放一边,小的放一边,排序后判断#include
#include
#include
#include
#define ll long long
using namespace std;
const int MAXN = 100010;
...
分类:
移动开发 时间:
2014-05-31 17:44:07
阅读次数:
321