绝对定位:position:absolute 绝对定位使元素的位置与文档流无关,因此不占据空间。 绝对定位的元素的位置相对于最近的已定位祖先元素(absoulte、relative),如果元素没有已定位的祖先元素,那么它的位置相对于最初的包含块。 因为绝对定位的框与文档流无关,所以它们可以覆盖...
分类:
Web程序 时间:
2014-11-21 18:37:52
阅读次数:
157
1、渐变色 从上到下,白色透明度100%到白色透明度0%渐变(注意为避免继承,新建元素,父元素relative,子元素absolute) background-image:linear-gradient(to bottom,rgba(255, 255, 255, 1),rgba(255, 255,....
分类:
Web程序 时间:
2014-11-21 13:57:42
阅读次数:
185
对a链接的display设置为block,以便整个标签可以点击。但是,如果对该标签设置为position:absolute后,会发现在ie6、ie7下有时点击无效,ie8下有效(ie8标准),使用zoom:1方式也无法解决问题。解决方案1、使用position:relative而不是position...
分类:
其他好文 时间:
2014-11-20 13:25:19
阅读次数:
137
Let $A$ and $B$ be two matrices (not necessarily of the same size). Relative to the lexicographically ordered basis on the space of tensors, the matri...
分类:
其他好文 时间:
2014-11-19 18:20:50
阅读次数:
142
absolute relative animate()
分类:
Web程序 时间:
2014-11-19 07:04:54
阅读次数:
167
.pagination>a,.pagination>span{background-color:#fff;border:1pxsolid#ddd;color:#428bca;float:left;line-height:1.42857;margin-left:-1px;padding:6px12px;position:relative;text-decoration:none;}.pagination>a.active,.currentStep,.pagination>span,.pa..
分类:
Web程序 时间:
2014-11-19 02:05:02
阅读次数:
215
position属性absolute与relative 详解最近一直在研究javascript脚本,熟悉DOM中CSS样式的各种定位属性,以前对这个属性不太了解,从网上找到两篇文章感觉讲得很透彻,收藏下来,唯恐忘记。一.解读absolute与relative很多朋友问过我absolute与relat...
分类:
Web程序 时间:
2014-11-18 23:18:43
阅读次数:
321
首先,给元素戴个套子,这样比较安全嘛,是不是?看代码:浏览...有了这个安全的外层容器,我们就可以开搞了。问题的核心有两点:第一,把丑陋的原生上传控件给藏起来;第二,支持点击上传功能。关键的代码片段:.input-file {overflow:hidden;position:relative;}.i...
分类:
Web程序 时间:
2014-11-18 13:08:15
阅读次数:
187
<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>Slider图片轮播</title> <style type="text/css"> *{margin:0;padding:0} ul,li{list-style:none} #slider{ position:relative;width:470px; heigh...
分类:
Web程序 时间:
2014-11-17 22:59:13
阅读次数:
483
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of...
分类:
其他好文 时间:
2014-11-14 17:50:06
阅读次数:
137