我試圖做一個文件共享網站,但有麻煩的樣式上傳形式我有我的設計是相當先進的,而不是設置個人風格我試圖設置設計爲背景圖。HTML/CSS表單樣式
這是我設計的 - http://icap.me/i/s5YIbheY3g.png
這是它目前的努力 - http://icap.me/i/ODuzJOQMhS.png
到目前爲止,我用下面的代碼設置上傳按鈕的風格 -
form input[type=submit] {
background : url("../img/upload.png") no-repeat center center;
width : 115px;
height :52px;
border : none;
color : transparent;
font-size : 0
}
你知道我怎麼可以使用圖像來設計我的其他表單按鈕,這裏是html -
<form action="upload_file.php" method="post"enctype="multipart/form-data">
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
<input type="checkbox" name="vehicle" value="Bike">I agree to the terms and conditions<br>
</form>