我正试图做到在图像中显示什么,并且在尝试获取它们的时候非常困难。如果可能,尽可能保持响应的最佳方法是使用HTML/CSS实现这一点?
<div class="tool-div">
<img src="{{ obj.image.url }}">
<div>
<li>It Does this and that and that</li>
<li>It Does this and that and that and that</li>
<li>It Does this and that and that and that</li>
<li>It Does this and that and that and that</li>
</div>
<button class="btn btn-primary center-block">{{ obj.title }}</button>
</div>
.tool-div {
max-width: 50%;
margin: 20px;
height: 100px;
}
.tool-div img {
border-radius: 50%;
height: 100%;
position: absolute;
left: 20;
}
你有任何代码,您已经开始?不是全部,只是相关的部分。 – magreenberg
我会添加它,但我并没有想象它有任何用处,因为我没有尝试过的东西甚至已经接近工作。 – Groovietunes
'.tool-div'必须有一个位置,例如'position:relative'。具有明确定位的第一个父元素将用作绝对位置为 – luxer