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.
我经常通过 enquire.js 或媒体查询来检测窗口宽度,但是如果我想根据元素的宽度(例如 div)设置不同的样式,然后根据其宽度更改其子元素的外观怎么办?谢谢。如果有帮助,我正在使用 SASS。