自制的浏览器主页,可以是最简单的桌面应用,可以把它当成备忘录桌面应用

2024-06-24 13:12

本文主要是介绍自制的浏览器主页,可以是最简单的桌面应用,可以把它当成备忘录桌面应用,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

自制的浏览器主页,可以是最简单的桌面应用,可以把它当成备忘录桌面应用。如果你看不懂,请留言。

完整代码:

<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>与妖为邻的备忘录</title><!-- <link rel="stylesheet" href="index.css"> -->
</head>
<style>/* 设置全局样式 */* {margin: 0;padding: 0;box-sizing: border-box;user-select: none;}body {background: #2c3e50;}.divBtn,input,button {color: #d6d301;/* color: hsla(160, 100%, 37%, 1); */text-shadow: 1px 1px 1px #100000;font-weight: bold;cursor: pointer;}li {list-style: none;}/* 设置全局样式 结束*//* 整体布局上下divBox设置 */.divBox {width: 100vw;height: 100vh;display: flex;flex-direction: column;justify-content: space-between;}/* 整体布局上下divBox 结束 *//* 上部页眉header设置 */.header {background-color: #cbcbcba7;width: 100vw;height: 40px;display: flex;justify-content: space-around;align-items: center;font-size: 1.5rem;box-shadow: 0 0 10px rgb(200, 255, 3);&::before {content: "";background-color: #cbcbcb;width: 15px;height: 100%;position: fixed;right: 1px;top: 40px;z-index: 110;box-shadow: 0 0 10px rgb(200, 255, 3);}/* logo */.logo {div {/* 放大镜效果 */transform: scale(1.5);position: fixed;z-index: 99999;top: 10px;left: 30px;}img {float: left;width: 40px;height: 40px;border-radius: 50%;transition: transform 0.3s ease;&:hover {transform: scale(1.2);}}h2 {font-size: 15px;width: 90px;color: azure;background-color: #f30303;border-radius: 50%;box-shadow: inset 4px 4px 4px rgba(255, 255, 255, 0.6), inset -4px -4px 5px rgba(0, 0, 0, 0.6);border: 0px solid black;}.my_name {letter-spacing: -5px;}}/* logo 结束*/#time {background: -webkit-linear-gradient(315deg, #e1ff00 50%, #ff0000);background-clip: text;-webkit-background-clip: text;-webkit-text-fill-color: transparent;font-weight: 900;text-shadow: 2px -1px 8px rgba(250, 80, 193, 0.323);sub {-webkit-text-fill-color: #cfd601;text-shadow: 1px 1px 1px #100000;font-size: 1rem;}}}/* 上部页眉header设置 结束 *//* 下部内容content设置 */.content {width: 100vw;height: 96vh;position: absolute;top: 4%;display: flex;justify-content: center;align-items: center;/* 点击区域设置 */#click-section {width: 8%;height: 100%;position: relative;/* 抽屉盒子设置 */#drawerBoxes {width: 100%;height: 100%;position: relative;overflow: hidden;display: flex;flex-direction: column;justify-content: space-evenly;/* 竖条线设置 */&::before {content: "";width: 15px;height: 100%;position: absolute;z-index: 120;background-color: #cbcbcb;}/* 竖条线设置 结束 */.drawerBox {height: calc(100% / 3.5);width: 120%;position: relative;z-index: 100;transform: translateX(-70%);transition: transform .5s ease-in-out;.drawer-btn {width: 80%;height: 100%;font: 800 80px '';background-color: #cbcbcba7;border: none;transition: background-color .5s ease-in-out;box-shadow: 0 0 10px rgb(200, 255, 3);color: rgb(70, 100, 180);&:hover {cursor: pointer;}.drawer-head {position: absolute;/* 使用渐变背景*//* background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff); *//*将背景剪切成文字的形状*/background-clip: text;-webkit-background-clip: text;/*文字颜色设为透明,使文字与背景融为一体*/-webkit-text-fill-color: transparent;font-size: 100px;font-weight: 900;right: -90px;/* 文本竖排 */writing-mode: vertical-rl;top: calc(50% - 100px);text-shadow: 2px -1px 8px rgba(250, 80, 193, 0.323);}}}.drawerBox.active {transform: translateX(0);}.drawer-btn.active {color: #feee02d7;}/* 抽屉盒子设置 */}/* 点击区域设置 结束 */}#slide-section {position: relative;height: 100%;width: 92%;margin: 0 10px;}/* 分隔线设置 */#slide-bar {position: absolute;left: -10px;height: 100%;width: 2px;background-color: rgb(255, 249, 249);#bar {position: absolute;height: calc(100% / 4);width: 10px;top: 0;left: -1.2px;background: rgb(250, 4, 168);transition: transform .5s ease-in-out;box-shadow:inset 3px 4px 5px rgba(255, 255, 255, 0.6),inset -3px -4px 5px rgba(0, 0, 0, 0.6);border-radius: 10px;}}/* 分隔线 结束设置 *//* 分页设置 */#card-section {height: 100%;width: 90%;overflow: hidden;}}/* 分页设置  结束 *//* 留言板设置 */.centre {width: 85vw;height: 96vh;display: flex;flex-direction: column;justify-content: space-evenly;.displayBtn {display: flex;color: #E6A23C;text-align: center;i {width: 100%;}i:first-of-type {background: #0bb811c9;}.marquee {background: linear-gradient(to right, #4caf4fed, #dc0000cf);color: #f3d303;margin: 0;padding: 0;}/* 删除按钮 */.deleteBtn {color: #f3d303;text-shadow: 1px 1px 1px rgb(0, 0, 0);background: #ff0000;font-weight: bold;cursor: pointer;&:hover {background-color: #f3d303;color: #ff0505;}}}/* 隐藏文本操作窗口开始 */.hidden {background: #2c3e50;box-shadow: 0 0 10px rgba(255, 254, 254, 0.5);display: none;position: fixed;flex-direction: column;transform: translate(10%, 1%);border-radius: 8px;z-index: 9;.Drag {box-shadow: 0 0 10px rgba(93, 93, 93, 0.537);color: #ffffffce;height: 35px;display: flex;justify-content: space-between;font-size: 1.5rem;cursor: move;p {margin: 0 10px;}i {font-style: normal;margin: 0 10px;cursor: pointer;&:hover {color: #f30303;}}}.form {display: flex;flex-direction: column;background-color: rgba(20, 20, 20, 0.5);margin: 10px;padding: 5px;border-radius: 

这篇关于自制的浏览器主页,可以是最简单的桌面应用,可以把它当成备忘录桌面应用的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1090244

相关文章

nginx -t、nginx -s stop 和 nginx -s reload 命令的详细解析(结合应用场景)

《nginx-t、nginx-sstop和nginx-sreload命令的详细解析(结合应用场景)》本文解析Nginx的-t、-sstop、-sreload命令,分别用于配置语法检... 以下是关于 nginx -t、nginx -s stop 和 nginx -s reload 命令的详细解析,结合实际应

PostgreSQL的扩展dict_int应用案例解析

《PostgreSQL的扩展dict_int应用案例解析》dict_int扩展为PostgreSQL提供了专业的整数文本处理能力,特别适合需要精确处理数字内容的搜索场景,本文给大家介绍PostgreS... 目录PostgreSQL的扩展dict_int一、扩展概述二、核心功能三、安装与启用四、字典配置方法

Python中re模块结合正则表达式的实际应用案例

《Python中re模块结合正则表达式的实际应用案例》Python中的re模块是用于处理正则表达式的强大工具,正则表达式是一种用来匹配字符串的模式,它可以在文本中搜索和匹配特定的字符串模式,这篇文章主... 目录前言re模块常用函数一、查看文本中是否包含 A 或 B 字符串二、替换多个关键词为统一格式三、提

Java MQTT实战应用

《JavaMQTT实战应用》本文详解MQTT协议,涵盖其发布/订阅机制、低功耗高效特性、三种服务质量等级(QoS0/1/2),以及客户端、代理、主题的核心概念,最后提供Linux部署教程、Sprin... 目录一、MQTT协议二、MQTT优点三、三种服务质量等级四、客户端、代理、主题1. 客户端(Clien

浏览器插件cursor实现自动注册、续杯的详细过程

《浏览器插件cursor实现自动注册、续杯的详细过程》Cursor简易注册助手脚本通过自动化邮箱填写和验证码获取流程,大大简化了Cursor的注册过程,它不仅提高了注册效率,还通过友好的用户界面和详细... 目录前言功能概述使用方法安装脚本使用流程邮箱输入页面验证码页面实战演示技术实现核心功能实现1. 随机

如何在Mac上彻底删除Edge账户? 手动卸载Edge浏览器并清理残留文件技巧

《如何在Mac上彻底删除Edge账户?手动卸载Edge浏览器并清理残留文件技巧》Mac上的Edge账户里存了不少网站密码和个人信息,结果同事一不小心打开了,简直尴尬到爆炸,想要卸载edge浏览器并清... 如果你遇到 Microsoft Edge 浏览器运行迟缓、频繁崩溃或网页加载异常等问题,可以尝试多种方

Python如何将OpenCV摄像头视频流通过浏览器播放

《Python如何将OpenCV摄像头视频流通过浏览器播放》:本文主要介绍Python如何将OpenCV摄像头视频流通过浏览器播放的问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完... 目录方法1:使用Flask + MJPEG流实现代码使用方法优点缺点方法2:使用WebSocket传输视

CSS中的Static、Relative、Absolute、Fixed、Sticky的应用与详细对比

《CSS中的Static、Relative、Absolute、Fixed、Sticky的应用与详细对比》CSS中的position属性用于控制元素的定位方式,不同的定位方式会影响元素在页面中的布... css 中的 position 属性用于控制元素的定位方式,不同的定位方式会影响元素在页面中的布局和层叠关

SpringBoot3应用中集成和使用Spring Retry的实践记录

《SpringBoot3应用中集成和使用SpringRetry的实践记录》SpringRetry为SpringBoot3提供重试机制,支持注解和编程式两种方式,可配置重试策略与监听器,适用于临时性故... 目录1. 简介2. 环境准备3. 使用方式3.1 注解方式 基础使用自定义重试策略失败恢复机制注意事项

基于Python实现一个简单的题库与在线考试系统

《基于Python实现一个简单的题库与在线考试系统》在当今信息化教育时代,在线学习与考试系统已成为教育技术领域的重要组成部分,本文就来介绍一下如何使用Python和PyQt5框架开发一个名为白泽题库系... 目录概述功能特点界面展示系统架构设计类结构图Excel题库填写格式模板题库题目填写格式表核心数据结构