用css绘制六边形需要使用到三个容器,分别用于绘制六边形的三个部分,如下图所示:接下来,就是代码了:CSS:如果做成下面这种形状,可以将上面做的进行旋转或者采用浮动的方式:代码:#box4{width:0;border-right:30pxsolid#6c6;border-top:52pxsolid...
分类:
Web程序 时间:
2015-07-03 13:50:13
阅读次数:
169
"window.location.href"、"location.href"是本页面跳转"parent.location.href"是上一层页面跳转"top.location.href"是最外层的页面跳转举例说明:如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的if...
分类:
编程语言 时间:
2015-07-03 12:02:09
阅读次数:
120
当出现Theselectedviewshavenoconstraints.Atbuildtime,explicitleft,top,width,andheightconstraintswillbegeneratedfortheviewsh时候Editor-->ResolveAutoLayoutissues-->AddmissingconstraintsinViewController可解决
分类:
移动开发 时间:
2015-07-03 00:28:44
阅读次数:
174
1234clientWidth = width - border clientHeight = height - border offsetWidth = width offsetHeight = height IE,FireFox 差异如下:IE6.0、FF1.06+:1234clientWidt...
分类:
其他好文 时间:
2015-07-03 00:11:17
阅读次数:
122
使用Topshelf创建Windows服务概述Topshelf是创建Windows服务的另一种方法,老外的一篇文章Create a .NET Windows Service in 5 steps with Topshelf通过5个步骤详细的介绍使用使用Topshelf创建Windows 服务。Top...
The top 100 papersNatureexplores the most-cited research of all time.The discovery of high-temperature superconductors, the determination of DNA’s dou...
分类:
其他好文 时间:
2015-07-02 21:01:13
阅读次数:
98
【position:absolute】意思是:他的意思是绝对定位,他默认参照浏览器的左上角,配合TOP、RIGHT、BOTTOM、LEFT(下面简称TRBL)进行定位,有以下属性:1)如果没有TRBL,以父级的左上角,在没有父级的时候,他是参照浏览器左上角,如果在没有父级元素的情况下,存在文本,则以...
分类:
Web程序 时间:
2015-07-02 15:30:23
阅读次数:
468
近日学习过程中,出现一个问题:内外多层div嵌套时,margin-top不起作用,margin-left起作用,查询百度,有结果:当两个容器嵌套时,如果外层容器和内层容器之间没有别的元素,firefox会把内层元素的margin-top作用与父元素。经过测试,得如下解决方法,详请见代码中的注释:di...
分类:
其他好文 时间:
2015-07-02 12:00:17
阅读次数:
117
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) – Push element x onto stack.
pop() – Removes the element on top of the stack.
top() – Get the...
分类:
其他好文 时间:
2015-07-01 22:14:05
阅读次数:
135
查看系统健康命令top 默认是3秒刷新一次,q退出
分类:
系统相关 时间:
2015-07-01 22:09:33
阅读次数:
167