简体   繁体   中英

Cross-browser positioning of divs

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: tophttp : //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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM