CSS代码:#div1{ width: 100px; height: 100px; background: #ccc; position: absolute;}HTML代码:JS代码:window.onload = function(){ var oDiv = document.get...
分类:
移动开发 时间:
2015-03-21 12:34:41
阅读次数:
164
题目链接:Simplify Path
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
Corner Cases:
Did you consider the ca...
分类:
其他好文 时间:
2015-03-20 22:00:16
阅读次数:
168
1、css样式
.photoX{
margin: 5px;
width: 300px;
height: 200px;
border:1px solid #5df;
}
.rubbish{
width:32px;
height:32px;
position:absolute;
z-index: 10;
left: 270px;...
分类:
其他好文 时间:
2015-03-19 20:22:48
阅读次数:
139
.mainmenu { display: block; bottom: 0px; top: 80px; position: absolute; width: 100%;} .mainmenu li { display: block; h...
分类:
其他好文 时间:
2015-03-19 19:59:50
阅读次数:
140
There couple of edge cases need to remember:1. The result, absolute value of dividend and divisor. Otherwise, when the record goes out of boundary, th...
分类:
其他好文 时间:
2015-03-19 08:50:24
阅读次数:
125
纯css 制作三角形.box1{ width:0; height:0; top:-10px; left:15px; position:absolute; border-style:solid; border-width: 0 10px 10px; bo...
分类:
Web程序 时间:
2015-03-18 20:05:21
阅读次数:
128
这两天小码哥在做页面的时候,其中有一个效果是想让右侧的一个导航随着页面向下滚动而由原来的固定(position:absolute;)模式改为悬浮(position:fixed;)模式。我当时就想到了返回函数。可是依照自己的想法写了几个JS都没成功,我在想肯定是我用错了方法了。后来经过偶一再查..
分类:
Web程序 时间:
2015-03-18 18:39:11
阅读次数:
190
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"click to show corner cas...
分类:
其他好文 时间:
2015-03-18 15:22:54
阅读次数:
137
/* * 选择文件按钮样式 */.fileinput-button { position: relative; overflow: hidden; float:left;}.fileinput-button input { position: absolute; top...
分类:
其他好文 时间:
2015-03-18 11:51:36
阅读次数:
172
css有种基础实际模式叫盒模型,定义了web页面中的元素是如何看做盒子来解析的。1、css盒模型简介 在css中主要有以下几种盒模型:inline、inline-block,block、table、absolute position、float。 浏览器把每个元素看做一个盒模型,每个盒模型是由以.....
分类:
Web程序 时间:
2015-03-17 19:52:26
阅读次数:
156