给按钮添加class属性 myButton
设置css样式
.myButton { background-color: Transparent; border-style: none; //无边框 outline: none; //获得焦点也无边框 }
如果按钮显示不出来了,可以康康是不是字体颜色与背景一样了
按钮效果:
京公网安备 11010502049817号