61,112
社区成员
发帖
与我相关
我的任务
分享
<body style="background:url(image/backimage.jpg); z-index:-1; background-attachment:fixed;background-repeat: no-repeat;background-size:cover;">
<div class="eye">
<img src="image/eye.jpg" width="auto" style=" z-index:333; clear: both; display: block; margin:auto; top:0px"/>
</div>
<style>
.fixed {
position: fixed;
bottom: 0;
right: 0px;
width: 200px;
background-color: white;
border:1px solid;
}
</style>
就是限定在右下角。你只要修改bottom和right的px值就能修改div在窗口的任意位置了。
原文章http://www.daimatree.com/dll_website/dll_showHTML.php?html_url=css_position