手写笔不能在一个.styl文件中编译所有内容

时间:2014-08-11 16:16:12

标签: css stylus

这很奇怪。手写笔完美地工作,直到我复制粘贴一些CSS尝试一些东西。

当我将它添加到我的style.styl文件中时:

.navigation
  list-style none
  background white
  width 100%
  height 100%
  position fixed
  top 0
  right 0
  bottom 0
  left 0
  z-index 0

它汇编到了这个

.navigation,
list-style none,
background white,
width 100%,
height 100%,
position fixed,
top 0,
right 0,
bottom 0,
left 0,
z-index 0,

css的其余部分正在编译。

2 个答案:

答案 0 :(得分:1)

检查您的手写笔中是否使用了基于空格的缩进。

手写笔默认为缩进标签。但是如果你在花括号之间写它,你可以使用4或2个空格。

 .navigation {
    list-style none
    background white
    width 100%
    height 100%
    position fixed
    top 0
    right 0
    bottom 0
    left 0
    z-index 0
  }

答案 1 :(得分:0)

您粘贴此代码的文件中可能有错误的缩进。你能展示原始文件吗?