相对偏移 指定left top等属性就能够够完美控制一个元素的位置 如:position:relative; left:2px;今天遇到一个很好玩的问题,当两个并排浮动框,当一个框的长度太大时就会把另一个框顶到下一行,这个时候就可以用margin-right:-2px;将右外距设置为负数来解决!cs...
分类:
Web程序 时间:
2014-07-16 21:23:45
阅读次数:
245
Iframe易于嵌套及管理页面,但经常遇到跨域、父子页面访问问题,对于子页面访问父页面可以兼容性地通过window.Top或window.Parent或window.frameElement等操作,但对于标题中四个对象,一直没有完整测试过,故买个苦力,分享给大家。 结论: 1. 就浏览器而言(横向)...
在CSS中background:-moz-linear-gradient让网站背景渐变的属性,目前火狐3.6以上版本和google浏览器支持这个属性。background:-moz-linear-gradient(top,#bccfe30%,#d2dded100%);适合FF3.6+backgrou...
分类:
Web程序 时间:
2014-07-16 20:55:53
阅读次数:
322
java:public class ArrayStack { private int[] data; private int top; private int size; public ArrayStack(int size) { this.data = new...
分类:
编程语言 时间:
2014-07-11 22:49:57
阅读次数:
223
1 2 3 topframe 4 5 6 7 41 42 43 44 45 46 47 48 49 50 查看51 52 管理53 维护54 55 56 {% module Work...
分类:
Web程序 时间:
2014-07-11 21:44:30
阅读次数:
352
1、 元素 定义和用法 元素用于在输出中把样式表中的命名空间替换为不同的命名空间,换句话说,使用其他前缀替换与给定命名空间关联的前缀。 注释: 是顶层元素(top-level element),且必须是 或 的子元素。 例子:输入XML文档 comCode indCode requestNum re...
分类:
其他好文 时间:
2014-07-11 20:55:04
阅读次数:
152
查询占用cpu最高的20条sql语句,sql2008SELECT TOP 10 a.creation_time,total_worker_time/execution_count AS avg_cpu_cost, plan_handle,execution_count,(SELECT SUBSTRI...
分类:
数据库 时间:
2014-07-11 18:32:51
阅读次数:
271
以下以 IE 代替 Internet Explorer,以 MF 代替 Mozzila Firefox 0、px的问题obj.style.left = ”100px”;obj.style.top = ”100px”;千万要记得写上px,否则在Firefox上面两句无效!!1. document.fo...
分类:
Web程序 时间:
2014-07-11 18:00:36
阅读次数:
237
<!DOCTYPEhtml><html><head> <title>自适应宽度</title> <style> #condition{float:left;text-align:center;} #conditionul{margin-top:0px;display:inline-block;} #conditionulli{float:left;list-style:none;} </style><..
分类:
其他好文 时间:
2014-07-10 18:34:27
阅读次数:
243
普通应用:importflash.display.StageAlign;importflash.display.StageScaleMode;stage.align=StageAlign.TOP_LEFT;stage.scaleMode="noScale";stage.addEventListener(Event.RESIZE,resizeHandler);functionresizeHandler(event:Event){ bj.width=stage.stageWidth; bj.height..
分类:
其他好文 时间:
2014-07-09 08:51:40
阅读次数:
427