Web Notes
Web 笔记
Web Notes
JavaScript
获取参数
params = function(k) {
return new URLSearchParams(location.search).get(k);
}
CSS
重置全部样式
* {
all: unset;
}
全尺寸背景
body {
background: url(https://source.unsplash.com/random/640x360?travel&sig=huluren) no-repeat center center fixed;
background-size: cover;
}
背景图效果
div:hover {
filter: brightness(1.1);
transform: scale(1.02);
transition: all .5s;
}