How can I style a file input field in Firefox?

后端 未结 6 919
Happy的楠姐
Happy的楠姐 2020-11-28 09:32

I am currently doing the front end for a site with looooads of forms, all styled up and looking pretty in IE, but I\'ve just noticed that in Firefox the file input fields ar

6条回答
  •  离开以前
    2020-11-28 10:04

    Use cheat code ( # ) infront of the attribute of css class say:

    form.CollateralForm input,
    form.CollateralForm textarea
    {
        width:300px;  //for firefox
        #width:200px; //for IE7
        _width:100px; //for IE6
        font-size:1em;
        border: solid 1px #979797;
        font-family: Verdana, Helvetica, Sans-Serif;
    }
    

提交回复
热议问题