首页 > 其他 > 详细

position(fixed)--定位

时间:2020-01-10 21:16:34      阅读:99      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>position_ example</title>
<style>
.div1{
height:1500px;
background-color:green;
}
.div2{
height:1500px;
background-color:red;
}
a{
position: fixed;
right:20px;
bottom:20px;
}
</style>
</head>
<body>
<div class="div1"><a>return top</a></div><!--return top put in tag div also-->
<div class="div2"></div>
<!--<a>return top</a>-->
</body>
</html>

position(fixed)--定位

原文:https://www.cnblogs.com/startl/p/12177929.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!