Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここでわかるように: ショーの曲を含むページを作成したいのですが、jQuery が div の 1 つの高さを (ホバー時に) 変更すると、他の div の位置が変わります (垂直方向に中央に配置されます)。通常、私は使用します
position:relative; top:0px;
しかし、この場合、その下にさらに div を配置します (5 列の行)。上記の div の 1 つが拡大すると、それらは少し下がらなければなりません。
この問題を解決するには、次の CSS を追加します。
.track{vertical-align:top;}