simple-flexible icon indicating copy to clipboard operation
simple-flexible copied to clipboard

代码明显没有考虑设备像素比,计算值(font-size)与文章不符

Open kakaACML opened this issue 4 years ago • 0 comments

在完全适配750px原稿的iphone6机型上数据有误; var width = docEl.getBoundingClientRect().width; // width = 370 maxWidth = maxWidth || 540; width>maxWidth && (width=maxWidth); var rem = width * 100 / designWidth; // rem = 50` 该方法没有考虑设备像素比,所有计算值和实际文章称font-size=100px(1rem)不符合;

kakaACML avatar Apr 21 '20 12:04 kakaACML