A
A
Alexander Shvedov2020-01-31 21:33:16
css
Alexander Shvedov, 2020-01-31 21:33:16

Why are css properties not working correctly in vue?

There are 2 components:

<style scoped>

        @media print {
            .calc-print{
                
            }

        }


</style>


<style scoped>
    @media print {
        @page {
            size: portrait;
        }
    }
</style>


The problem is that 1 does not work, and if you remove the second, then everything is ok. As I see it, scoped is the problem - it doesn't work for some reason.
PS Previously, it was possible to select the orientation, but after switching to sass, the orientation cannot be selected when printing. How to be advise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NaN, 2020-03-18
@KornevaViktoria

So combine styles under one style scoped tag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question