以下是一个简单的屏幕使用时间程序的HTML界面,包括CSS和JS。界面采用黄色系,使用圆形按钮,并在鼠标悬停时切换颜色。你可以根据需要进行修改和定制。

<!DOCTYPE html>
<html>
<head>
    <title>屏幕使用时间程序</title>
    <style>
        body {
            background-color: #f5f3e7;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }

        h1 {
            color: #ffcc00;
            text-align: center;
        }

        .container {
            display: flex;
            justify-content: center;
            margin-top: 50px;
        }

        .button {
            width: 100px;
            height: 100px;
            background-color: #ffd633;
            border-radius: 50%;
            margin: 0 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .button:hover {
            background-color: #ffcc00;
        }
    </style>
</head>
<body>
    <h1>屏幕使用时间程序</h1>

    <div class="container">
        <div class="button" onclick="openReport()">报告</div>
        <div class="button" onclick="openSettings()">设置</div>
        <div class="button" onclick="openAbout()">关于</div>
    </div>

    <script>
        function openReport() {
            // TODO: 打开报告页面的逻辑
            console.log('打开报告页面');
        }

        function openSettings() {
            // TODO: 打开设置页面的逻辑
            console.log('打开设置页面');
        }

        function openAbout() {
            // TODO: 打开关于页面的逻辑
            console.log('打开关于页面');
        }
    </script>
</body>
</html>

这个界面使用了container类来居中排列按钮,button类定义了按钮的样式,并使用hover伪类来实现鼠标悬停时的颜色切换效果。在每个按钮的onclick属性中,可以添加相应的函数以实现点击按钮后的逻辑。

你可以将以上代码保存为一个HTML文件,然后在浏览器中打开,即可看到这个屏幕使用时间程序的界面

请帮我写一个屏幕使用时间程序的html界面包括css与js该界面主要有几个选项:报告设置关于我希望你尽量把界面做得好看偏黄色系使用圆形按钮按钮呈横向弧形排列把鼠标移上去后有颜色切换

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

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