html - 在html中使用时如何在bootstrap 4中更改img-thumbnail的白色
问题描述
这是我处理代码时的输出:
我想让图像的边框变黑。我该如何改变呢?
<section style="background: #dfe6e9;" class="p-3">
<div class="container">
<div class="row">
<div class="col-md-6">
<img src="Profile-pic.jpg" width="500em" class="rounded-circle img-fluid img-thumbnail">
</div>
<div class="col-md-6">
</div>
</div>
</div>
</section>
解决方案
要想真正实现你想要的,只需id
在图片中添加一些(所以只有这个的 borded 更改)并在另外的 css 中.img-thumbnail
更改background-color
<style>
#my-image.img-thumbnail {
background-color: black;
}
</style>
推荐阅读
- javascript - 执行 index.html 时出现错误
- amazon-emr - 增量表:org.apache.spark.sql.catalyst.parser.ParseException:不匹配的输入'FROM'
- javascript - 如何将一个类添加到一个 div 但从其他 div 中删除?
- elasticsearch - AWS 中的 Elasticsearch 快照失败,阻止升级
- python - 在 python 情绪分析中使用 twiiter 标签的方法?
- git - Git:如果分支中最新推送中的所有提交,则获取列表
- node.js - 无法使用 nodejs 在 microsoft botframework 上获取和显示 API 的结果
- python - Scikit分类比较
- css - 移除水平滚动
- ruby-on-rails - 拒绝连接 - 在 Linode 服务器上使用 Capistrano、Nginx 和 Puma 部署的 Ruby on Rails 应用程序