本文章操作云端与本地通用,请熟知。
本文章讲诉通过词库代码 ,写入HTML代码进行执行函数截图教程
html渲染词库样例
AA B:今晚吃什么好啊~~ A:HTML=>> <!--长度:800--> <!--宽度:600--> <!--传递参数:av=NIHAO--> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>卡片页面</title> <style> body { margin: 0; font-family: Arial, sans-serif; background: linear-gradient(to bottom right, #a0eaff, #fdbbfe); display: flex; justify-content: center; align-items: center; height: 100vh; } .card { background: white; border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 40px; width: 550px; text-align: center; } .profile-pic { width: 120px; height: 120px; border-radius: 50%; border: 2px solid white; margin: 0 auto 20px; } .username { font-size: 22px; font-weight: bold; margin-bottom: 20px; } .quote { font-size: 20px; color: #333; margin-bottom: 20px; } .footer { font-size: 18px; color: #888; margin-bottom: 20px; } .button { background: #ff7f50; color: white; border: none; border-radius: 20px; padding: 15px 30px; font-size: 20px; cursor: pointer; } </style> </head> <body> <div> <img src="https://clrvai.com/Image_557626462659936.jpg" alt="Profile Picture"> <div>小测</div> <div> “%B%” </div> <div> —— 321立正!!!<br>2024/11·2 </div> <button>换一签</button> </div> </body> </html> <<=HTML C:$JSON€%A%€[url]$ ±img=%C%±长度 高度 传入参数(可以不动) 高度 长度是可以改变图片大小幅度的
参考2
CC O:测试月 A:HTML=>> <!DOCTYPE html> <!--长度:800--> <!--宽度:600--> <!--传递参数:av=NIHAO--> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>动态日历</title> <style> body { font-family: 'Arial', sans-serif; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; min-height: 500px; /* 页面高度设置为500px */ background-image: url('https://picture.gptkong.com/20241101/14374d17d903a3413abf2910996e48c8b5.jpg'); /* 设置背景图片 */ background-size: cover; /* 覆盖整个页面 */ background-position: center; /* 居中显示 */ color: #fff; /* 设置字体颜色为白色,以便在图片背景上可见 */ } .calendar { width: 100%; max-width: 400px; border-radius: 5px; box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* 轻微调整以适应深色背景 */ overflow: hidden; background: rgba(255, 255, 255, 0.1); /* 轻微的白色背景以增加对比度 */ } .calendar-header { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; } .month-year { font-size: 24px; font-weight: bold; } .weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 10px; } .weekday { font-size: 18px; font-weight: bold; } .calendar-body { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; } .day { padding: 10px; font-size: 18px; } .today { background: rgba(255, 255, 255, 0.5); border-radius: 5px; } </style> </head> <body> <div> <div> <div id="monthYear"></div> </div> <div> <div>日</div> <div>一</div> <div>二</div> <div>三</div> <div>四</div> <div>五</div> <div>六</div> </div> <div id="calendarBody"></div> </div> <script> const monthNames = ["1%O%", "2%O%", "3%O%", "4%O%", "5%O%", "6%O%", "7%O%", "8%O%", "9%O%", "10%O%", "11%O%", "12%O%" ]; let currentDate = new Date(); let currentYear = currentDate.getFullYear(); let currentMonth = currentDate.getMonth(); function updateCalendar() { const firstDay = new Date(currentYear, currentMonth, 1); const lastDay = new Date(currentYear, currentMonth + 1, 0); const daysInMonth = lastDay.getDate(); const dateString = firstDay.toLocaleDateString('en-US', { weekday: 'long' }); const dayOfWeek = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'].indexOf(dateString); const calendarBody = document.getElementById('calendarBody'); calendarBody.innerHTML = ''; document.getElementById('monthYear').textContent = `${currentYear} ${monthNames[currentMonth]}`; let day = 1; for (let i = 0; i < 6; i++) { for (let j = 0; j < 7; j++) { if (i === 0 && j < dayOfWeek) { calendarBody.innerHTML += '<div></div>'; } else if (day > daysInMonth) { break; } else { const dayDiv = document.createElement('div'); dayDiv.textContent = day; dayDiv.className = 'day'; if (day === currentDate.getDate() && currentMonth === new Date().getMonth() && currentYear === new Date().getFullYear()) { dayDiv.classList.add('today'); } calendarBody.appendChild(dayDiv); day++; } } } } updateCalendar(); </script> </body> </html> <<=HTML ±img=@A[url]±%O%