【问题标题】:Text Input and Image Firefox Alignment Issue文本输入和图像 Firefox 对齐问题
【发布时间】:2010-09-26 22:27:41
【问题描述】:

我正在为这个问题大发雷霆。 http://www.nettunes.co.za/build/contact.php

我在文本输入的末尾有一个带有背景图像样式的图像,这里是 css: .text_input{ background:url(../images/forms/text_input_back.png) top left no-repeat; width:479px; border-style:none; font-size:18px; color:#cacaca; padding-top:12px; padding-bottom:12px; padding-left:15px; }

在除火狐之外的所有浏览器中,对齐都很好。在 Firefox 中,文本输入末尾的图像太低了 1px。

我们将不胜感激任何帮助,

谢谢

【问题讨论】:

    标签: css firefox textbox alignment


    【解决方案1】:

    .text_input 中删除padding-toppadding:bottom 并改用height:45px;

    【讨论】:

    • 我没有足够的声誉:)
    猜你喜欢
    • 2011-06-25
    • 2016-05-22
    • 2020-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多