下面图老师小编跟大家分享css层固定位置练习,一起来学习下过程究竟如何进行吧!喜欢就赶紧收藏起来哦~
【 tulaoshi.com - Web开发 】
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
html xmlns="http://www.w3.org/1999/xhtml"
head
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
title层固定位置练习--by 阿会楠/title
style type="text/css"
html,body{
overflow:hidden;
padding:0;
margin:0;
width:100%;
height:100%;
}
#_body{
height:100%;
overflow-y:scroll;
width:100%;
height:100%;
}
#adDiv{
position:absolute;
z-index:99999;
bottom:10px;
left:10px;
width:200px;
height:30px;
border:1px solid #8A9ABB;
background:#F0F4F7;
font:12px tahoma;
text-align:center;
line-height:30px;
}
/style
/head
body
div id="adDiv"www.dibrg.com/div
div id="_body"
/div
/body
/html
资料引用:http://www.knowsky.com/441324.html
(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/webkaifa/)来源:http://www.tulaoshi.com/n/20160219/1623448.html