css - Bootstrap - 额外保证金
问题描述
我使用引导程序。我有两个div。这是我的代码html:
<div class="container">
<div class="col-12 circle lg-circle">
<div class="col-12 circle sm-circle">
</div>
</div>
</div>
和CSS
.circle {
border: solid 0.9px $athens-gray;
border-radius: 50%;
}
.lg-circle {
max-height: 69.375rem;
max-width: 69.375rem;
padding: 7.125rem;
}
.sm-circle {
border-color: $athens-dark;
max-height: 69.375rem;
max-width: 55.0625rem;
}
这是浏览器的视图。
问题:为什么会有右边距,怎么去掉?
解决方案
将此代码添加到 css 文件中:
.container{
margin:unset;
}
推荐阅读
- laravel - Laravel 根据数据库设置记录到通道
- visual-studio - NuGet 包还原失败
- mysql - 如何使用 SQL 中的事务将数据从一个表插入到另一个表?
- c++ - MFC:为什么会发生这种堆损坏?(array_s.cpp / afxcoll.inl)
- ms-access - 运行访问查询时出现语法错误,请指导
- javascript - 以html字符串格式迭代以创建动态表
- javascript - 检测天气用户是否在反应js和javascript中滚动div的底部
- python - 我应该如何改进我的样式(python 类、Django 模型)?
- reactjs - 道具验证中缺少 Redux 子项
- python - 使用 keras 自定义函数时,反向传播是否会自动使用自定义函数的正确公式进行操作?