uses amfe-flexible and px2rem adaptable fonts
font-size: 28px; /*px*/
the comment / * px*/
is set as above, but the font finally appears as 24px
according to the way written in the document, the ideal result would be to generate three fonts of 14px, 28px, 42px and three sizes based on dpr.
The font size set on the root element on font-size: 37.5pxpheroment body is 24px.These two should be the font sizes added by flexible? But why doesn"t the font-size: 28px; / * px*/
set take effect?
it does convert
when using / px /.[data-dpr="1"] -sharptop-nav {
font-size: 14px;
}
[data-dpr="2"] -sharptop-nav {
font-size: 28px;
}
[data-dpr="3"] -sharptop-nav {
font-size: 42px;
}
but why is it overwritten by the font size on body