new document div{position:absolute;width:200px;height:200px;left:0;top:0;right:0;bottom:0;margin:auto;border-radius:50%;backgroun...
分类:
Web程序 时间:
2014-06-18 21:43:53
阅读次数:
358
#include #include #include #include using namespace std; int SCREEN_WIDTH = 400; //屏幕尺寸 int SCREEN_HEIGHT = 400; int posx1 = 150; int posy1 = 200; int...
分类:
其他好文 时间:
2014-06-18 20:57:18
阅读次数:
238
自动属性:{get;set}隐式类型 var, dynamicvar: 隐式的类型推断出来,在编译阶段把Var换成对应的实际的类型所以只应用在编译之间, 在运行阶段是和实际类型意义的dynamic: 运行的时候才去找对应处理属性字段,校验是否有,编译的时候不会检验,不管点出来的什么,。运行时没有。,...
分类:
其他好文 时间:
2014-06-18 20:29:34
阅读次数:
300
(1) cv::Mat -> QImageOpenCV存储图片默认使用BGR顺序,而QImage使用RGB顺序,所以需要用cvtColor转换一下。使用QImage如下构造函数:QImage(uchar * data, int width, int height, Format format)QIm...
分类:
其他好文 时间:
2014-06-18 20:26:20
阅读次数:
202
实例设置 overflow 属性:div { width:150px; height:150px; overflow:scroll; }浏览器支持所有主流浏览器都支持 overflow 属性。注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inhe...
分类:
Web程序 时间:
2014-06-18 20:15:37
阅读次数:
279
var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); svg.setAttribute("width", "800"); svg.setAttribute("height", "500"); ...
分类:
Web程序 时间:
2014-06-18 19:18:46
阅读次数:
208
1.标签的 奇偶数行使用不同样式 /template/shop/images/dw/x.png" /> " width="169px" height="168px"/> " target="_blank"> 万能险 ¥1000起 " target="_blank">/template/sho...
分类:
其他好文 时间:
2014-06-18 17:40:25
阅读次数:
187
.page_nav{clear:both; padding:15px 0; color:#666; font:normal 12px/24px Arial; text-align:center;}.page_nav a{display:inline-block; height:22px; margi...
分类:
Web程序 时间:
2014-06-18 13:54:39
阅读次数:
262
正确的程序如下所示:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from VideoCapture import Device
import time
import sys,pygame
pygame.init()
size = width,height = 620,485
speed = [2,2]
blac...
分类:
编程语言 时间:
2014-06-16 23:10:24
阅读次数:
568
本文主要介绍简单DLL的编写方法及在LoadRunner中局部调用与全局调用DLL方法。1.动态链接库的编写在Visual C++6.0开发环境下,打开FileNewProject选项,可以选择Win32 Dynamic-Link Library建立一个空的DLL工程。DLL必须有一个入口点,这就象...
分类:
其他好文 时间:
2014-06-16 13:28:17
阅读次数:
286