<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 6 年前。
链接:http://path.com.my/v2/gallery/
尝试当您将鼠标悬停/鼠标悬停在选项卡中的一个链接上时,尤其是靠近 EXTERIOR、ILLUMINATED、INTERIOR、PYLON 时,第二行的元素会继续移动。
我尝试在悬停时更改一些 CSS,但它似乎不起作用。 谁能帮忙?
最佳答案
从 .sortLink
中删除 float
并改用 inline-block
。
使用以下 CSS:
.sortLink {
display: inline-block;
vertical-align: top;
color: #999;
font-size: 14px;
padding: 5px 8px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
margin: 0 5px 5px 0;
transition-duration: 0.5s;
}
关于html - 元素在悬停时跳来跳去,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37916730/