我正試圖做到在圖像中顯示什麼,並且在嘗試獲取它們的時候非常困難。如果可能,儘可能保持響應的最佳方法是使用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