β

bootstrap_and_overrides.css.less 文件中写入自己的 less 没有效

Ruby China社区 626 阅读

bootstrap_and_overrides.css.less文件中写入自己的less没有效果?
如下:
@import "twitter/bootstrap/bootstrap";
@import "twitter/bootstrap/responsive";
body { padding-top: 60px; }
// Set the correct sprite paths
@iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings.png");
@iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white.png");

// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
// Note: If you use asset_path() here, your compiled bootstrap_and_overrides.css will not
// have the proper paths. So for now we use the absolute path.
@fontAwesomeEotPath: asset-path("fontawesome-webfont.eot?v=3.0.2");
@fontAwesomeEotPath_iefix: asset-path("fontawesome-webfont.eot?#iefix&v=3.0.2");
@fontAwesomeWoffPath: asset-path("fontawesome-webfont.woff?v=3.0.2");
@fontAwesomeTtfPath: asset-path("fontawesome-webfont.ttf?v=3.0.2");

// Font Awesome
@import "fontawesome";

// Glyphicons
@import "twitter/bootstrap/sprites.less";

// Your custom LESS stylesheets goes here
//
// Since bootstrap was imported above you have access to its mixins which
// you may use and inherit here
//
// If you'd like to override bootstrap's own variables, you can do so here as well
// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
//
// Example:
// @linkColor: #ff0000;

//@navbarBackground: #38B0DE;
//@navbarBackgroundHighlight: #38B0DE;
#navbar-inner{
background: #38B0DE;

}
我还想问下这个navbar-inner前面的#和.有什么区别?

作者:Ruby China社区
Ruby China社区最新发帖.