PHP 点击按钮跳转链接 - 蓝色按钮实现
可以使用以下代码实现点击按钮跳转链接的功能:
<!DOCTYPE html>
<html>
<head>
<style>
.button {
background-color: blue;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
</head>
<body>
<button class='button' onclick='window.location.href='http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=tPp_EPr0-kur27u9qT5puLLhIF_HLnb1&authKey=u6KzqRxk7OWCIgIYAaH7a0bdJ82X24hkEsr3dNFW7gaYinVCKJbLQEaQ2iY9nszB&noverify=0&group_code=652597887''>跳转链接</button>
</body>
</html>
这段代码会生成一个蓝色的按钮,点击按钮后会跳转到指定的链接。
原文地址: https://www.cveoy.top/t/topic/nxmN 著作权归作者所有。请勿转载和采集!