gpt4 book ai didi

ios - 列表项在 ipad 上的显示方式与任何其他设备不同

转载 作者:行者123 更新时间:2023-11-28 11:11:34 25 4
gpt4 key购买 nike

我的网站标题中有一个列表项 (ul li),当它在任何浏览器中时,它运行良好,运行良好。但是当我在我的 ipad 上访问该网站时,第一个和最后一个链接都失效了。

我的意思是:

any browser excluding iPad

这是在我的 iPad 上:

using iPad browser

代码如下:

#header #personals nav ul li { 
display: inline-block;
margin: 0;
}
#header #personals nav ul li a {
padding: 25px;
margin: 0;
}
.settings {
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
transition: all 0.2s ease;
position: relative;
background: url('images/settings.png') no-repeat center 15px;
height: 20px;
width: 50px;
padding: 15px;
padding-bottom: 103px;
}
.calendar {
background: url('images/calendar.png') no-repeat center center;
padding: 15px;
height: 30px;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
transition: all 0.2s ease;
width: 50px;
}

这是 jsfiddle:JSFiddle

最佳答案

尝试 this

删除 .settings 规则上的 padding-bottom 属性,并将背景属性上的 15px 值更改为 center.

.settings { 
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
transition: all 0.2s ease;
position: relative;
background: url('http://i58.tinypic.com/21o4ikl.png') no-repeat center center;
height: 20px;
width: 50px;
padding: 15px;
}

关于ios - 列表项在 ipad 上的显示方式与任何其他设备不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21955085/

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