我想有四个按钮(锚点),每个按钮占据屏幕的四分之一。我希望我的团队徽标位于中间,与页面居中的所有四个按钮重叠。
.forsaken {
position: fixed;
right: 0px;
left: 0px;
bottom: 0px;
top: 0px;
}
<img src="icon5.png" class="forsaken">
使用div。这是其中之一:http://pastebin.com/12LKEh5x
只需使用上面的示例将按钮包装在一个div 中,然后制作另一个 z:index = 2 的按钮,这样它就会覆盖第一个 z:index = 1 的按钮。