【发布时间】:2018-02-15 10:34:04
【问题描述】:
你能帮我将矩形图像裁剪为圆形,裁剪到中心吗?我需要将裁剪图像的宽度调整为列宽。
我的代码:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" />
<div class="row">
<div class="col-4">
<img class="img-fluid rounded-circle" src="http://wallpaper.pickywallpapers.com/1920x1080/mark-wahlberg-front-profile.jpg" alt="">
</div>
<div class="col-8">Hello there!</div>
</div>
我的解决方案不起作用,并由我的图像椭圆制成。感谢您的帮助。
【问题讨论】:
标签: html css twitter-bootstrap image geometry