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.
初めてバーボンニートを使います。私がやろうとしているのはmax-width、ニートのプロパティを設定する_grid.css ことです。今、私はPXでそれをやろうとしてい700pxますが、デフォルト$max-width: em(1000) !default; ではPXでそれを与えようとしましたが、うまくいきません。誰かが私が間違っているところを教えてもらえますか? ありがとう。
max-width
_grid.css
700px
$max-width: em(1000) !default;
$max-width: em(1000)は、Bourbon で定義された mixin を使用しており、ピクセル単位で値を設定できます。mixin はそれを em に変換します。したがって、例$max-width: em(1000)は次 のようになります$max-width: 1000px
$max-width: em(1000)
$max-width: 1000px
先に進んで、その数値を必要なピクセル単位の値に変更し、mixin に ems 計算を行わせてください。
それが役立つことを願っています