<!DOCTYPE html>
<html>
<head>
    <title>人物介绍</title>
    <style>
        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            font-family: Arial, sans-serif;
        }
<pre><code>    .avatar {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .btn:hover {
        background-color: #45a049;
    }
&lt;/style&gt;
&lt;script&gt;
    function showQQ() {
        var qq = document.getElementById(&quot;qq&quot;);
        qq.style.visibility = &quot;visible&quot;;
    }
    
    function showEmail() {
        var email = document.getElementById(&quot;email&quot;);
        email.style.visibility = &quot;visible&quot;;
    }
&lt;/script&gt;
</code></pre>
</head>
<body>
    <div class="container">
        <div class="avatar">
            <img src="avatar.jpg" alt="Avatar">
        </div>
        <div class="info">
            <h2>人物性别:男</h2>
            <h2>人物名称:张三</h2>
        </div>
        <button class="btn" onclick="showQQ()">显示QQ号码</button>
        <button class="btn" onclick="showEmail()">显示邮箱地址</button>
        <div id="qq" style="visibility: hidden;">
            <h3>人物QQ号:123456789</h3>
        </div>
        <div id="email" style="visibility: hidden;">
            <h3>人物邮箱:zhangsan@example.com</h3>
        </div>
    </div>
</body>
</html
请帮我写一个介绍人物的网页要求有:互动要有动效要介绍这几个:人物性别 人物名称 人物QQ号 人物邮箱

原文地址: https://www.cveoy.top/t/topic/hVYZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录