Box css樣式

來源:互聯網
上載者:User

效果預覽:

代碼:

  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

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.