简体   繁体   中英

Bootstrap-sass : fieldset in bootstrap cannot be overriden

I'm styling a rails web with bootstrap-sass. import bootstrap, To override bootstrap

***fieldset
{
padding: 0;
  margin: 0;
  border: 0;
}***

I add a new fieldset description in bootstrap_and_overrides.css.scss /*bootstrap_and_overrides.css.scss*/

@import "bootstrap";
.
.

fieldset {
  padding: 1;
  margin: 1;
  border: 1;
}

However, my "fieldset" definition is crossed out, the bootstrap "fieldset" still works. When I look into the firebug, I found out, the fieldset defined by me is in line 5252. the bootstrap "fieldset" is in line 742.

Why latter one cannot override the previous one?

您必须为您的值定义一个单位:像素,pt,em等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM