book download link

本文推荐了一个提供大量免费英文编程书籍下载的网站,对于希望获取免费资源的学习者来说是个不错的选择。
html打开网址<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>纸质图书采购海报</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Microsoft YaHei', sans-serif; } body { background-color: #f5f5f5; display: flex; flex-direction: column; align-items: center; padding: 20px; min-height: 100vh; } .container { max-width: 1000px; width: 100%; margin: 0 auto; } .poster { width: 100%; height: 500px; background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); overflow: hidden; position: relative; margin-bottom: 30px; } .book-stack { position: absolute; bottom: 0; width: 100%; height: 200px; display: flex; justify-content: center; } .book { width: 60px; height: 180px; background: #fff; margin: 0 5px; border-radius: 3px; position: relative; transform: translateY(200px); animation: bookRise 1s forwards; box-shadow: 0 5px 15px rgba(0,0,0,0.2); } .book:nth-child(1) { background: #F8BBD0; animation-delay: 0.2s; } .book:nth-child(2) { background: #C5E1A5; animation-delay: 0.4s; } .book:nth-child(3) { background: #B3E5FC; animation-delay: 0.6s; } .book:nth-child(4) { background: #FFF9C4; animation-delay: 0.8s; } .book:nth-child(5) { background: #D7CCC8; animation-delay: 1.0s; } .book:nth-child(6) { background: #FFCCBC; animation-delay: 1.2s; } .book:nth-child(7) { background: #E1BEE7; animation-delay: 1.4s; } .book-spine { position: absolute; left: 0; top: 0; width: 10px; height: 100%; background: rgba(0, 0, 0, 0.1); } .title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 60px; font-weight: bold; text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3); letter-spacing: 5px; text-align: center; } .subtitle { position: absolute; top: 65%; left: 50%; transform: translateX(-50%); color: #fff; font-size: 24px; opacity: 0.9; letter-spacing: 2px; } .pages { position: absolute; right: 10px; top: 10px; width: 40px; height: 30px; background: #fff; border-radius: 2px; opacity: 0.7; } .download-btn { background-color: #8B4513; color: white; border: none; padding: 15px 40px; font-size: 18px; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3); margin-top: 20px; } .download-btn:hover { background-color: #A0522D; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4); } .download-btn:active { transform: translateY(0); } @keyframes bookRise { to { transform: translateY(0); } } @media (max-width: 768px) { .poster { height: 400px; } .title { font-size: 40px; } .subtitle { font-size: 18px; } .book { width: 40px; height: 150px; } } </style> </head> <body> <div class="container"> <div class="poster" id="poster"> <div class="title">纸质图书采购</div> <div class="subtitle">知识的传承 · 阅读的质感</div> <div class="book-stack"> <div class="book"><div class="book-spine"></div></div> <div class="book"><div class="book-spine"></div></div> <div class="book"><div class="book-spine"></div></div> <div class="book"><div class="book-spine"></div></div> <div class="book"><div class="book-spine"></div></div> <div class="book"><div class="book-spine"></div></div> <div class="book"><div class="book-spine"></div></div> </div> <div class="pages"></div> </div> <button class="download-btn" id="downloadBtn">下载海报</button> </div> <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script> <script> document.getElementById('downloadBtn').addEventListener('click', function() { html2canvas(document.getElementById('poster')).then(function(canvas) { const link = document.createElement('a'); link.download = '纸质图书采购海报.png'; link.href = canvas.toDataURL('image/png'); link.click(); }); }); </script> </body> </html>
09-06
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值