39,085
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title> 页面漂亮姐姐名称 </title>
<style type="text/css">
#bottom-div {
position: fixed;
width: 100%;
height: 200px;
left: 0;
bottom: -200px;
background-color: #999;
transition: bottom 300ms;
}
#bottom-div.on {
bottom: 0px;
}
</style>
<div id="bottom-div"></div>
<script type="text/javascript">
window.onload = function () {
document.getElementById("bottom-div").className = "on";
}
</script>