html - Firefox/其他浏览器之间的对齐偏移

标签 html css firefox alignment

http://jsfiddle.net/Fy5v8/

我没能解决这个问题,或者以前见过它——它很微妙,但我当然希望它是完美的。我看不出有什么理由会奇怪地显示它。

图像的底部和导航应该对齐,但没有对齐。这是 firefox 中的错误版本:

http://jamimiles.com/firefox.png

或者在您自己的浏览器上访问它。非常感谢您的帮助!

#header {
font-family: georgia, serif;
width:800px;
height:65px;
font-size:20px; font-size:2rem;
color:#3a3b59;
text-transform: uppercase;
text-align:left;
padding:0 0 30px 0;
margin-top:0;
border-bottom: none;
float:left;
position:relative;
}
#header ul li {
list-style-type:none;
line-height:20px; line-height:2rem;
float:right;
}

#header li {
padding-left:20px;
}

#header ul {
margin-top:52px;
padding:0;
float:right;
margin-bottom:0;
}

#header img {
padding:0; 
border:none;
float:left;
}

这就是 CSS。这是标题栏。

    <div id="header">
    <a href="index.html"><img src="images/namebanner3.png"></a>
        <ul>
            <li><a href="index.html">home</a></li>
            <li><a href="about.html">about</a></li>
            <li><a href="portfolio.html">portfolio</a></li>
                            <li><a href="JamiMiles_Resume.pdf" target="blank">resum&eacute;</a></li>
            </ul>
</div>

最佳答案

尝试调整 img px。您当前设置为 851px x 141px

<img  height="#" width="#" style="-webkit-user-select: none"     

 src="http://jamimiles.com/firefox.png">

关于html - Firefox/其他浏览器之间的对齐偏移,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24132153/

相关文章:

google-chrome - 查看缓存的 Appcache 数据

javascript - 原型(prototype)选择所有复选框代码在 IE 中有效,但在 Firefox 中无效

html - 仅在 Firefox 中由于填充而导致链接中断

css - 来自 cdn 的 bootstrap.min.css 大小在 devtools 中显示出惊人的大小

javascript - 自动调整高度 CSS

javascript - 使用 JQuery 更改文本文件列表中 div 的文本

javascript - 将段落的 innerHTML 更改为返回 NaN 的变量

css - css 文本上方的边距或填充

html - 右对齐单元格中的左对齐文本

javascript - 如何在 Canvas 上绘制的图像上分配onclick?