最贊回答 / 亞里士多偷
onclick='turn(this)' 這個寫在class里面了。不要寫在class里面,單獨提出來就好了。還有,樓主有個transform拼寫成了tranform。
2016-01-17
最新回答 / 斌2233
.photo .side-back{display: none;}這么寫是不對的? 改成.photo, .side-back{display: none;}
2015-12-23
最贊回答 / 李曉健
為了讓warp 垂直居中,因為他先用定位設(shè)置了一個top:50%; ?這樣的話這個圖片就會下降到50%的調(diào)度,也就是warp 的上邊沿正好在他原來的中線上,這時就偏下了,因為warp的高度是600,這600應(yīng)該在上下部分各占一半,也就是300px,但是因為top:50%, 所以這600全到了下邊,想居中就得往上移動300,這樣才能保證上下部分各300,所以就有了 margin-top:-300px
2015-12-20
最贊回答 / 木子舟義
function g(selector){? ? ? ? ? ? ? ? return selector.substring(0, 1) == '.' ? document.getElementsByClassName(selector.substring(1)) : document.getElementById(selector.substring(1));? ? ? ? ? ? }
2015-12-04