html - 粗体标签导致行跳出 div
问题描述
这是一个带有网格类和弹性项目的段落的代码。第一行是粗体,但粗体标记会导致该行跳转到 center_text_grid 的左侧。
.center_text_grid {
display: grid;
grid-column: 5 / 12;
grid-row: 20 / 20;
display: block;
overflow: auto;
align-items: center;
justify-items: center;
}
.mktg_text {
font-family: CamphorW01-Thin, sans-serif;
font-size: 13pt;
color: rgb(175, 222, 162);
line-height: 1.5;
}
<div class="center_text_grid flex-item mktg_text"><b>Thanks for your interest in our product.</b> We are excited to offer it, along with all accessories, six months ahead of schedule. The interest has been exceptional, and we appreciate all of the comments we received during its
development. <br><br></div>
为什么加粗标签会导致行跳出div?
解决方案
推荐阅读
- python - 如何在 Scrapy 上同时分页和解析多个页面
- python - yfinance 的最后一个实时蜡烛图
- android - 警报管理器 setInexactRepeating 不起作用。做了并尝试了所有方法,日志没有显示收到任何广播
- python-2.7 - 相同颜色和线条的条形图和线条图位于条形图后面
- ruby-on-rails - Rails 5.0 在 Chrome 上的 dev 和 prod wrt 图像文件扩展名中的行为不同
- c# - 如何在大型程序集中找到阻止序列化的字段?
- xslt - XSL 从另一个文档评估动态 XPATH
- react-native - 关于 'UMReactNativeAdapter/UMModuleRegistryAdapter.h' 文件未找到
- docker - 我可以获得最新版本的 FIWARE 产品的 docker 镜像吗?
- python - 在管道中的 XGBoostClassifier() 中使用“class_weight”进行多类分类的正确方法