Blog
Blog copied to clipboard
Star 就是最大的鼓励👏👏👏
1.border - border-width不支持百分比 2.单位ex(相对字体和字号的单位) 利用ex使图标居中 ```css .icon{ display: inline-block; width: 20px; height: 1ex; background: url() no-repeat center } ``` 此时调节字体大小,图标都会居中 3.line-height - line-height就是内联元素的完全高度;是替换元素前一个空白幽灵节点的高度;块级元素无影响 - line-height有数值,百分比值,长度值(em),都是相对于font-size计算得来,如果是数值,子元素继承的就是这个数值,而如果是其他,那么子元素继承的就是计算得来的值 -
我们业务在 CI 中接入了 [[statoscope](https://github.com/statoscope/statoscope)] 插件,帮助我们分析构建产物的内容,通过 statoscope 插件,发现了构建产物中引入了一些重复的npm包 我们将内容进行简化归类得到下面 3 种重复包的情况 **1. package-a 有两个不同的版本** **2. package-a 有两个相同的版本,但是链接符后面的包版本不一致** ``` node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@ten_el4uhwub3qermsb2ug24hbwt4q/node_modules/pkg-a node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]__@ten_l3pmpxjfhmbdedp66axwibu23u/node_modules/@pkg-a ``` **3. package-a 有两个相同的版本,连接符后面的包版本也是相同的** ``` node_modules/.pnpm/@[email protected]_@[email protected]_@tenc_wzqvgos5wvtse35fehnxnhj2da/node_modules/@pkg-a node_modules/.pnpm/@[email protected]_@[email protected]_@tenc_7zuxjpgexhn6u5ehnylczjhybe/node_modules/@pkg-a ``` ### 问题分析 **1....