css媒体查询新特性
通常我们根据css的媒体查询来设置特定条件下的样式,比如根据浏览器视口宽度来设置不同的样式; css @media screen and (min-width: 300px) { .element { ... } } 这里的 and 操作符,允许我们合并语句,即媒体类型是屏幕,宽度大于等于300px时的样式,同时我们也可以对一个范围内的视口
通常我们根据css的媒体查询来设置特定条件下的样式,比如根据浏览器视口宽度来设置不同的样式; css @media screen and (min-width: 300px) { .element { ... } } 这里的 and 操作符,允许我们合并语句,即媒体类型是屏幕,宽度大于等于300px时的样式,同时我们也可以对一个范围内的视口
卸载腾讯云监控 barad_agent shell wget -qO- https:raw.githubusercontent.com/littleplus/TencentAgentRemove/master/remove.sh | bash
在web端实时聊天开发过程中,发送图片是很常见的,显示时图片会有一撑开的过程,页面就会发送抖动,比如如下的代码: html <html> <body> <div> <img src="https:file.vwood.xyz/2022/07/11/upload_ffje1i8jz45jrdflr07i17fqm3vefjg0.jpg">
websocket作为即时通信工具在前端广泛使用,消息发送之后如何判断超时,肯定会想到使用setTimeout、setInterval,我也是这么想的,所以就用到了代码了。既然文章开头都这么写,那大概率会出问题(^^)。 是的,真出问题了。心跳设置为10s发送一次,但是当浏览器长时间切换到其他页面后,会发现后端断开了ws的链接,查看日志发现由于前端长时间未发送心跳引起的。 页面在被
开发chrome插件时报如下错误: Uncaught (in promise) Error: Cannot access contents of url "". Extension manifest must request permission to access this host. manifest的permission配置如下: json { "permiss
ssh连接服务器时报错 ECDSA host key for xx.xx.xx.xx has changed and you have requested strict checking. Host key verification failed. 执行一下命令 ssh-keygen -R "远程服务器ip"
启动镜像时报如下错误 ERROR: for gateway Credentials store error: StoreError('Credentials store docker-credential-desktop exited with "error getting credentials - err: exit status 1, out: keychain cannot b
在使用dumi进行组件开发过程时,编写好的组件在编译发版前需要在项目中测试功能是否完善,使用 <code>npm link xxx</code链接后,有时会出现react版本不一致错误, 这是因为组件和渲染它的<code>react-com</code>副本中的react不相同引起的。 使用 shell npm ls react 会发现两个react版本 这时可以通过
在使用dumi进行组件开发过程时,编写好的组件在编译发版前需要在项目中测试功能是否完善,使用<code>npm link xxx</code>链接后,有时会出现react版本不一致错误, 这是因为组件和渲染它的<code>react-com</code>副本中的react不相同引起的。 使用 shell npm ls react 会发现两个react版本 这时可以通过 sh
Resize Observer是一个新的JavaScript API,与[Intersection Observer API](https:alligator.io/js/intersection-observer/)、[Mutation Observer](https:developer.mozilla.org/en-US/docs/Web/API/M