首页 > Web开发 > 详细

css3 折角效果

时间:2015-04-02 22:16:46      阅读:347      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>

<html>

 

<head>

<meta charset="utf-8">

<title>折角效果</title>

 

<style type="text/css">

div {

width: 300px;

height: 200px;

background: #333;

position: relative;

}

div:before {

content: ‘‘;

width: 0px;

height: 0px;

position: absolute;

top: 0px;

right: 0px;

border-right: 0px solid #333;

border-bottom: 0px solid #768;

-webkit-transition: border .3s;

}

div:hover:before {

border-bottom-width: 30px;

border-right-width: 30px;

}

</style>

</head>

 

<body>

 

<div></div>

 

</body>

 

</html>

css3 折角效果

原文:http://www.cnblogs.com/djawh/p/4388426.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!