效果預覽:
代碼:
css:
Code
.box { BACKGROUND: url(http://static.linkedin.com/img/bg/bg_box_ltblue_800x800.gif) #fff no-repeat 100% 100%; width:500px;}
.box .content { BACKGROUND: url(http://static.linkedin.com/img/bg/bg_box_ltblue_800x800.gif) #fff no-repeat 100% 100%}
.box .title { BACKGROUND: url(http://static.linkedin.com/img/bg/bg_box_ltblue_800x800.gif) #fff no-repeat 100% 100%}
.box .title H3 {BACKGROUND: url(http://static.linkedin.com/img/bg/bg_box_ltblue_800x800.gif) #fff no-repeat 100% 100%}
.box { PADDING-RIGHT: 15px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 15px 0px; PADDING-TOP: 0px}
.box .title { PADDING-RIGHT: 15px; BACKGROUND-POSITION: 100% 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px -15px 0px 0px; PADDING-TOP: 0px}
.box .title H3 { PADDING-RIGHT: 0px; BACKGROUND-POSITION: 0px 0px; PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; MARGIN: 0px; PADDING-TOP: 15px; HEIGHT: 1%}
.box .content { PADDING-RIGHT: 0px; BACKGROUND-POSITION: 0px 100%; PADDING-LEFT: 15px; PADDING-BOTTOM: 15px; MARGIN-RIGHT: 0px; PADDING-TOP: 0px}
Html:
Code
<div class="box">
<div class="title"><h3 >Title</h3></div>
<div class="content" >
<div>content</div><div>content</div><div>content</div><div>content</div>
</div>
</div>
素材(背景):http://static.linkedin.com/img/bg/bg_box_ltblue_800x800.gif