css - 在 Firefox 和 Chrome 中查看时网站外观的差异

标签 css

在chrome中打开以下网址 www.nextag.com/camera/stores-html 并刷新页面

注意右上角邮政编码旁边的帮助图标的位置..它没有对齐 现在在 firefox 中打开相同的内容..它已正确对齐..

CSS代码如下:

background: none repeat scroll 0 0 white;
border: 1px solid #C2CCCC;
border-radius: 4px 4px 4px 4px;
color: #C2CCCC;
display: block;
float: right;
font-weight: bold;
height: 13px;
margin-left: 4px;
text-align: center;
width: 12px;
padding-right: 1px;

为了让它在 firefox 中工作..我添加了以下 3 个属性:

position: relative;
top: -15px;
left: 18px;

然后它开始在 chrome 中正常工作,但现在它在 firefox 中错位了。我该怎么办??

最佳答案

您在 A 中有一个 SPAN。只需禁用“float: right”属性并添加“display: inline”

.rb span.zip-info {
    dispay: inline;
    float: none;
}

关于css - 在 Firefox 和 Chrome 中查看时网站外观的差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12157956/

相关文章:

html - 将 <p> 中的水平文本与倾斜的 <div> 对齐

javascript - 图标颜色在移动浏览器中没有改变

javascript - 弹出窗口未按需要在每个 session 中显示一次(如客户所述)

javascript - 将数据从 select 导入到 input

HTML、图片和文本

html - 计算出的字体大小大于 Asus Nexus 7 上 CSS 中定义的大小

html - 分区显示问题

php - 在 Codeigniter 中显示图像

html - css 没有动画计时功能

jQuery - 从 div 中的所有内容获取 CSS