码迷,mamicode.com
首页 >  
搜索关键字:absolute    ( 3571个结果
IE6 跟随滚动解决方法
position:fixed;_position:absolute; left:0px; top:350px;_top:expression(documentElement.scrollTop +documentElement.clientHeight-this.offsetHeight);这是解决...
分类:其他好文   时间:2015-06-07 00:51:08    阅读次数:138
微信分享引导页效果
Php *{margin:0px;padding: 0px;} #shareit {-webkit-user-select: none;display: none;position: absolute;width: 100%;height: 100%; background: rgba(0,0,0,0.85);text-align: center;top: 0;left: 0;z-index...
分类:微信   时间:2015-06-05 15:51:35    阅读次数:245
bug记录:IE8,包含块min-height/height共存时的高度计算bug
问题的条件有:A元素是B元素的包含块。A元素设置overflow:hidden;,并同时设置了height和min-height,同时height计算值 < min-height原生IE8浏览器,或者IE9浏览器的IE8兼容性模式(以下统称为IE8)期待结果:若B元素为absolute定位元素,A元...
分类:其他好文   时间:2015-06-04 15:14:01    阅读次数:97
不定宽高垂直居中分析
昨天做移动项目是,遇到这样一个案例,如图,图片容器随着视口宽度进行自由拉伸扩张,图片不定宽高,垂直居中: 当时做这个布局的时候,我一直想到用display:table-cell通过vertical-align:middle,来实现居中,可以当我在同一个节点用position:absolute,...
分类:其他好文   时间:2015-06-04 13:24:14    阅读次数:112
z-index 之理解 --记录(六)
1.z-index用来控制元素重叠时堆叠顺序。适用于:已经定位的元素(即position:relative/absolute/fixed)。2.不使用z-index的时候,堆叠顺序如下(从下到上):根元素(即HTML元素)的background和borders正常流中非定位后代元素(这些元素顺序按照...
分类:其他好文   时间:2015-06-03 21:25:33    阅读次数:109
块级元素设置position为absolute后的变化
当块级元素(如div)设置position为absolute后,原有默认100%的宽度消失,其中内容多宽就显示多宽图一、不设置宽度的情况图二、设置宽度为100%的效果
分类:其他好文   时间:2015-06-03 21:21:53    阅读次数:241
web开发常用样式
1.div保持底部浮动(不受滚动条影响)position:fixed;_position:absolute;bottom:0px;_bottom:0px;_margin-top:expression(this.style.pixelHeight+document.documentElement.sc...
分类:Web程序   时间:2015-06-03 13:26:02    阅读次数:105
css position 属性 (absolute 和fixed 区别)
css position 属性 (absolute 和fixed 区别)
分类:Web程序   时间:2015-06-03 00:58:27    阅读次数:116
CSS position属性
CSS中position属性用于表示元素的位置信息。 有三个取值:static, absolute, relative。如果元素没有显式配置position属性,则该元素默认的position 值为static。 1、static:这是表示该元素按照排列和嵌套的顺序和规则应该在的位置,此时设置top,right,left, bottom属性是无效的; 2、absolute:位置参考点是离其最...
分类:Web程序   时间:2015-06-02 20:14:25    阅读次数:135
2015-06-02 js中的关于的移入移出触发事件的顺序
html (结构很重要,包裹) css.a{width: 200px;height: 200px;border: 1px solid #000;position: absolute;}.b{width: 100px;height: 100px;border: 1px solid #00...
分类:Web程序   时间:2015-06-02 19:41:24    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!