简体   繁体   English

在代码上将 Sass 编译为 html 时出现问题:grid-template-columns: repeat(12, 1fr); 到-ms-grid-columns: (1fr)[12];

[英]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.

相关问题 你如何解释“grid-template-columns: 1fr auto minmax(800px, 3fr) 1fr;”? - How do you interpret “grid-template-columns: 1fr auto minmax(800px, 3fr) 1fr;”? 为什么当我设置了 grid-template-columns: repeat(2, 1fr); 时我的网格有 3 列? - Why does my grid have 3 columns when I've set grid-template-columns: repeat(2, 1fr);? 如何设置网格模板列:[outer-start] 1fr [center-start] 1fr [center-end] 1fr [outer-end]? - How its set with grid-template-columns: [outer-start] 1fr [center-start] 1fr [center-end] 1fr [outer-end]? “网格模板列:适合内容(50%)1fr;” 没有按预期工作 - "grid-template-columns: fit-content(50%) 1fr;" doesn't work as expected 宽度为1fr + 1fr = 2fr(带网格间隙) - Make the width of 1fr + 1fr = 2fr (with grid gap) 在 css 网格中,为什么在视口中使用网格模板列 1fr 会溢出到下一部分? - In css grid, why does using grid template columns 1fr in viewport overflow to the next section? 使用最小最大值重复自动拟合防止 CSS 网格列溢出(<fixed-breadth> , 1f)</fixed-breadth> - Preventing CSS grid columns from overflowing using repeat auto-fit with minmax(<fixed-breadth>, 1fr) 1fr 网格单元扩展到 100% 以上 - 1fr grid cell expands past 100% CSS minmax(0, 1fr)时网格溢出 - CSS Grid overflows when minmax(0, 1fr) chrome 上的 grid-template-rows 和 1fr 出现意外行为 - unexpected behavior with grid-template-rows and 1fr on chrome
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM