Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
LESSベースのフォントサイズを設定し、後で参照して出力を小さくする方法はあります1emか? 元:
LESS
1em
@font-size: 3.025em;
そして、メディアクエリか何かで:
@media only screen and (max-width: 959px) { .box { font-size: @font-size - 1em; } }
これをグーグルで調べてみましたが、何も思いつきませんでした。
はい、できます。LESSデフォルトが何であるかを推測できないため、ベースラインのフォントサイズを設定する必要があります。
そして、メディアクエリで:
;)