我有 2 列,这些列需要具有相同的高度。此外,带有类链接箭头的链接需要在列底部为 10px。你可以在jsfiddle看到我的问题。
HTML:
<div class="block">
<div class="image-wrap">
<img src="http://img6.imageshack.us/img6/3977/84462809.png" alt="" />
</div>
<div class="right-item">
<h2>Our Operations</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>
<a href="javascript:;" class="link-arrow">
View our operations
</a>
</div>
</div>
CSS:
.block {
width: 315px;
float: left;
background: red;
}
.image-wrap {
float: left;
width: 112px;
overflow: hidden;
border: 1px solid #dfdfdf;
background: blue;
}
.right-item {
margin: 0 0 0 13px;
width: 186px;
float: left;
position: relative;
background: green;
}
.link-arrow {
position: absolute;
left: 0;
bottom: 10px;
}
img {
width: 100%;
}
h2 {
font-size: 18px;
line-height: 14px;
padding-bottom: 13px;
border-bottom: 1px solid #c4c4c4;
margin-bottom: 13px;
}
可以用css吗?
谢谢!