Home >Web Front-end >HTML Tutorial >div absolute positioning_html/css_WEB-ITnose

div absolute positioning_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:45:241217browse

div Absolutely top

 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 }

<div class="Phone2title"></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 }

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn