0

file数式の要素に、この css を持つテキストフィールドと同じ css を持たせたい:

.formulaire .inputlong {  // formulaire is the form and inputlong is the name of the css for textfields
    width: 250px;
    background-color:#FFF; 
    border:1px solid;
    border-color:#b80500;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #bbb;
    color: #000;
    background-position: 10px 6px;
    float: left;
}

ファイルの css を inputlong css に設定しようとしましたが、何もありませんでした。

では、ファイル要素に対してこのような同様の css を作成するにはどうすればよいでしょうか?

4

2 に答える 2

1

またはfile要素selectのようなcheckbox要素radiobuttonは、os/browser 制御の html 要素です。JavaScript でスタイルを設定できますが、(ほとんど) css ではできません

于 2012-05-11T06:21:12.493 に答える
1

セキュリティ上の理由から、file.

私が知っているほとんどの解決策は、「参照」ボタンの不透明度を変更して、ユーザーが背後にあるものを見るようにします。

例えば ​​:

http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom

于 2012-05-11T06:11:24.387 に答える