计算器一个接口,一个函数 参数用数组实现,参数个数可变,查看源码也可以从jre包中查看box grid布局管理器Box : creatVerticalBox JScrollPaneJSplitPaneJTreeJTableJava事件驱动模型button.addActionListener(/...
分类:
编程语言 时间:
2014-12-03 13:58:44
阅读次数:
207
效果:CSS:.dot{width:14px;height:14px;font:12px/18pxArial;border-radius:7px;display:inline-block;vertical-align:middle;position:relative;box-shadow:0px1p...
分类:
Web程序 时间:
2014-12-03 12:08:22
阅读次数:
314
效果如图:css:#box { width: 500px; height: 200px; overflow: auto; border: 1px #000 solid; margin: 20px auto 0;}javascript:html: 这是第001行 这是第002行 这是第003行 这是第...
分类:
Web程序 时间:
2014-12-03 12:06:19
阅读次数:
224
一、typeof 操作符:typeof 操作符是用来检测变量的数据类型。对于值或变量使用 typeof 操作符会返回如下字符串。1、undefined:变量定义了但未初始化,就是undefinedvar box;alert(box); //undefinedal...
分类:
编程语言 时间:
2014-12-03 11:57:25
阅读次数:
241
ul宽度不固定html:列表一列表二列表三css:#box{position:relative;width:500px;background-color:#eee;overflow:hidden;}#box.middle{float:left;position:relative;left:50%;m...
分类:
其他好文 时间:
2014-12-03 11:53:16
阅读次数:
199
一、盒子模型(box model)
一个盒子又4部分组成:content(内容)、padding(填充)、border(边框)和margin(外边界)
盒子模型有两种:
(1)标准W3C盒子模型
(2)IE盒子模型(content包含padding和border)
为了统一标准,让网页能兼容各个浏览器,必须使用标准W3C盒子模型
如何才算使用?答:在网页的顶部加上D...
分类:
Web程序 时间:
2014-12-01 20:56:07
阅读次数:
221
当用children()或nextAll()取得元素集合时,要获得元素数量,应该用size()而不是用length()。如下为示例:1 var chapList = $("#chapter_box").children("div").first().nextAll(".list");2 ...
分类:
其他好文 时间:
2014-12-01 20:49:52
阅读次数:
239
HTML5 BoilerplateHTML5 Boilerplateprovides a great way to get started building HTML5 sites. It includes many best practices out of the box and even in...
分类:
Web程序 时间:
2014-12-01 06:29:19
阅读次数:
202
const与指针结合使用时,容易让人迷惑的是: 1. const到底是限定该指针不可再指向其它内存呢? 2.还是修饰指针指向内容的内存区域不可变?下面来探究一下,先上基础代码。// Box.h
#ifndef _BOX_H
#define _BOX_H
class Box {
public :
Box();
int volume();
void print() const ;
void...
分类:
编程语言 时间:
2014-11-30 23:20:36
阅读次数:
295
我想当你上手css3的时候后一定为他的强大而感到震惊,但是震惊之后带来的一定是苦恼,因为他太TM变态了!我之所以这么说是因为我今天写box-flex的时候遇到了一个可以让我蛋碎的问题~~~首先,box-flex是干嘛的?box-flex可以让某个元素的子元素在剩余空间等分!真的,这个功能太好了!但是...
分类:
其他好文 时间:
2014-11-28 19:56:16
阅读次数:
312