1:CSS定位 position:absolute 绝对布局 不占位置 而且margin左右设为auto没用realtive 相对布局 占位置 margin左右设为auto有用fixed 不占位置 但是会固定在浏览器的一个位置 而且margin左右设为auto没用 前三个都可以使用偏移量s...
分类:
Web程序 时间:
2015-04-05 17:22:25
阅读次数:
197
这次研究celery的Next Step部分。 先创建一个python module: mkdir?proj
cd?proj
touch?__init__.py 在proj目录中创建celery.py: from?__future__?import?absolute_import
from?celery?import?Celery
...
分类:
其他好文 时间:
2015-04-04 17:00:04
阅读次数:
182
.triangle-el-simple(){ content: ""; display: block; width: 0; height: 0; position: absolute;}.triangle(@size){ border: (@size / 2) solid transpa...
分类:
其他好文 时间:
2015-04-03 20:51:12
阅读次数:
178
以下布局资料原作者:Owen Briggs单行单列 单行单列1:采用float浮在左上角,固定宽度。 单行单列2:固定在左上角,固定宽度,采用的是绝对(absolute)定位。 单行单列3:固定在左上角,不固定宽度,采用百分比(%)定义宽度来自适应页面。 单行单列4(推荐):固定宽度,采用在body...
分类:
Web程序 时间:
2015-04-03 19:08:58
阅读次数:
160
我们先来看看CSS3 Api中对position属性的相关定义:static:无特殊定位,对象遵循正常文档流。top,right,bottom,left等属性不会被应用。relative:对象遵循正常文档流,但将依据top,right,bottom,left等属性在正常文档流中偏移位置。而其层叠通过...
分类:
Web程序 时间:
2015-04-03 17:09:59
阅读次数:
162
题目:
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 cases.
Corner Cases:
...
分类:
其他好文 时间:
2015-04-03 13:34:17
阅读次数:
144
总体讲:一般使用的是父类用postion:relative属性,子类使用positive:absolute属性常常使用position用于层的绝对定位,比如我们让一个层位于一个层内具体什么位置,为即可使用position:absolute和position:relative实现。一、position...
分类:
Web程序 时间:
2015-04-03 09:11:12
阅读次数:
159
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
题意:问最后的路径是什么。
思路:说白了就是字符串的处理。".."的话就pop一个,字母的话就是push
cla...
分类:
其他好文 时间:
2015-04-02 16:28:18
阅读次数:
101
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>jQuery打造鼠标悬停图片时的半透明遮罩效果</title><style>*{margin:0;padding:0;}li{list-style:none;}.box{width:800px;height:400px;margin:50pxauto;overflow:hidden;}.boxulli{wid..
分类:
Web程序 时间:
2015-04-01 20:17:54
阅读次数:
184
一,三栏布局1,两边栏宽度固定值,中间栏宽度自适应(1)绝对定位法【关键点】1,绝对定位从普通文档流中脱离出来,中间元素可以不用考虑左右定位元素占的位置2,左右栏绝对定位到确定的位置上,(absolute,left,right)3,中间栏左右外边距设置为左右栏的宽度,因此自身宽度就自适应的变成了窗口...
分类:
其他好文 时间:
2015-04-01 19:09:19
阅读次数:
244