English 中文(简体)
为什么 c子和as子-con变者乘车与CSS多线评论相脱节?
原标题:Why the css2sass and sass-convert converter trips off with CSS multiline comment?

社会保障局改为社会保障局:

body {
   background: transparent !important; color: #444 !important; text-shadow: none;
  }

  /* Don t show links for images */
  pre, blockquote {
   border: 1px solid #999; page-break-inside: avoid;
  }
  img {
   page-break-inside: avoid;
  }


/* Grade-A Mobile Browsers */
html {
   -webkit-text-size-adjust:none; -ms-text-size-adjust:none;
  }

Converted SASS:

body
  background: transparent !important
  color: #444 !important
  text-shadow: none

/* Don t show links for images

pre, blockquote
  border: 1px solid #999
  page-break-inside: avoid

img
  page-break-inside: avoid

/* Grade-A Mobile Browsers

html
  -webkit-text-size-adjust: none
  -ms-text-size-adjust: none

登录<代码>* Don t显示了图像和/* Grade-A Mobile Browsers的链接。

这使整个问题在它发表评论之后成为障碍。

应为<代码>。 Don 显示图像链接*

问题回答

实际上,萨斯州可以双管齐下。 你们必须理解,对于Sass,/*只是一个部分评论的起点,这样一来:

/* This is the beginning of a commment
    * This line is indented under it, so it s part of the comment

html
    // This selector is not indented so it s not part of the comment

缩略语 登革热照顾你们。

我对你在上详细检查了Sass的评论。

sass-convert - from css -to scs actual.css>newlyCreated.scs

sass-convert - from css --to sass actual.cs>newlyCreated.sass





相关问题
拆除月度边界(实际大型日历)

采用大型反应日历的Im, 并想要清除包罗日历的边界。 以及如何改变日记栏和日记的颜色? 如何使其发挥作用?

Blueprint, Sass and BrowserCMS

I like quite much browserCMS. And I also favour sass and blueprint. I would like to make these things to play together. Although I read somewhere brosercms can sass and blueprint, it is not obvious ...

Compass blueprint mixins undefined

I am trying to get compass/sass/haml working using blueprint but not having any luck with the blueprint mixins +column(24) just results in Sass syntax error undefined mixin column I m sure I am ...

How can I override blueprint s styles?

Hi I m using blueprint and for some reason I can t override some of their built-in styling (screen.css). So far I ve tried: #asset-index-desc .container div li :border ...

possible to define an array in Sass?

wondering if it is possible to use an array with Sass as I find my self repeating the following sort of thing: .donkey h2 background-color= !donkey .giraffe h2 background-color= !giraffe ...

How do I enable SASS line numbers in CSS output?

How can I enable line numbers in CSS output if I am using SASS? I found an article but I didn t quite understand where to make the modifications http://pivotallabs.com/users/damon/blog/articles/765-...

热门标签