标签:
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style>
// 如果是两个数字,则左上角和右下角一样,右上角和左下角一样 .box{width:200px;height:200px;border:1px solid #000; border-radius:20px;} </style> </head> <body> <div class="box"></div> </body>
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> // 100px/150px表示每个角的水平和垂直,同时可以前面四个/后面四个,则分别表示四个角的水平和四个角的垂直 .box{width:200px;height:300px;border:1px solid #000;border-radius:100px/150px;} </style> </head> <body> <div class="box"></div> </body>
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> .box{width:200px;height:60px; -webkit-border-image:url(bt_blue.png) 0 10;border-left-width:10px;border-right-width:10px;} </style> </head> <body> <div class="box"></div> </body>
<head> <meta http-equiv="Content-Type" content="textml; charset=utf-8"> <title>无标题文档</title> <style> .box{width:300px;height:300px;border:10px solid #000; background-image:-webkit-linear-gradient(60deg,red,blue);} </style> </head> <body> <div class="box"></div> </body>
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> .box{width:300px;height:300px;background:url(bt_blue.png) no-repeat, url(border.png) repeat-y right 0;} </style> </head> <body> <div class="box"></div> </body>
标签:
原文地址:http://www.cnblogs.com/donghualei/p/4870818.html