css圓角

來源:互聯網
上載者:User
 代碼如下 複製代碼

<!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=utf-8" />
<title>無標題文檔</title>
<style type="text/css">
<!--
#contact {
height: 100px;
width: 200px;
border: 1px solid #6666FF;
background: #FFFFFF;
margin: 10px;
padding: 10px;
position: relative;
}
#contact ul {
list-style: none;
}
.rtop , .ltop , .rbottom , .lbottom {
height: 10px;
width: 10px;
position: absolute;
}
.rtop {
background: #FFFFFF url(84892&noupdate=yes) no-repeat right top;
top: -1px;
right: -1px;
}
.ltop {
background: #FFFFFF url(84892&noupdate=yes) no-repeat left top;
left: -1px;
top: -1px;
}
.rbottom {
background: #FFFFFF url(84892&noupdate=yes) no-repeat right bottom;
right: -1px;
bottom: -1px;
}
.lbottom {
background: #FFFFFF url(84892&noupdate=yes) no-repeat left bottom;
left: -1px;
bottom: -1px;
}
-->
</style>
</head>
<body>
<div id="contact">
<p>
     圓矩矩形    </p>
    <ul>
     <li class="rtop"></li>
     <li class="ltop"></li>
        <li class="rbottom"></li>
        <li class="lbottom"></li>
    </ul>
</div>
</body>
</html>

相關文章

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.