css3 圆角框
2016-05-13 15:49
423 查看
<!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">
#demo1{
width:800px;
height:230px;
border:#F00 1px solid;
}
#demo1:hover{
border-radius:25px;
-webkit-border-radius:25px;
}
#demo2{
height:70px;
width:220px;
border:#F00 1px solid;
background-color:#666;
float:left;
}
#demo3{
width:240px;
height:150px;
border:#F00 1px solid;
background-color:#0F0;
float: left;
}
</style>
</head>
<body>
<div id="demo1">
<div id="demo2">
</div>
<div id="demo3">
</div>
</div>
</body>
</html>
<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">
#demo1{
width:800px;
height:230px;
border:#F00 1px solid;
}
#demo1:hover{
border-radius:25px;
-webkit-border-radius:25px;
}
#demo2{
height:70px;
width:220px;
border:#F00 1px solid;
background-color:#666;
float:left;
}
#demo3{
width:240px;
height:150px;
border:#F00 1px solid;
background-color:#0F0;
float: left;
}
</style>
</head>
<body>
<div id="demo1">
<div id="demo2">
</div>
<div id="demo3">
</div>
</div>
</body>
</html>