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

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

相关文章

利用Python操作Word文档页码的实际应用

《利用Python操作Word文档页码的实际应用》在撰写长篇文档时,经常需要将文档分成多个节,每个节都需要单独的页码,下面:本文主要介绍利用Python操作Word文档页码的相关资料,文中通过代码... 目录需求:文档详情:要求:该程序的功能是:总结需求:一次性处理24个文档的页码。文档详情:1、每个

JS纯前端实现浏览器语音播报、朗读功能的完整代码

《JS纯前端实现浏览器语音播报、朗读功能的完整代码》在现代互联网的发展中,语音技术正逐渐成为改变用户体验的重要一环,下面:本文主要介绍JS纯前端实现浏览器语音播报、朗读功能的相关资料,文中通过代码... 目录一、朗读单条文本:① 语音自选参数,按钮控制语音:② 效果图:二、朗读多条文本:① 语音有默认值:②

Java中的分布式系统开发基于 Zookeeper 与 Dubbo 的应用案例解析

《Java中的分布式系统开发基于Zookeeper与Dubbo的应用案例解析》本文将通过实际案例,带你走进基于Zookeeper与Dubbo的分布式系统开发,本文通过实例代码给大家介绍的非常详... 目录Java 中的分布式系统开发基于 Zookeeper 与 Dubbo 的应用案例一、分布式系统中的挑战二

Java 缓存框架 Caffeine 应用场景解析

《Java缓存框架Caffeine应用场景解析》文章介绍Caffeine作为高性能Java本地缓存框架,基于W-TinyLFU算法,支持异步加载、灵活过期策略、内存安全机制及统计监控,重点解析其... 目录一、Caffeine 简介1. 框架概述1.1 Caffeine的核心优势二、Caffeine 基础2

使用Node.js和PostgreSQL构建数据库应用

《使用Node.js和PostgreSQL构建数据库应用》PostgreSQL是一个功能强大的开源关系型数据库,而Node.js是构建高效网络应用的理想平台,结合这两个技术,我们可以创建出色的数据驱动... 目录初始化项目与安装依赖建立数据库连接执行CRUD操作查询数据插入数据更新数据删除数据完整示例与最佳

Python实现简单封装网络请求的示例详解

《Python实现简单封装网络请求的示例详解》这篇文章主要为大家详细介绍了Python实现简单封装网络请求的相关知识,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录安装依赖核心功能说明1. 类与方法概览2.NetHelper类初始化参数3.ApiResponse类属性与方法使用实

PHP应用中处理限流和API节流的最佳实践

《PHP应用中处理限流和API节流的最佳实践》限流和API节流对于确保Web应用程序的可靠性、安全性和可扩展性至关重要,本文将详细介绍PHP应用中处理限流和API节流的最佳实践,下面就来和小编一起学习... 目录限流的重要性在 php 中实施限流的最佳实践使用集中式存储进行状态管理(如 Redis)采用滑动

深入浅出Spring中的@Autowired自动注入的工作原理及实践应用

《深入浅出Spring中的@Autowired自动注入的工作原理及实践应用》在Spring框架的学习旅程中,@Autowired无疑是一个高频出现却又让初学者头疼的注解,它看似简单,却蕴含着Sprin... 目录深入浅出Spring中的@Autowired:自动注入的奥秘什么是依赖注入?@Autowired

Python 基于http.server模块实现简单http服务的代码举例

《Python基于http.server模块实现简单http服务的代码举例》Pythonhttp.server模块通过继承BaseHTTPRequestHandler处理HTTP请求,使用Threa... 目录测试环境代码实现相关介绍模块简介类及相关函数简介参考链接测试环境win11专业版python

PostgreSQL简介及实战应用

《PostgreSQL简介及实战应用》PostgreSQL是一种功能强大的开源关系型数据库管理系统,以其稳定性、高性能、扩展性和复杂查询能力在众多项目中得到广泛应用,本文将从基础概念讲起,逐步深入到高... 目录前言1. PostgreSQL基础1.1 PostgreSQL简介1.2 基础语法1.3 数据库