HTML
<a href="#head"><img src="upbutton.png" id="fixedbutton"></a>
CSS
.fixedbutton { position: fixed; bottom: 560px; right: 1000px; }
将CSS更改为以下内容,这将选择id固定按钮
#fixedbutton { position: fixed; bottom: 0px; right: 0px; }
这是JoshC的jsFiddle礼节.