
html:
<a href="你要跳转页面的url" class="btn_a">按钮</a>
CSS:
.btn_a{width:100pxheight:30pxline-height:30pxcolor:#fffbackground-color:#d0af61display:block}
<button onclick="var p=location.pathname.split('/')var f=p[p.length-1]location.href=location.href.replace(f,'en/'+f)">英文版</button>欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)