使用padding-top:(percentage)实现响应式背景图片

本文介绍了一种使用CSS padding-top属性实现响应式背景图片的方法,通过保持图片的宽高比,确保图片在不同设备上都能良好展示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 我门都知道,处理在响应性布局的时候,背景图片都是等比例缩放,比如上面的使用图片的情况,使用<img /> 引入的图片的话,那么设置她们的width属性为100%;<img src=”” width=”100%”/> 的话,高度就会等比例缩放,这是图片,但是如果是背景图片呢?我门之前的项目中的常见的做法是根据css3媒体查询的方法来做的,根据不同手机的分辨率等不同,来等比例缩放背景图的高度,虽然这种方式是可以解决问题的,但是这种通过人肉的方式来进行设置并不好,也很繁琐,今天我门来学习使用padding-top这么一个属性来设置了;

实现的基本原理:将使用到保持元素的宽高比的技巧,为元素添加垂直方向的padding-top的值,使用百分比的形式,这个值是相对于元素的宽而定的,比如我上面的一张图片的宽度是1024px,高度为316px;那么现在的

padding-top = (高度 / 宽度 )* 100% = (316 / 1024)* 100% =  30.85%;

但是仅仅对图片高度和宽度缩放的放还不够,我门还必须添加 background-size:cover, 使这个属性让背景铺满元素的,但是IE8及以下不支持该属性,因此为了兼容IE下面的浏览器,我门还需要再加一个属性 background-position: center ; 同时我门也要保证 图片的宽度最大等于父容器的宽度;因此下面的HTML代码如下:

背景图片需要宽度,padding-top 设置成 百分比  就是提供类似宽度百分比的设置

样式
<style>
.column{
/*max-width: 1024px;*/
}
.figure {
padding-top:11.63%; /* 316 / 1024 */
background: url("img/1.png") no-repeat;
background-size:cover;
background-position:center;
}
</style>


html
<h3>使用padding-top实现响应性图片(图片的宽度是1024px,高度是316px)</h3>
<div class="column">
<div class="figure"></div>
</div>

转载于:https://www.cnblogs.com/itliulei/p/9252434.html

body { padding: 0; margin: 0 } #unity-container { position: absolute } #unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) } #unity-container.unity-mobile { position: fixed; width: 100%; height: 100% } #unity-canvas { background: {{{ BACKGROUND_COLOR }}} } .unity-mobile #unity-canvas { width: 100%; height: 100% } #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none } #unity-logo { width: 154px; height: 130px; background: url('webgl-logo.png') no-repeat center } #unity-progress-bar-empty { width: 1000px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('frame_gaojing_nomal@2x.png') no-repeat center } #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center } #unity-footer { position: relative } .unity-mobile #unity-footer { display: none } #unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px } #unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center } #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }我需要#unity-logo { width: 154px; height: 130px; background: url('webgl-logo.png') no-repeat center }这个logo在应用中间 然后#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }这个进度会从0到100加载 不是一整条过去显示
08-08
body { padding: 0; margin: 0 } #unity-container { position: absolute } #unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) } #unity-container.unity-mobile { position: fixed; width: 100%; height: 100% } #unity-canvas { background: {{{ BACKGROUND_COLOR }}} } .unity-mobile #unity-canvas { width: 100%; height: 100% } #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none } #unity-logo { width: 500px; height:600px; background: url(''logo.png'') no-repeat center } #unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } #unity-footer { position: relative } .unity-mobile #unity-footer { display: none } #unity-webgl-logo { float:left; width: 500px; height: 100px; background: url('logo.png') no-repeat center } #unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px } #unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center } #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none } 做自适应全屏显示 修改进度条长度和logo图片 进度条自适应 留个修改进度条图片和logo图片的地方
08-08
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>双色球数据分析与预测</title> <link rel="stylesheet" href="https://s2.ssl.qhres2.com/static/56662140ef7d5d03.css"> <link rel="stylesheet" href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-100-M/font-awesome/6.0.0/css/all.min.css"> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <style> :root { --primary-white: #f9f9f9; --primary-green: #8daa92; --primary-dark: #333333; --primary-gray: #666666; --accent-green: #5a8f6a; --shadow-light: rgba(0, 0, 0, 0.05); --shadow-medium: rgba(0, 0, 0, 0.1); --red-ball: #e74c3c; --blue-ball: #3498db; } body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background-color: var(--primary-white); color: var(--primary-dark); line-height: 1.6; margin: 0; padding: 0; min-height: 100vh; display: flex; flex-direction: column; } .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; } header { background-color: var(--primary-white); padding: 2rem 0; border-bottom: 1px solid var(--shadow-light); position: relative; overflow: hidden; } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.8rem; font-weight: bold; color: var(--accent-green); display: flex; align-items: center; } .logo i { margin-right: 0.5rem; color: var(--primary-green); } nav ul { display: flex; list-style: none; gap: 2rem; } nav a { text-decoration: none; color: var(--primary-gray); font-weight: 500; transition: color 0.3s; position: relative; } nav a:hover { color: var(--accent-green); } nav a::after { content: ""; position: absolute; bottom: -0.5rem; left: 0; width: 0; height: 2px; background-color: var(--accent-green); transition: width 0.3s; } nav a:hover::after { width: 100%; } .hero { text-align: center; padding: 4rem 0; margin-bottom: 3rem; } .hero h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary-dark); font-weight: 600; } .hero p { font-size: 1.2rem; color: var(--primary-gray); max-width: 800px; margin: 0 auto 2rem; } .section-title { font-size: 2rem; margin-bottom: 2rem; color: var(--accent-green); position: relative; display: inline-block; } .section-title::after { content: ""; position: absolute; bottom: -0.5rem; left: 0; width: 60%; height: 2px; background-color: var(--primary-green); } .chart-container { background-color: white; border-radius: 0.5rem; box-shadow: 0 4px 6px var(--shadow-light); padding: 2rem; margin-bottom: 3rem; transition: transform 0.3s, box-shadow 0.3s; } .chart-container:hover { transform: translateY(-5px); box-shadow: 0 10px 15px var(--shadow-medium); } .data-section { padding: 3rem 0; } .data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; } .data-card { background-color: white; border-radius: 0.5rem; box-shadow: 0 4px 6px var(--shadow-light); padding: 1.5rem; transition: all 0.3s ease; } .data-card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px var(--shadow-medium); } .card-title { font-size: 1.25rem; color: var(--accent-green); margin-bottom: 1rem; display: flex; align-items: center; } .card-title i { margin-right: 0.5rem; } .prediction-section { background: linear-gradient(135deg, #f8fff9 0%, #e6f7e9 100%); border-left: 4px solid var(--accent-green); padding: 2rem; margin: 2rem 0; border-radius: 0 0.5rem 0.5rem 0; } .number-balls { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0; justify-content: center; } .ball { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s; } .ball:hover { transform: scale(1.1); } .red-ball { background: radial-gradient(circle at 30% 30%, var(--red-ball), #c0392b); } .blue-ball { background: radial-gradient(circle at 30% 30%, var(--blue-ball), #2980b9); } .probability-bars { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; } .probability-item { display: flex; align-items: center; } .number-label { width: 30px; text-align: center; font-weight: bold; } .bar-container { flex-grow: 1; height: 24px; background-color: #e0e0e0; border-radius: 12px; overflow: hidden; margin: 0 1rem; } .bar-fill { height: 100%; border-radius: 12px; transition: width 1s ease-out; } .red-fill { background: linear-gradient(to right, #f5b7b1, var(--red-ball)); } .blue-fill { background: linear-gradient(to right, #aed6f1, var(--blue-ball)); } .percentage { width: 50px; text-align: right; font-weight: 500; } .prediction-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; } .btn { padding: 0.8rem 1.5rem; border-radius: 50px; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; } .btn i { margin-right: 0.5rem; } .btn-primary { background: linear-gradient(to right, var(--primary-green), var(--accent-green)); color: white; } .btn-outline { background: transparent; border: 2px solid var(--accent-green); color: var(--accent-green); } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px var(--shadow-medium); } .disclaimer { font-size: 0.9rem; color: var(--primary-gray); margin-top: 2rem; text-align: center; font-style: italic; } footer { background-color: var(--primary-dark); color: white; padding: 3rem 0; margin-top: auto; } @media (max-width: 768px) { .header-content { flex-direction: column; gap: 1rem; } nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; } .ball { width: 42px; height: 42px; font-size: 1rem; } } </style> </head> <body> <header> <div class="container"> <div class="header-content"> <div class="logo"> <i class="fas fa-chart-line"></i> 双色球数据分析 </div> <nav> <ul> <li><a href="#"><i class="fas fa-home"></i> 首页</a></li> <li><a href="#"><i class="fas fa-history"></i> 历史数据</a></li> <li><a href="#"><i class="fas fa-calculator"></i> 概率分析</a></li> <li><a href="#"><i class="fas fa-magic"></i> 号码预测</a></li> <li><a href="#"><i class="fas fa-question-circle"></i> 帮助</a></li> </ul> </nav> </div> </div> </header> <main class="container"> <section class="hero"> <h1>双色球数据分析与预测系统</h1> <p>基于历史数据分析和概率模型,提供科学的双色球号码预测服务</p> </section> <section class="data-section"> <h2 class="section-title">下期号码预测</h2> <div class="prediction-section"> <h3>第2025091期预测号码</h3> <p>根据历史数据和算法模型生成的推荐号码(更新于2025年8月10日)</p> <div class="number-balls"> <div class="ball red-ball">03</div> <div class="ball red-ball">11</div> <div class="ball red-ball">17</div> <div class="ball red-ball">22</div> <div class="ball red-ball">28</div> <div class="ball red-ball">31</div> <div class="ball blue-ball">09</div> </div> <div class="prediction-actions"> <button class="btn btn-primary"> <i class="fas fa-sync-alt"></i> 重新生成 </button> <button class="btn btn-outline"> <i class="fas fa-download"></i> 保存号码 </button> </div> </div> <div class="chart-container"> <h3><i class="fas fa-fire"></i> 红球热号分析</h3> <canvas id="redBallChart"></canvas> </div> <div class="chart-container"> <h3><i class="fas fa-snowflake"></i> 蓝球冷号分析</h3> <canvas id="blueBallChart"></canvas> </div> <div class="data-grid"> <div class="data-card"> <h3 class="card-title"><i class="fas fa-star"></i> 高频红球</h3> <div class="probability-bars"> <!-- 红球概率条 --> <div class="probability-item"> <div class="number-label">08</div> <div class="bar-container"> <div class="bar-fill red-fill" style="width: 78%"></div> </div> <div class="percentage">78%</div> </div> <div class="probability-item"> <div class="number-label">17</div> <div class="bar-container"> <div class="bar-fill red-fill" style="width: 72%"></div> </div> <div class="percentage">72%</div> </div> <div class="probability-item"> <div class="number-label">22</div> <div class="bar-container"> <div class="bar-fill red-fill" style="width: 68%"></div> </div> <div class="percentage">68%</div> </div> </div> </div> <div class="data-card"> <h3 class="card-title"><i class="fas fa-tint"></i> 蓝球概率</h3> <div class="probability-bars"> <!-- 蓝球概率条 --> <div class="probability-item"> <div class="number-label">09</div> <div class="bar-container"> <div class="bar-fill blue-fill" style="width: 65%"></div> </div> <div class="percentage">65%</div> </div> <div class="probability-item"> <div class="number-label">05</div> <div class="bar-container"> <div class="bar-fill blue-fill" style="width: 58%"></div> </div> <div class="percentage">58%</div> </div> <div class="probability-item"> <div class="number-label">12</div> <div class="bar-container"> <div class="bar-fill blue-fill" style="width: 52%"></div> </div> <div class="percentage">52%</div> </div> </div> </div> </div> <p class="disclaimer"> <i class="fas fa-exclamation-triangle"></i> 免责声明:本预测基于历史数据分析,不保证中奖概率。彩票有风险,投注需谨慎。 </p> </section> </main> <footer> <div class="container"> <p>© 2023 双色球数据分析系统 | 数据仅供参考</p> </div> </footer> <script> // 红球图表数据 const redBallData = { labels: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33'], datasets: [{ label: '出现频率', data: [12, 18, 22, 15, 19, 14, 20, 28, 16, 13, 25, 17, 11, 19, 16, 14, 26, 15, 18, 12, 17, 24, 16, 13, 19, 15, 20, 23, 14, 17, 21, 16, 12], backgroundColor: '#e74c3c', borderColor: '#c0392b', borderWidth: 1 }] }; // 蓝球图表数据 const blueBallData = { labels: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16'], datasets: [{ label: '出现频率', data: [8, 10, 7, 9, 14, 6, 11, 9, 13, 7, 8, 12, 5, 9, 11, 10], backgroundColor: '#3498db', borderColor: '#2980b9', borderWidth: 1 }] }; // 图表配置 const chartConfig = { type: 'bar', options: { responsive: true, scales: { y: { beginAtZero: true, title: { display: true, text: '出现次数' } } }, plugins: { legend: { display: false } } } }; // 初始化图表 window.onload = function() { const redCtx = document.getElementById('redBallChart').getContext('2d'); new Chart(redCtx, { ...chartConfig, data: redBallData }); const blueCtx = document.getElementById('blueBallChart').getContext('2d'); new Chart(blueCtx, { ...chartConfig, data: blueBallData }); // 添加动画效果 document.querySelectorAll('.ball').forEach(ball => { ball.style.animation = 'popIn 0.6s ease-out'; }); }; // 重新生成按钮功能 document.querySelector('.btn-primary').addEventListener('click', function() { const balls = document.querySelectorAll('.ball'); // 添加消失动画 balls.forEach(ball => { ball.style.animation = 'popOut 0.4s forwards'; }); // 延迟后生成新号码 setTimeout(() => { generateNewNumbers(); balls.forEach(ball => { ball.style.animation = 'popIn 0.6s forwards'; }); }, 500); }); // 生成预测号码 function generateNewNumbers() { const redBalls = []; const blueBall = Math.floor(Math.random() * 16) + 1; // 生成6个不重复的红球 while(redBalls.length < 6) { const num = Math.floor(Math.random() * 33) + 1; if(!redBalls.includes(num)) { redBalls.push(num); } } // 排序红球 redBalls.sort((a, b) => a - b); // 更新显示 const ballElements = document.querySelectorAll('.ball'); for(let i = 0; i < 6; i++) { ballElements[i].textContent = redBalls[i].toString().padStart(2, '0'); } ballElements.textContent = blueBall.toString().padStart(2, '0'); } </script> </body> </html> 以上内容由AI搜集并生成,仅供参考
08-10
<template> <div class="quiz-container"> <div class="quiz-info"> <h1>知识问答挑战</h1> <div class="question-number">题目 {{ currentQuestionIndex + 1 }}/{{ totalQuestions }}</div> </div> <div class="progress-bar"> <div class="progress" :style="{width: progressWidth}"></div> </div> <!-- 核心:只渲染3个主要DOM元素 --> <!-- 1. 题目容器 --> <div class="question-container" v-once> <h2 class="question-title">{{ currentQuestion.text }}</h2> </div> <!-- 2. 选项容器 --> <div class="options-container"> <div v-for="(option, index) in currentQuestion.options" :key="index" class="option" :class="{selected: selectedOption === index}" @click="selectOption(index)" > <input type="radio" :id="'option'+index" :value="index" :checked="selectedOption === index" > <label :for="'option'+index"> <strong>{{ String.fromCharCode(65 + index) }}.</strong> {{ option.text }} </label> </div> </div> <!-- 3. 导航按钮容器 --> <div class="nav-buttons"> <button class="nav-btn prev-btn" :disabled="currentQuestionIndex === 0" @click="prevQuestion" > ← 上一题 </button> <div class="counter">已答:{{ answeredCount }}/{{ totalQuestions }}</div> <button class="nav-btn next-btn" :disabled="selectedOption === null" @click="nextQuestion" > {{ isLastQuestion ? '完成答题' : '下一题 →' }} </button> </div> </div> </div> </template> <script> export default { data: { questions: this.generateQuestions(50), currentQuestionIndex: 0, selectedOption: null, userAnswers: [], totalQuestions: 50 }, computed: { // 当前问题数据 currentQuestion() { return this.questions[this.currentQuestionIndex]; }, // 进度条宽度 progressWidth() { return `${((this.currentQuestionIndex + 1) / this.totalQuestions) * 100}%`; }, // 是否为最后一题 isLastQuestion() { return this.currentQuestionIndex === this.totalQuestions - 1; }, // 已答题目数量 answeredCount() { return this.userAnswers.filter(answer => answer !== null).length; } }, methods: { // 生成模拟题目数据 generateQuestions(count) { const questions = []; const topics = ['JavaScript', 'CSS', 'HTML', 'Vue.js', 'React', 'Node.js', 'HTTP协议', '算法']; const difficulty = ['简单', '中等', '困难']; for (let i = 0; i < count; i++) { const topic = topics[Math.floor(Math.random() * topics.length)]; const diff = difficulty[Math.floor(Math.random() * difficulty.length)]; questions.push({ id: i + 1, text: `以下关于${topic}的叙述中,哪项是${diff}级的知识点?`, options: [ { text: '正确选项', value: true }, { text: '干扰选项1', value: false }, { text: '干扰选项2', value: false }, { text: '干扰选项3', value: false } ] }); } return questions; }, // 选择选项 selectOption(index) { this.selectedOption = index; }, // 上一题 prevQuestion() { if (this.currentQuestionIndex > 0) { this.currentQuestionIndex--; // 恢复用户之前的选择(如果有) this.selectedOption = this.userAnswers[this.currentQuestionIndex]; } }, // 下一题 nextQuestion() { // 保存用户答案 this.userAnswers[this.currentQuestionIndex] = this.selectedOption; if (!this.isLastQuestion) { this.currentQuestionIndex++; // 重置选择状态,如果之前有答案则恢复 this.selectedOption = this.userAnswers[this.currentQuestionIndex] || null; } else { // 最后一题完成 this.showResults(); } }, // 显示结果 showResults() { const correctCount = this.userAnswers.reduce((count, selected, index) => { return count + (selected !== null && this.questions[index].options[selected].value ? 1 : 0); }, 0); alert(`答题完成!\n共答对 ${correctCount} 题\n正确率: ${(correctCount/this.totalQuestions*100).toFixed(1)}%`); // 重置测试 this.currentQuestionIndex = 0; this.userAnswers = []; this.selectedOption = null; } } } </script> <style> * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Microsoft YaHei', sans-serif; } body { background-color: #f5f7fa; padding: 20px; } .quiz-container { max-width: 800px; margin: 0 auto; background-color: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); overflow: hidden; padding: 25px; position: relative; } .progress-bar { height: 8px; background-color: #e9ecef; border-radius: 4px; margin-bottom: 25px; position: relative; overflow: hidden; } .progress { height: 100%; background: linear-gradient(90deg, #4c6ef5, #228be6); transition: width 0.4s ease; } .question-container { background-color: #f8f9fa; border-radius: 8px; padding: 20px; margin-bottom: 25px; min-height: 150px; transition: all 0.4s ease; } .question-title { font-size: 18px; color: #343a40; line-height: 1.6; margin-bottom: 20px; } .options-container { display: flex; flex-direction: column; gap: 15px; } .option { display: flex; align-items: center; background: white; border: 2px solid #e9ecef; border-radius: 8px; padding: 14px 20px; cursor: pointer; transition: all 0.2s; } .option:hover { background-color: #f1f3f5; border-color: #ced4da; } .option.selected { background-color: #edf2ff; border-color: #4c6ef5; } .option input { margin-right: 15px; cursor: pointer; } .option label { cursor: pointer; font-size: 16px; color: #495057; flex-grow: 1; } .nav-buttons { display: flex; justify-content: space-between; align-items: center; } .nav-btn { padding: 12px 25px; background-color: #4263eb; color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } .nav-btn:hover { background-color: #3b5bdb; transform: translateY(-2px); } .nav-btn:disabled { background-color: #adb5bd; cursor: not-allowed; transform: none; } .prev-btn { background-color: #868e96; } .prev-btn:hover { background-color: #495057; } .counter { font-size: 15px; color: #868e96; } .quiz-info { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; } .question-number { font-weight: bold; color: #4263eb; font-size: 16px; } </style> 修改一下
06-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值