Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Bootstrap のヒーロー ユニットは、外縁とテキストとボタンの間に大きなマージン領域があるようです。このマージン領域を小さくするブートストラップに適した方法はありますか?
私があなたを正しく理解していれば、ヒーローユニットを独自のカスタムスタイルシート(または本当に必要な場合はbootstrap.css)で編集できるはずです:
.hero-unit { padding: 30px; /* default is 60px; */ }
これはテストしていませんが、上記のコードが機能しない場合は、 を追加してください。これにより!important、他のすべてのスタイル ルール (インライン スタイルを含む) が上書きされます。
!important
padding: 30px !important;