iphone上的按钮有问题



我的身体里有这个代码,

<button onclick="change();" id="button2">Click!</button>

这个在我的css 中

#button2
{
width: 200px;
height: 200px;
}

该按钮在我的电脑上显示为200x200,但在我的iphone上显示错误。为什么会这样?我以前使用过这个代码,没有问题

试试这个

#button2
{
width: 200px;
height: 200px;
display: block;
}

最新更新