这不是一个很好的解决方案,在.jobCloseDate
作品上添加边框半径:
http://jsfiddle.net/EG6sS/3/
.jobCloseDate {
border-radius: 0 0 10px 10px;
}
替代解决方案。这很笨拙,但它有效。删除溢出并向下移动最后一个元素,以便“白色像素”不可见。
http://jsfiddle.net/EG6sS/21/
.currentJob:link, .currentJob:visited {
border: 1px solid #dcd3ce;
border-bottom: 0;
background: #ffffff url(../images/applyIcon.jpg) right top no-repeat;
margin: .5em 1.5em 1.5em 1.5em;
display: block;
text-decoration: none;
color: #000000;
border-radius: 10px;
/* removed overflow */
}
.jobTitle {
font-weight: bold;
color: #006A8A;
margin: .6em 45px .1em .6em;
font-size: 1.1em;
display: block;
}
.jobLocation {
/* removed .5em from the bottom margin and added it to the top position on the next element */
margin: 0 .7em 1em .7em;
display: block;
font-size: 0.85em;
}
.jobCloseDate {
text-align: center;
color: #ffffff;
font-style: italic;
padding: .5em;
display: block;
background-color: #006A8A;
/* added the following styles */
border-radius:0 0 10px 10px;
position: relative;
top: .5em;
left: -1px;
margin-top: -1px;
margin-right: -2px;
border: inherit;
border-top: 0;
}
.currentJob:hover, .currentJob:visited:hover {
border: 1px solid #006A8A;
color: #000000;
}