[英]Problem compiling Sass to html on code: grid-template-columns: repeat(12, 1fr); to -ms-grid-columns: (1fr)[12];
Hi when i try to compile Sass to CSS i am getting an error message and also my page isn't displayed correctly.嗨,当我尝试将 Sass 编译为 CSS 时,我收到一条错误消息,而且我的页面显示不正确。 So in my scss file i have display: grid;所以在我的 scss 文件中我有 display: grid; grid-template-columns: repeat(12, 1fr);网格模板列:重复(12,1fr); grid-auto-rows: minmax(100px,auto).网格自动行:最小最大值(100px,自动)。 But when this compiles to css i am getting the following code being displayed: -ms-grid-columns: (1fr)[12];但是,当它编译为 css 时,我将显示以下代码:-ms-grid-columns: (1fr)[12]; and this shows an error.这显示了一个错误。 I am veiwing in microsoft edge so i may need this line.我正在 microsoft edge 中查看,所以我可能需要这条线。 the error message is left bracket expected on the square parenthesis on the 12.错误消息在 12 上的方括号中预期为左括号。
its fine i fixed the problem i was using the live sass compiler on vs code and i instead decided to try the dart sass github install and that seemed to fix the problem.很好,我解决了我在 vs 代码上使用实时 sass 编译器的问题,而我决定尝试 dart sass github 安装,这似乎解决了问题。 There must be a problem with using cs grid and live sass compiler.使用cs grid和live sass编译器肯定有问题。 the code was in the text.代码在文本中。 -ms-grid columns: (1fr)[12]; -ms-grid 列:(1fr)[12];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.