這就是我在Visual Studio爲什麼我的homebutton不會根據我的CSS屬性調整大小?
<link rel="stylesheet" href="css/style.css" type="text/css" />
這是如何被創造了我爲homeButton鏈接我的CSS與我的整個母版。
<div id="homebutton">
<input type="image" src="image/logo.jpg">
</div>
這是怎麼我的CSS樣子
#homebutton {
position:absolute;
left:0%;
top:0%;
margin: 0px;
height:70px;
}
然而,當我改變高度象素,爲homeButton的規模仍保持不變。到目前爲止,我仍然不知道爲什麼。
使圖像變大,增加高度僅作用於DIV高度。爲了更好地理解,在您的DIV中使用背景顏色。 –