Safari CSS高度过渡问题(Safari CSS height transition issue)

编程入门 行业动态 更新时间:2024-10-25 04:23:13
Safari CSS高度过渡问题(Safari CSS height transition issue)

我发现我的菜单栏在Safari上无法正常工作。 当我悬停我的“工作”列表项时,菜单栏下方会出现一个栏。 它在Firefox和Chrome等其他浏览器中运行良好。

这是我项目的链接: http : //i305098.iris.fhict.nl/Portfolio/

谢谢!

I found out my menu bar does not work properly on Safari. I when I hover my "work" list-item a bar should appear under the menu bar. It works perfectly in other browsers such as Firefox and Chrome.

Here is the link to my project: http://i305098.iris.fhict.nl/Portfolio/

Thanks!

最满意答案

这是由您在悬停时所做的更改引起的:

header nav li:hover { height: 120px; line-height: 120px; margin-top: -5px; }

只需移除高度和线高,它就能工作。 我不明白为什么你实际上做了那些改变。

header nav li:hover { margin-top: -5px; }

This is caused by the change you make on hover:

header nav li:hover { height: 120px; line-height: 120px; margin-top: -5px; }

Simply remove height and line-height and it’ll work. I don’t understand why you did those changes actually.

header nav li:hover { margin-top: -5px; }

更多推荐

本文发布于:2023-07-16 15:46:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1130536.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:高度   CSS   Safari   issue   transition

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!