0
用CSS動態調整圖像大小似乎很容易。如果我用自定義的提交按鈕來嘗試這個,提交按鈕非常小。動態調整自定義窗體的大小[提交]隨着瀏覽器寬度/高度的變化CSS?
<form>
<input type="submit" name="submit" value="" id="submitID">
</form>
-
html{height:100%;}
body{height:100%; width:100%;}
#submitID{
background:url(../images/button.png);
max-width:100%;
height:auto;
background-repeat:no-repeat;
border:none;
cursor:pointer;
}