想要设置按钮背景透明,发现“background:transparent;”无效,后发现需要先设置边框样式,才能其效果。 border:1px; background:transparent; 效果如下: