关于点击按钮后页面自动刷新的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/NewAir1798/article/details/78279920

button:不会自动刷新

image button 和submit会自动刷新


如果想使用图片按钮,但又不想点击按钮后页面自动刷新;那么就用button然后设置按钮的背景图

<input type="button" style="background:url();"/>


如果想使用图片按钮,且允许自动刷新页面可以用

<input type="image" src="" />

猜你喜欢

转载自blog.csdn.net/NewAir1798/article/details/78279920