iframe滚动条 Posted on 2024-04-17 | Post modified: 2024-04-17 | In CSS Words count in article: 90 | Reading time ≈ 1 系统中嵌入了iframe,设置了100%高度,但是iframe中还是出现了滚动条。 查询资料发现,iframe是内联元素,默认与baseline对齐。在iframe后有一个行内空白节点,空白节点始终占据着高度,导致外部容器被撑开,出现滚动条。 解决方法:设置iframe的vertical-align:top;
linux安装docker和jenkins Posted on 2024-01-30 | Post modified: 2024-01-30 | In Linux Words count in article: 443 | Reading time ≈ 2 背景给一台新服务器安装Docker和Jenkins,做前端应用部署使用。 服务器是CentOS7,已经安装了Nginx,可以联网。 Read more »
linux搭建samba Posted on 2024-01-30 | Post modified: 2024-01-30 | In Linux Words count in article: 356 | Reading time ≈ 1 背景Samba是在Linux系统上实现SMB协议的一个免费软件。SMB(Server Messages Block,信息服务块)是一种在局域网上共享文件和打印机的一种通信协议,它为局域网内的不同计算机之间提供文件及打印机等资源的共享服务。 需求是给linux服务器安装samba,共享文件夹给windows桌面机。 Read more »
内网Linux安装neo4j Posted on 2023-11-14 | Post modified: 2024-04-17 | In Java Words count in article: 234 | Reading time ≈ 1 背景某项目,在内网的统信(Linux)系统下安装neo4j。 neo4j是一个图数据库。安装需要Java环境(安装OpenJDK)。 Read more »
内网Linux安装OpenJDK Posted on 2023-11-14 | Post modified: 2023-11-14 | In Java Words count in article: 131 | Reading time ≈ 1 背景某项目,在内网的统信(Linux)系统下安装OpenJDK。 Read more »
内网Linux部署Nginx Posted on 2023-11-14 | Post modified: 2023-11-14 | In Nginx Words count in article: 202 | Reading time ≈ 1 背景某项目,在内网的统信(Linux)系统下通过编译安装的方式部署Nginx。 Read more »
使用中间件解耦业务流函数 Posted on 2023-10-10 | Post modified: 2023-10-13 | In JavaScript Words count in article: 1.1k | Reading time ≈ 5 前置条件 听说过AOP(面向切面编程),了解中间件、洋葱模型等概念 了解Redux、Koa的中间件的使用 一点函数式编程技巧(方便阅读redux源码) Read more »
css多背景拼接 Posted on 2023-09-25 | Post modified: 2023-09-25 | In CSS Words count in article: 53 | Reading time ≈ 1 多背景,要求上面 400px 是渐变色,下面全部是纯色。 123456789body { background-image: linear-gradient( 180deg, #8392bb 0%, rgba(232, 234, 241, 0) 100% ), linear-gradient(180deg, #e8eaf1 0%, #e8eaf1 100%); background-size: 100% 400px, 100%; background-repeat: no-repeat, repeat-y;}
禁止自动填充密码框 Posted on 2023-09-22 | Post modified: 2023-09-22 | In CSS Words count in article: 59 | Reading time ≈ 1 浏览器设置可以自动填充密码,有时候很有用,有时候很讨厌。这里记录一个通过HTML属性禁用自动填充密码的方法。 12345<Input autoComplete="new-password" type="password" placeholder="密码"/>
前端应用唤起桌面应用 Posted on 2023-09-22 | Post modified: 2023-09-22 | In JavaScript Words count in article: 243 | Reading time ≈ 1 背景某测绘院购买了高拍仪,需要在前端应用中唤起高拍仪的软件。环境是 win10,本机已安装高拍仪软件。 Read more »