码迷,mamicode.com
首页 > Web开发 > 详细

css3 折角效果

时间:2015-04-02 22:18:27      阅读:143      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!