HMTL中用图片当按钮

xiaoxiao2021-02-28  124

有CSS把图片设为按钮背景就可以了 例: <input name="" type="button" style=" width:10px; height:10px; border:0; background:url(图片路径) no-repeat left top" /> 把按钮的宽高设的和图片一样 给按钮定义个clss比较好,可以重复利用,减少垃圾代码
转载请注明原文地址: https://www.6miu.com/read-96659.html

最新回复(0)