我来为你设计一个现代化的QQ在线客服浮动窗口,支持随屏滚动显示,这个设计包含了多种QQ联系方式的选项,并且具有良好的用户体验。

网页右侧随屏滚动显示的qq在线客服代码
(图片来源网络,侵删)
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">QQ在线客服 - 随屏滚动</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }
        /* 主要内容区域 */
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        .content-section {
            background: white;
            padding: 40px;
            margin-bottom: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 2.5em;
        }
        p {
            margin-bottom: 15px;
            color: #666;
        }
        /* QQ客服容器 */
        .qq-customer-service {
            position: fixed;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        /* 客服按钮 */
        .qq-button {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
        }
        .qq-button:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }
        .qq-button.qq-primary {
            background: linear-gradient(135deg, #12c2e9 0%, #c471ed 50%, #f64f59 100%);
        }
        .qq-button.qq-work {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .qq-button.qq-group {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }
        /* QQ图标 */
        .qq-icon {
            width: 30px;
            height: 30px;
            fill: white;
        }
        /* 提示文字 */
        .qq-tooltip {
            position: absolute;
            right: 70px;
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            font-size: 14px;
        }
        .qq-tooltip::after {
            content: '';
            position: absolute;
            right: -8px;
            top: 50%;
            transform: translateY(-50%);
            border: 4px solid transparent;
            border-left-color: #333;
        }
        .qq-button:hover .qq-tooltip {
            opacity: 1;
        }
        /* 客服面板 */
        .service-panel {
            position: fixed;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            width: 300px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
        }
        .service-panel.active {
            opacity: 1;
            visibility: visible;
        }
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .panel-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        .close-btn {
            width: 30px;
            height: 30px;
            border: none;
            background: #f0f0f0;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .close-btn:hover {
            background: #e0e0e0;
            transform: rotate(90deg);
        }
        .panel-content {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .contact-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .contact-item:hover {
            background: #e9ecef;
            transform: translateX(-5px);
        }
        .contact-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
        }
        .contact-info h4 {
            margin-bottom: 5px;
            color: #333;
        }
        .contact-info p {
            margin: 0;
            color: #666;
            font-size: 14px;
        }
        /* 响应式设计 */
        @media (max-width: 768px) {
            .qq-customer-service {
                right: 15px;
            }
            .service-panel {
                right: 15px;
                width: calc(100% - 30px);
                max-width: 300px;
            }
            .content-section {
                padding: 20px;
            }
            h1 {
                font-size: 2em;
            }
        }
        /* 动画效果 */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(18, 194, 233, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(18, 194, 233, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(18, 194, 233, 0);
            }
        }
        .qq-button.pulse {
            animation: pulse 2s infinite;
        }
    </style>
</head>
<body>
    <!-- 主要内容区域 -->
    <div class="main-content">
        <div class="content-section">
            <h1>欢迎访问我们的网站</h1>
            <p>这是一个演示QQ在线客服功能的页面,右侧的浮动按钮会随着页面滚动而保持在视窗中。</p>
            <p>您可以点击不同的QQ按钮来联系我们的客服团队,我们提供多种联系方式,包括个人QQ、企业QQ和QQ群。</p>
        </div>
        <div class="content-section">
            <h2>关于我们</h2>
            <p>我们是一家专注于提供优质服务的公司,无论您有任何问题或建议,我们的客服团队都会随时为您提供帮助。</p>
            <p>我们的客服工作时间:周一至周五 9:00-18:00,周末 10:00-17:00。</p>
        </div>
        <div class="content-section">
            <h2>产品介绍</h2>
            <p>我们的产品具有以下特点:</p>
            <ul style="margin-left: 20px; margin-bottom: 20px;">
                <li>高质量的服务保障</li>
                <li>24/7技术支持</li>
                <li>专业的客服团队</li>
                <li>快速响应机制</li>
            </ul>
        </div>
        <div class="content-section">
            <h2>联系方式</h2>
            <p>除了QQ客服,您还可以通过以下方式联系我们:</p>
            <p>电话:400-123-4567
网页右侧随屏滚动显示的qq在线客服代码
(图片来源网络,侵删)