我試圖更改文件類型的輸入按鈕的文本值。我知道它是參數值='',但在這種情況下它不起作用。HTML&CSS - 更改輸入按鈕中的文本值
我的代碼:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link href="assets/css/custom-sugar-style.css" rel="stylesheet">
<div class="container-fluid">
<div class="row">
<div class="col-md-12 text-center">
<img class="img-sugar" src="assets/images/SUGAR.png" />
<br>
<br>
<br>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<form action="shareimage.php" method="post">
<input class="button-camera" type="file" accept="image/*" capture="camera" value="Take a photo" />
</form>
</div>
</div>
你能幫助我嗎?
謝謝!
你是什麼意思,說「不能正常工作」? – lomboboo
檢查這篇文章[這裏](http://stackoverflow.com/questions/686905/labeling-file-upload-button)。這可能有幫助。 – realtymarker
你的意思是''placeholder =「在用戶輸入文本之前出現在輸入字段內的東西」''? – Crowes