<!DOCTYPE html>
<html>
<head>
	<title>产品介绍</title>
	<style>
		body {
			font-family: Arial, sans-serif;
			background-color: #f2f2f2;
			padding: 20px;
			text-align: center;
		}
<pre><code>	h1 {
		color: #333;
		font-size: 36px;
		margin-bottom: 20px;
	}

	p {
		color: #666;
		font-size: 18px;
		line-height: 1.5;
		margin-bottom: 30px;
	}

	.price {
		color: #ff6600;
		font-size: 24px;
		font-weight: bold;
		margin-bottom: 20px;
	}

	.usage {
		color: #666;
		font-size: 18px;
		margin-bottom: 30px;
	}

	.contact {
		font-size: 20px;
		margin-bottom: 30px;
	}

	.contact a {
		color: #ff6600;
		text-decoration: none;
	}

	.contact a:hover {
		text-decoration: underline;
	}

	.btn {
		display: inline-block;
		padding: 10px 20px;
		background-color: #ff6600;
		color: #fff;
		font-size: 18px;
		border: none;
		border-radius: 5px;
		cursor: pointer;
		margin: 0 10px;
	}

	.qrcode {
		margin-top: 30px;
	}

	.qrcode img {
		width: 200px;
		height: 200px;
	}
&lt;/style&gt;
&lt;script src='https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js'&gt;&lt;/script&gt;
&lt;script&gt;
	$(function() {
		$('.btn-vip').click(function() {
			alert('请添加微信号:ziyuan2319 进行开通');
			$('.qrcode').html('&lt;img src='https://cdn.jsdelivr.net/gh/zhangxinxu/generator/qrcode/generator_qrcode.png' alt='二维码'&gt;');
		});
	});
&lt;/script&gt;
</code></pre>
</head>
<body>
	<h1>产品介绍</h1>
	<p>我们的产品是一款功能强大的工具,可以帮助您轻松完成各种任务。对于会员用户,我们提供更加优惠的价格和更加丰富的功能。</p>
	<div class='price'>会员价格:20元/3天</div>
	<div class='usage'>每天使用次数:300次</div>
	<div class='contact'>如需开通会员,请添加管理员微信:<a href='weixin://'>ziyuan2319</a> 进行开通。</div>
	<button class='btn btn-vip'>开通VIP</button>
	<button class='btn btn-home'>返回主页</button>
	<div class='qrcode'></div>
</body>
</html>
HTML+jQuery实现开通VIP按钮,人性化提示微信号和二维码

原文地址: https://www.cveoy.top/t/topic/jqiQ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录