原文章https://css-tricks.com/position-sticky-and-table-headers/. 本身产品有个需求需要表格自动吸顶,本身用了 antd design 的 scroll 实现的,现在使用 css 实现,效果更好 thead和 ...
原文章https://css-tricks.com/position-sticky-and-table-headers/. 本身产品有个需求需要表格自动吸顶,本身用了 antd design 的 scroll 实现的,现在使用 css 实现,效果更好 thead和 ...
项目中需要对正在编辑的页面做监测是否退出页面,退出则弹出提示,本身使用了 react-route,无奈 ui 不满足自定义的样式(嫌丑)所以通过自定义方案,做了一个新的版本 当然还是通过[https://medium.com/@michaelchan_13570/using-react-router-v4-prompt-with-custom-modal-component-ca839f5f ...
ui 设计中,如果单元格内部为空的话,需要填充一个默认字符串标明是个空格子,本身计划使用 js 来做的,但是考虑到要需要遍历,判断等等一系列操作,而且 js 里 0 做 boolean 判断也是返回 false,无形中增加了判断的步骤,所以这个时候还是求助于万能的 css 吧 以下为 less 代码 td:empty { &::after { content ...
原文章https://css-tricks.com/position-sticky-and-table-headers/. 本身产品有个需求需要表格自动吸顶,本身用了 antd design 的 scroll 实现的,现在使用 css 实现,效果更好 thead和 ...