css 制造图片边框效果

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<style type="text/css">
.container {
    background: none repeat scroll 0 0 #F3F5FD;
    margin-bottom: 9px;
    padding: 2px;
    position: relative;
}
.container .inner {
    border: 1px solid #D3DCE5;
}
.container .inner-content {
    background: none repeat scroll 0 0 #FAFDFE;
    border: 1px solid #FFFFFF;
    overflow: hidden;
    padding: 14px 0 9px 8px;
}
.notice-list {
    padding: 8px 14px 0 8px;
}
ul {
    list-style: none outside none;
}
.notice-list li {
    background-position: 3px -289px;
    color: #424243;
    line-height: 18px;
    margin-bottom: 20px;
    padding-left: 12px;
}
.container .t-l {
    background-position: 0 -85px;
    left: 0;
    top: 0;
}
.container .t-r {
    background-position: 0 -89px;
    right: 0;
    top: 0;
}
.container .b-l {
    background-position: 0 -97px;
    bottom: 0;
    left: 0;
}
.container .b-r {
    background-position: 0 -93px;
    bottom: 0;
    right: 0;
}
.container .t-l, .container .t-r, .container .b-l, .container .b-r {
    height: 4px;
    width: 4px;
}
.t-l, .t-r, .b-l, .b-r {
    overflow: hidden;
    position: absolute;
}
</style>
<body>
<div class="container">
  <div class="inner">
    <div class="inner-content">
      <ul class="notice-list">
        <li>1、思杰收购云文件管理公司ShareFile</li>
        <li>2、谷歌推云存储服务Cloud Storage挑战亚马逊S3</li>
      </ul>
    </div>
  </div>
  <b class="t-l"></b>
  <b class="t-r"></b>
  <b class="b-l"></b>
  <b class="b-r"></b>
</div>

</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值