繁体   English   中英

修改继承的引导样式的高度

[英]Modifying height of inherited bootstrap style

我是CSS新手,我必须更改一些代码,使其看起来像是从引导继承样式。

 <style>
.thumbnail{display:table !important}
 </style>
 <div class="thumbnail">

因此,缩略图是表格中的一个单元格,我需要更改此单元格的高度和重量,有关如何执行此操作的任何建议? 我没有看到该样式的任何高度或宽度属性?

谢谢。

不要修改引导程序类,只需添加这样的新类

的CSS

.thumbnail-custom{
   background-color:red !important;
}

我认为甚至!重要

的HTML

<div class="thumbnail thumbnail-custom">
...
</div>

如果您正在使用LESS

.thumbnail-custom{
  .thumbnail;
  background-color:red !important;
}

HTML

<div class="thumbnail-custom">
    ...
</div>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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