码迷,mamicode.com
首页 > 其他好文 > 详细

div 绝对定位

时间:2015-04-27 12:45:15      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

div绝对居下

技术分享
 1 .Phone2title{
 2 width:100%; 
 3 height:30px;
 4 line-height:30px;
 5 /*text-align:left;*/ 
 6 /*background-color:RGB(239,101,25);*/ 
 7 background-color:#b81c22;
 8 position:fixed; 
 9 _position:absolute;  
10 *position:absolute; 
11 top:0px;
12 color:white;  
13 font-size:18px;
14 z-index:99999;
15 /*border:1px blue solid;*/
16 
17 /*_top:expression(document.documentElement.clientHeight + document.documentElement.scrollTop - this.offsetHeight);*/  
18 vertical-align: middle;
19 }
View Code
<div class="Phone2title"></div>

  

div绝对居上

技术分享
 1 .Phone2title{
 2 width:100%; 
 3 height:30px;
 4 line-height:30px;
 5 /*text-align:left;*/ 
 6 /*background-color:RGB(239,101,25);*/ 
 7 background-color:#b81c22;
 8 position:fixed; 
 9 _position:absolute;  
10 *position:absolute; 
11 top:0px;
12 color:white;  
13 font-size:18px;
14 z-index:99999;
15 /*border:1px blue solid;*/
16 
17 /*_top:expression(document.documentElement.clientHeight + document.documentElement.scrollTop - this.offsetHeight);*/  
18 vertical-align: middle;
19 }
View Cod

div 绝对定位

标签:

原文地址:http://www.cnblogs.com/yuanjiehot/p/4459710.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!