码迷,mamicode.com
首页 >  
搜索关键字:absolute    ( 3571个结果
javascript——光标键控制div移动,
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
LeetCode --- 71. Simplify Path
题目链接: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
12312
.mainmenu { display: block; bottom: 0px; top: 80px; position: absolute; width: 100%;} .mainmenu li { display: block; h...
分类:其他好文   时间:2015-03-19 19:59:50    阅读次数:140
LeetCode – Refresh – Divide Two Integers
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 制作三角形 以及 display 、 visibblity属性含义
纯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
页面滚动条滚动后返回事件----JS
这两天小码哥在做页面的时候,其中有一个效果是想让右侧的一个导航随着页面向下滚动而由原来的固定(position:absolute;)模式改为悬浮(position:fixed;)模式。我当时就想到了返回函数。可是依照自己的想法写了几个JS都没成功,我在想肯定是我用错了方法了。后来经过偶一再查..
分类:Web程序   时间:2015-03-18 18:39:11    阅读次数:190
[LeetCode] Simplify Path 简化路径
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
temp
/* * 选择文件按钮样式 */.fileinput-button { position: relative; overflow: hidden; float:left;}.fileinput-button input { position: absolute; top...
分类:其他好文   时间:2015-03-18 11:51:36    阅读次数:172
css盒模型
css有种基础实际模式叫盒模型,定义了web页面中的元素是如何看做盒子来解析的。1、css盒模型简介 在css中主要有以下几种盒模型:inline、inline-block,block、table、absolute position、float。 浏览器把每个元素看做一个盒模型,每个盒模型是由以.....
分类:Web程序   时间:2015-03-17 19:52:26    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!