CSS3实现的菱形效果代码实例_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:27:30
Original
1848 people have browsed it

CSS3实现的菱形效果代码实例:
本章节分享一段代码实例,它使用CSS3实现了菱形效果。
代码如下:

<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style>.antzone{  width:80px;  height:80px;  margin:40px 0 0 40px;  -webkit-transform-origin:0 100%;  -moz-transform-origin:0 100%;  -o-transform-origin:0 100%;  -ms-transform-origin:0 100%;  transform-origin:0 100%;  -webkit-transform:rotate(-45deg);  -moz-transform:rotate(-45deg);  -o-transform:rotate(-45deg);  -ms-transform:rotate(-45deg);  transform:rotate(-45deg);  background: #E5C3B2; }</style></head><body><div class="antzone"></div></body></html>
Copy after login

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=17890

更多内容可以参阅:http://www.softwhy.com/divcss/

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template