【问题标题】:Styles not working on Mac but correct on Windows样式在 Mac 上不起作用,但在 Windows 上正确
【发布时间】:2015-04-06 14:11:59
【问题描述】:

我有一个搜索栏可以在 Windows 上完美运行,但在 Mac 上却不行,我们已经有 3 个不同的人尝试过,他们反馈说搜索栏不在正确的位置

它应该是这样的:http://puu.sh/fxTdJ/a19ae11d62.jpg

以下是样式:

#search {
    position:relative;
    top:-30px;
}
#search div {
    padding-right:0;
}
#search button {
    height:33px;
    margin-top:1px;
    background:#666;
    color:#ccc;
    border:1px solid #666;
    border-radius:3px;

}

这是网址 http://178.62.26.90/essentialweddinghire/public/home

【问题讨论】:

  • SAFARI 浏览器看起来有问题。不特定于 mac。

标签: html css windows macos


【解决方案1】:

尝试在您的 css 中将 clear:both 赋予 #search

#search {
    clear: both;
    position: relative;
    top: -30px;
}

【讨论】:

  • @ben shepherd:您应用了相同的更新或服务器非常快:D ...现在它至少作为答案:P
  • 正确答案加 1。
【解决方案2】:

无事可做,只需从您的代码中删除 padding-left: 0;.nav

.nav {
 padding-left: 0;
}

这个问题在 Mozilla 中也出现在这里。 我想这会对你有所帮助。上面的答案也是正确的。时代赐予

【讨论】:

    猜你喜欢
    • 2021-11-15
    • 2015-03-13
    • 1970-01-01
    • 1970-01-01
    • 2020-12-26
    • 2017-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多