vhxubo's blog
关于

前端小记

offset和client的区别

offsetWidth, clientWidth, scrollWidth and Height, respectively in CSS - GeeksforGeeks

<svg>的颜色修改

style="fill:red"以及style="stroke:red"

退出页面时显示可能存在未保存数据

window.onbeforeunload = (event) => {
// Cancel the event as stated by the standard.
event.preventDefault()
// Chrome requires returnValue to be set.
event.returnValue = ''
return '关闭提示'
}

对视频进行反转

transform: rotateY(180deg);

两个行块宽度50%却不在同一行 - SegmentFault 思否