您可以通过在当前标记中使用以下标记来实现。编写您的<img class="team" alt="" src="/assets/teresa.jpg">
外部<div class="pin"></div>
并在您的 CSS 中进行以下更改。
HTML
<div class="span4">
<div class="thumbnail">
<div class="pin"></div>
<img class="team" alt="" src="/assets/teresa.jpg">
<h4 class="team">Teresa Beggs</h4>
<p class="team" href="#myModal99" data-toggle="modal">Operations Director</p>
</div>
</div>
CSS:
.thumbnail {
border: medium none;
box-shadow: none;
display: block;
line-height: 1;
position: relative;
z-index: 1; /* Added Lower Z-Index Value */
}
.pin {
background: url("/assets/purplepin.png") no-repeat scroll 0 0 transparent;
height: 100px; /* Added Height of image */
width: 100px; /* Added Width of image */
left: 100px; /* Added Left Position */
position: absolute; /* Added Position */
top: -20px; /* Added Top Position */
z-index: 2; /* Added Higher Z-Index Value from thumbnail div */
}