.mask{height:100%; width:100%; position:fixed; _position:absolute; top:0; z-index:1000; } .opacity{ opacity:0.3; filter: alpha(opacity=30); background...
分类:
其他好文 时间:
2014-08-11 02:37:51
阅读次数:
205
jQuery弹出层效果
.black_overlay{
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color: black;
z-index:1001;
-moz-opacity: 0.8;
opacity:.80;
filter: alpha(opa...
分类:
Web程序 时间:
2014-08-11 00:28:11
阅读次数:
294
如果是嵌套的div布局,外面的div比如是<divclass="container"></div>这时候设置的是一个大的外框架,居中显示。我们要在里面嵌套div来显示内容,这时候就通过<divstyle="display:block;position:relative"></div>来使得div标签的位置是相对于外面最靠..
分类:
其他好文 时间:
2014-08-09 02:47:57
阅读次数:
378
图片宽高100%不出现纵向滚动条
这种情况下图片超出了body的高度,出现了纵向滚动条,而且样式名为bottom的div只是定位在第一屏的最下面,而不是定位在图片的最下面,拉动滚动条就是这样的效果?
如果想让图片100%占满一屏(你不能让下面那棵树消失哦)不出现滚动条你可能会有很多方法,我这里是这样做的
img{ position:absolute...
分类:
其他好文 时间:
2014-08-08 12:54:18
阅读次数:
238
div:1、基本属性:width, height, left, top, background-color(当设置为transparent时表示透明)2、定位属性:position: absolute/relativeabsolute时,位置固定;relative时,位置会随着内容的实际情况进行浮动...
分类:
其他好文 时间:
2014-08-07 12:45:40
阅读次数:
213
Absolute sortLet's try some sorting. Here is an array with the specific rules.The array (a tuple) has various numbers. You should sort it, but sort it...
分类:
其他好文 时间:
2014-08-05 10:50:49
阅读次数:
204
body{ background-image:url(about:blank); background-attachment:fixed; /*ie 防抖动*/}.fix_to_top { _position:absolute; _top:expression(eval(document...
分类:
其他好文 时间:
2014-08-05 09:28:58
阅读次数:
448
body{ background-image:url(about:blank); background-attachment:fixed; /*ie 防抖动*/}.fix_to_top { _position:absolute; _top:expression(eval(document.docu....
分类:
其他好文 时间:
2014-08-05 09:27:58
阅读次数:
243
1、word-wrap:break-word,内容将在边界内换行,仅用于块对象,内联对象要用的话,必须要设定height、width或display:block或position:absolute。 2、word-break:break-all,用于处理单词折断。 3、white-space:n...
分类:
其他好文 时间:
2014-08-04 14:45:37
阅读次数:
231
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>垂直</title> <style type="text/css"> #content { position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; height:240px; width:70%...
分类:
Web程序 时间:
2014-08-04 14:44:18
阅读次数:
412