如何解决img出现白色底边

在开发的过程中,发现插入一张图片后,图片会出现白色底边,到底是怎样解决呢,首先看一下代码: HTML代码: <body> <div class="banner"> <img src="img/banner.jpg" alt="bann...

aspect css polyfill

.aspect-ratio-box { position: relative; max-width: 500px; } .aspect-ratio-box::before { float: left; padding-top: 56.25%; content: ''; } .aspect-ratio-box::after { display: bl...

Commit message 和 Change log 编写指南

Git 每次提交代码,都要写 Commit message(提交说明),否则就不允许提交。 $ git commit -m "hello world" 上面代码的-m参数,就是用来指定 commit mesage 的。 如果一行不够,可以只执行git commit,就...

解决IIS进程回收后第一次访问慢的问题

IIS 有一种机制,默认会在IIS空闲一定时间段后,将应用程序池进行回收,这个时间段在IIS6中默认是20分钟,在IIS7中默认是1740分钟。两个配置都不合理,都会导致当应用程序池被回收后,第一次访问网站的时候速度很...

IIS初始化(预加载),解决第一次访问慢,程序池被回收问题

读在最前面: 1、本文以IIS8,Windows Server 2012R2做为案例 2、IIS8 运行在 Windows Server 2012 and Windows 8 版本以上的平台上。 3、IIS中应用程序池和网站是单独存在的,但是网站运行必须建立在...

node-sass和chromedriver

yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ yarn config set "chromedriver_cdnurl" "https://npm.taobao.org/mirrors/chromedriver"  

6个Node.js后端框架

1.Koa Koa更像是一个“框架的框架”,因为它本身实在太简单了且极度自由。Koa 使用 Generator 来实现中间件的流程控制,使用try/catch 来增强异常处理,同时在 Koa 框架中你再也看不到复杂的 callback...

Electron 12+ 出现 require is not defined 报错解决

在 Electron 12 及更高版本,设置了nodeIntegration: true及nodeIntegrationInWorker: true、nodeIntegrationInSubframes: true,渲染进程仍然可能出现require is not defined的报错。 这个报错还跟随有mo...

github镜像站

https://git.sdut.me/ https://hub.fastgit.org/ https://github.com.cnpmjs.org/ https://github1s.com/