帮写html代码适用于PC和任何手机跳转qq添加好友界面的实例
<!DOCTYPE html>
<html>
<head>
<title>Add QQ Friend</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
}
<pre><code> h1 {
text-align: center;
margin-top: 50px;
}
.container {
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.btn {
display: inline-block;
background-color: #0e76a8;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
margin: 20px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #0a5f86;
}
</style>
</code></pre>
</head>
<body>
<h1>Add QQ Friend</h1>
<div class="container">
<p>To add me on QQ, please click the button below:</p>
<a href="mqqwpa://im/chat?chat_type=wpa&uin=123456789&version=1" class="btn">Add on QQ</a>
</div>
</body>
</html>
<p>注:请将上面代码中的 "uin=123456789" 替换为你的 QQ 号。</p>
原文地址: http://www.cveoy.top/t/topic/bApV 著作权归作者所有。请勿转载和采集!