gpt4 book ai didi

html - 页脚菜单未在 Safari 中显示

转载 作者:太空宇宙 更新时间:2023-11-04 03:48:49 27 4
gpt4 key购买 nike

有问题的站点是:http://www.twisted-perfectionism.com

我有这个#secondary_nav,它应该出现在移动设备屏幕的底部。它在 Firefox 和 Chrome 中都运行良好,但在 Safari 中它根本不会出现。使用开发人员工具我可以看到它放置正确但它是不可见的。我是新手..请帮忙!

@media only screen and (max-width : 880px) { [...] #secondary_nav {
width: 100%;
height: 12px;
padding-top: 16px;
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: url(../images/trans.png) repeat;
}

#secondary_nav > ul {
clear: left;
float: left;
margin: 0;
padding: 0;
position: relative;
left: 50%;
text-align: center;
display: block;
}

#secondary_nav > ul > li {
width: auto;
display: block;
clear: none;
float: left;
list-style: none;
position: relative;
right: 50%;
}

#secondary_nav ul li ul {
left: 0;
margin-right: 0;
}

#secondary_nav ul li ul li a {
text-align: left;
} [...] }

问题已通过删除解决:

overflow: auto;

现在页脚出现了,但在 iOS 上,当向下滚动时,iOS 底部的 bard 消失并且在我将手指从显示屏上移开之前页脚不会下降。

见截图:http://s29.postimg.org/7r49yfzc7/Photo_17_05_14_02_06_16.png

最佳答案

如果你把 overflow: auto 去掉 #control 的风格,它会切断 #secondary_nav:

#control {
width: 34%;
min-width: 300px;
position: fixed;
top: 0;
bottom: 0;
left: 0;
overflow: auto; /* Take this out */
-webkit-box-shadow: 0px 1px 7px 0px rgba(00, 00, 00, .7);
box-shadow: 0px 1px 7px 0px rgba(00, 00, 00, .7);
background: url(images/trans.png) repeat;
}

据我所知,它也不会弄乱其他任何东西。

关于html - 页脚菜单未在 Safari 中显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23705168/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com