登录 注册

css层固定位置练习

资讯 驱动中国 1,027 次阅读 0 条评论
分享 Q

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"">
<html xmlns="">
<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>

版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系 editor@qudong.com
本文价值 成为第一个评分的人
登录后为本文打分
网友评论0 条评论
正在回复 的评论取消
评论加载中…
🔐

登录后参与互动

评论、点赞均可赚积分
连续签到、邀请好友也有奖励 🎁

电脑端: 微信扫码登录 微信内: 一键登录

微信扫一扫

打开微信「扫一扫」,分享本文到朋友圈或好友