Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 对手写笔内容进行排序_Html_Css_Sorting_Coding Style_Stylus - Fatal编程技术网

Html 对手写笔内容进行排序

Html 对手写笔内容进行排序,html,css,sorting,coding-style,stylus,Html,Css,Sorting,Coding Style,Stylus,是否有一种方法可以根据某些标准对手写笔文件中的行进行排序,例如按字母顺序排序,或按规则域排序,例如,所有背景内容一个接一个地放置,然后所有定位内容,例如top,right等等? 当然,这些行应该留在它们的父元素中。 以下是一个例子: #topbar clearfix() position fixed height topBarHeight border-bottom 1px solid rgba(#fff, 0.2) box-sizing border-b

是否有一种方法可以根据某些标准对手写笔文件中的行进行排序,例如按字母顺序排序,或按规则域排序,例如,所有背景内容一个接一个地放置,然后所有定位内容,例如
top
right
等等? 当然,这些行应该留在它们的父元素中。 以下是一个例子:

#topbar
    clearfix()
    position fixed
    height topBarHeight
    border-bottom 1px solid rgba(#fff, 0.2)
    box-sizing border-box
    z-index 200
    right 0
    left 0
可以变成这样,按域分组:

#topbar
    // mixins
    clearfix()
    // positioning and sizing
    position fixed
    z-index 200
    left 0
    right 0
    box-sizing border-box
    height topBarHeight
    // border
    border-bottom 1px solid rgba(#fff, 0.2)
    // the rest
    ...

这是一种完美主义者的渴望,但将所有文件内容按一定顺序排列会很酷。

如果您希望在手写笔源文件中对行进行排序,我建议使用脚本作为可编写脚本的文本编辑器,如vim。如果您希望优化输出,可以使用一些POSTSS插件。你可能想看看 和 . 如果使用关键字“merge”,您将发现更多信息