I'm trying to make an animated menu using :hover
using two div
s with the same content but when I have more than one button and I hover on it, the second div shows up 1 or 2 pixels lower in Chrome but not in Firefox. I made an example with two menus, one with two buttons ( BUTTON1
, BUTTON2
) and one with only one button ( BUTTON3
): http://jsfiddle.net/Revolt/VHuyw/
尝试在您的.button
类中添加vertical-align: top
: http : //jsfiddle.net/VHuyw/2/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.