html - 样式在 Mac 上不起作用但在 Windows 上正确

标签 html css windows macos

我的搜索栏在 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

最佳答案

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

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

关于html - 样式在 Mac 上不起作用但在 Windows 上正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28365708/

相关文章:

javascript - 如何更改 Twitter 关注按钮的宽度?

windows - 此文件位于本地网络之外的位置

windows - 保存 Windows 无线配置文件凭据

c++ - 全屏形式和视频游戏有什么区别?

javascript - 向上滚动时获取元素的滚动位置

php - TCPDF 整页表

php - 无法更改 CSS 字体类

php - 如果mysql中存在,如何更新一行,或者如果不存在,如何创建一个新行

html - 元素不在导航栏下方和中心下方 - 响应式顶部导航

JavaScript 视频预告片(包括 YouTube iframe)播放问题,翻页卡正面出现悬停现象