1.设置UIButton的文字居右显示 [button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight]; 2.去掉点击默认置灰效果 [button setAdjustsImageWhenHighlighted:NO]; // default is YES. if YES, image is drawn darker when highlighted(pressed)
<script> document.addEventListener("mouseup", upHandler, true); function upHandler(e){ var target=undefined; //元素类型即BUTTON if(e.target.tagName=='BUTTON'||(e.target.type!=undefined&&e.target.type.toUpperCase()=="BUTTON"))