CSS2.0 HandBook上的解释:设置此属性值为 absolute 会将对象拖离出正常的文档流绝对定位而不考虑它周围内容的布局。假如其他具有不同 z-index 属性的对象已经占据了给定的位置,他们之间不会相互影响,而会在同一位置层叠。此时对象不具有外补丁( margin ),但仍有内补丁( ...
分类:
Web程序 时间:
2014-09-21 18:05:01
阅读次数:
185
首先头部添加 意识是等比例缩放做的时候发现了一些问题:之前设置body背景图片为no-repeat 宽度100% 定于父级容器为position:relative;然后定义你做要的div position: absolute;但是发现web手机端分辨率变大,定位根据图片所在的位置错乱了。比如iPho...
分类:
移动开发 时间:
2014-09-21 03:18:39
阅读次数:
266
任何Python程序都可以作为模块导入;在导入自己的模块时,需要添加路径:
import sys
sys.path.append('absolute-path');
(__pycache__是执行main.py时创建的)
hello.py内容:
def sayHello():
print('hello,world')
main.py...
分类:
编程语言 时间:
2014-09-20 21:26:49
阅读次数:
243
[leetcode]Given an absolute path for a file (Unix-style), simplify it....
分类:
其他好文 时间:
2014-09-19 12:13:05
阅读次数:
133
一、position的三种取值1、取值Position : static /absolute / fixed / relative static:静态 absolute:绝对定位 fixed:固定 relative:相对定位默认情况下:static 无特殊定位,对象遵循HTML定位规则 absol....
分类:
其他好文 时间:
2014-09-19 11:53:25
阅读次数:
157
position: fixed;_position: absolute;right: 0;_right: -1px;top: 80px;_bottom: auto;z-index: 2147483647;_top: expression(eval(document.documentElement.s...
分类:
其他好文 时间:
2014-09-16 15:45:10
阅读次数:
144
代码如下:window.alert = function(str) { var shield = document.createelement(div); shield.id = shield; shield.style.position = absolute; shield.style.left ...
分类:
Web程序 时间:
2014-09-16 12:17:30
阅读次数:
266
css:#scroll { position: fixed; right: 100px; bottom:30px; z-index: 1000; _position: absolute; _top: 100%; _right: 100px; _bottom: 0; }.scrollItem { cu...
分类:
其他好文 时间:
2014-09-15 19:28:09
阅读次数:
219
css代码:body { font: 12px Tahoma,arial,sans-serif; margin: 0; padding: 0;}#mask { left: 0; opacity: 0.2; position: absolute; top: 0...
分类:
Web程序 时间:
2014-09-15 19:18:49
阅读次数:
326
css中定位(position):其一:position:relative;按元素的原始位置对元素进行移动 即 相对于原始位置移动,不会影响其他元素的位置。其二:position:absolute;生成绝对定位元素,是相对于父级元素进行移动,会影响其他元素。float:对DOM元素中的任一元素flo...
分类:
其他好文 时间:
2014-09-15 15:32:29
阅读次数:
181