我在單獨的頁面上有兩個相同的div - 是否有方法將它們從開始位置着陸頁設置爲第二頁上的位置並打開第一個內容div(藍色),所以基本上動畫留下來做一個垂直線,而不是立方體。在兩個頁面之間加載動畫div
所以從這裏http://www.crazyedits.co.uk/
在這裏http://www.crazyedits.co.uk/home.php#並打開第一彩色單嗎?
我剛開始學習,所以儘量保持它簡單的偷看(抱歉,如果我的問題是顯而易見的) - 但我已經嘗試了5個小時找到解決方案,似乎沒有任何工作。
着陸頁按鈕
<div class="button1">
<div id="icon"><img src="Images/home.png" width="200" height="160" /></div>
<div id="title">HOME</div>
</div>
內容頁按鈕
<div> <div class="content_button1">
<div ="icon"><a href="#home_page" ><img src="Images/home.png" width="200" height="160" style="border:none;" /></a></div>
<div id="title"><li><a href="#home_page" >HOME</a></li></div>
<div id="home_page" class="contain"></div> </div>
</div>
CSS
我認爲這個問題我已經是我不得不設置2個不同的CSS集上的每個按鈕頁面 - 一個對齊他們在中心和一個對齊他們離開。所以,如果有,我可以使用相同的類,仍然可以得到4個廣場,因爲它們和一些具有絕對位置的做的話,我會更接近了一步製作方式,它的工作
/******page buttons*******/
.content_button1{width:199px; height:199px; margin:0px 0px 19px 0px; background-color:#09C;}
.content_button2{width:199px; height:199px; margin:19px 0px 19px 0px; background-color:#C00;}
.content_button3{width:199px; height:199px; margin:19px 0px 19px 0px; background-color:#F60;}
.content_button4{width:199px; height:199px; margin:19px 0px 19px 0px; background-color:#093;}
/*****landing page buttons*****/
.button1{width:199px; height:199px; float:left; margin:20px ; background-color:#09C;}
.button2{width:199px; height:199px; float:left; margin:20px ; background-color:#C00;}
.button3{width:199px; height:199px; float:left; margin:20px ; background-color:#F60;}
.button4{width:199px; height:199px; float:left; margin:20px ; background-color:#093;}
不知道我完全理解你的問題,但你有沒有考慮過動畫的CSS'使用jQuery position'(http://api.jquery.com/animate/)? – greener
我已經看過它,但在我有點出於我的深度之前幾乎沒有使用過jQuery。基本上是主頁上的4個大方塊 - 如果點擊了任何東西,我希望它們全部過渡到上面第二個鏈接中顯示的頁面的左側,然後打開相應的顏色內容(輔助任務atm),主要是讓他們移動到左邊。 –