我想設計一個CSS和HTML網站,但我有一些問題使其響應。 http://finfeeder.x10host.com/CSS盒佈局打得不好
下面是想什麼我它看起來像在移動和桌面時的照片。
從本質上講,隨着顯示器變得越來越小,這些照片應該變得越來越小,留在同一個地方,直到它變得和一定的規模,完全爲移動設備而改變。相反,它只是越來越小,更多的錯位...
在它的核心我知道我不明白CSS佈局如何工作,但W3schools只是沒有得到我的愚蠢自己的觀點。
<!DOCTYPE html>
<html>
<head>
<style>
div.main {
position:absolute;
z-index:-1;
left:0;
top:0;
width:100%;
}
div.buttons {
position: absolute;
left: 330px;
top: 550px;
z-index: 0;
}
</style>
</head>
<body>
<div class="main">
<img src='https://xo2.x10hosting.com:2083/cpsess6981183432/viewer/home%2ffinfeede%2fpublic_html%2fimages/desktop_betta.jpg' style='width:100%' alt='[]' />
</div>
<div class="buttons">
<a href="http://facebook.com">
<img src='http://i.imgur.com/dhFsqcW.gif' style='width:15%' style='height:15%' />
</a>
<a href="http://pinterest.com">
<img src='http://i.imgur.com/qatEe7q.gif' style='width:15%' style='height:15%' />
</a>
<a href="http://instagram.com">
<img src='http://i.imgur.com/IoRiRiD.gif' style='width:15%' style='height:15%' />
</a>
<a href="http://twitter.com">
<img src='http://i.imgur.com/eqsUM0m.gif' style='width:15%' style='height:15%' />
</a>
<a href="http://kickstarter.com">
<img src='https://xo2.x10hosting.com:2083/cpsess6981183432/viewer/home%2ffinfeede%2fpublic_html%2fimages/kickbutton.gif' style='width:100%' alt='[]' />
</a>
</div>
</body>
</html>
請參閱我的回覆鏈接到什麼網站應該看起來像。 謝謝你,親切!
這是桌面設計。 https://xo2.x10hosting.com:2083/cpsess6981183432/viewer/home%2ffinfeede%2fpublic_html%2fimages/betta-splash-red-and-bluefull.jpg – UkiyoWeee
這是移動設計。 https://xo2.x10hosting.com:2083/cpsess6981183432/viewer/home%2ffinfeede%2fpublic_html%2fimages/betta-splash-red-and-blue-MOBILE.jpg – UkiyoWeee
這些鏈接重定向到登錄頁面。 – TheProWolfPcGames