0
我在我的身體這段代碼,iphone上的按鈕有問題嗎?
<button onclick="change();" id="button2">Click!</button>
這在我的CSS
#button2
{
width: 200px;
height: 200px;
}
該按鈕會出現在我的電腦上的200×200,但似乎錯在我的iPhone。爲什麼是這樣?我已經使用這個代碼之前,沒有問題
我在我的身體這段代碼,iphone上的按鈕有問題嗎?
<button onclick="change();" id="button2">Click!</button>
這在我的CSS
#button2
{
width: 200px;
height: 200px;
}
該按鈕會出現在我的電腦上的200×200,但似乎錯在我的iPhone。爲什麼是這樣?我已經使用這個代碼之前,沒有問題
試試這個
#button2
{
width: 200px;
height: 200px;
display: block;
}
被包裹在一個塊級元素的按鈕? –