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 的高度(悬停时)时,另一个 div 会更改其位置(它垂直居中)。通常,我会使用
position:relative; top:0px;
但在这种情况下,我想在其下放置更多的 div(五列的行)。如果上面的 div 之一扩展,这些必须下降一点。
为了解决此问题,请添加以下 CSS:
.track{vertical-align:top;}