js+css实现一个可调设置专业提词器代码
代码语言:html
所属分类:其他
代码描述:js+css实现一个可调设置专业提词器代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>专业提词器</title> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c); color: #fff; height: 100vh; overflow: hidden; display: flex; flex-direction: column; } .header { text-align: center; padding: 15px; background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .header h1 { font-size: 1.8rem; margin-bottom: 5px; } .header p { opacity: 0.8; font-size: 0.9rem; } .container { display: flex; flex: 1; padding: 15px; gap: 15px; } @media (max-width: 768px) { .container { flex-direction: column; } } .teleprompter-container { flex: 1; background: rgba(0, 0, 0, 0.7); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); position: relative; overflow: hidden; } .teleprompter-content { flex: 1; overflow: hidden; position: relative; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(0, 0, 0, 0.5); } .teleprompter-text { position: absolute; width: 100%; padding: 30px; line-height: 1.8; text-align: center; transition: transform 0.3s ease; } .controls { width: 300px; background: rgba(0, 0, 0, 0.7); border-radius: 12px; padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 20px; } @media (max-width: 768px) { .controls { width: 100%; } } .control-group { background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 15px; } .control-group h3 { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; } .control-item { margin-bottom: 15px; } .control-item label { display: block; margin-bottom: 8px; font-size: 0.9rem; opacity: 0.9; } .slider-container { display: flex; align-items: center; gap: 10px; } .slider-container input[type="range"] { flex: 1; height: 6px; -webkit-appearance: none; background: rgba(255, 255, 255, 0.2); border-radius: 3px; outline: none; } .slider-container input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #4e89ff; cursor: pointer; box-shadow: 0 0 10px rgba(78, 137, 255, 0.7); } .slider-value {.........完整代码请登录后点击上方下载按钮下载查看
网友评论0