Closed lwpassvoice closed 5 years ago
@lwpassvoice hi!
You can try use landscape*
options:
"postcss-px-to-viewport": {
viewportWidth: 750, // (Number) The width of the viewport.
viewportHeight: 1335, // (Number) The height of the viewport.
unitPrecision: 3, // (Number) The decimal numbers to allow the REM units to grow to.
viewportUnit: 'vw', // (String) Expected units.
selectorBlackList: ['.ignore', '.hairlines'], // (Array) The selectors to ignore and leave as px.
minPixelValue: 1, // (Number) Set the minimum pixel value to replace.
mediaQuery: false, // (Boolean) Allow px to be converted in media queries.
landscape: true, // (Boolean) Adds @media (orientation: landscape) with values converted via landscapeWidth.
landscapeUnit: 'vw', // (String) Expected unit for landscape option
landscapeWidth: 1440 // (Number) Viewport width for landscape orientation.
},
thanks~
I have two different pages, and I want to set different viewportWidth,but I don't know how to do.
And the other: