超大游标在Firefox形式与文本框背景图像

时间:2010-05-27 09:47:00

标签: css firefox forms background-image

我在文本框上有一个带有背景图像的webform,为它们提供了一个漂亮的圆角。在Chrome中,文本框按预期工作,但是,如果我在Firefox中查看表单,则光标看起来会调整为图像的高度,但文本是正常大小。

有没有办法覆盖这个超大的游标?

这是文本框的CSS:

    .ed_form_textbox {
    width:319px;
    height:34px;
    margin-bottom:10px;
    padding-left:10px;
    background: transparent url( "/images/textbox.png" ) no-repeat bottom left;
    position:relative;
    border:none;
}

感谢。

以下是Firefox Web Developer的样式信息:

.ed_form_textbox (line 54) {
width: 319px;
height: 34px;
margin-bottom: 10px;
padding-left: 10px;
background-color: transparent;
background-image: url("/images/textbox.png");
background-repeat: no-repeat;
background-attachment: scroll;
background-position: left bottom;
position: relative;
border-top-width: medium;
border-right-width-value: medium;
border-right-width-ltr-source: physical;
border-right-width-rtl-source: physical;
border-bottom-width: medium;
border-left-width-value: medium;
border-left-width-ltr-source: physical;
border-left-width-rtl-source: physical;
border-top-style: none;
border-right-style-value: none;
border-right-style-ltr-source: physical;
border-right-style-rtl-source: physical;
border-bottom-style: none;
border-left-style-value: none;
border-left-style-ltr-source: physical;
border-left-style-rtl-source: physical;
border-top-color: -moz-use-text-color;
border-right-color-value: -moz-use-text-color;
border-right-color-ltr-source: physical;
border-right-color-rtl-source: physical;
border-bottom-color: -moz-use-text-color;
border-left-color-value: -moz-use-text-color;
border-left-color-ltr-source: physical;
border-left-color-rtl-source: physical;
font-size: 12px; 
}

.ed_form_textbox:focus (line 65) {
outline-width: medium;
outline-style: none;
outline-color: -moz-use-text-color;
}

1 个答案:

答案 0 :(得分:0)

如果您希望Caret(文本光标)更小,则需要向您的班级添加font-size: