爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
通过CSS3实现的精美折角特效代码
通过CSS3实现的精美折角特效代码
日期:2014-05-18 浏览次数:20224 次
以下是程序代码
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <!-- Copyright (c) 2013 by Felix Schwarzer (http://codepen.io/slimsmearlapp/pen/AyueF) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> <title>CSS3 折角效果 演示 by js.aiyiweb.com</title> <style>@import url(http://fonts.googleapis.com/css?family=Oswald:400,300); div { width: 200px; height: 200px; padding: 10px; border: 1px solid #ddd; background-size: cover; background-clip: content-box; background-color: #f66f6f; box-sizing: border-box; position: relative; margin: auto; top: 30px; font: 400 2em/180px 'Oswald', sans-serif; color: #fbfbfb; text-indent: 20px; } div:after { content: ""; display: block; position: absolute; border: 50px solid transparent; border-bottom: 50px solid #fefefe; bottom: -60px; right: -65px; box-shadow: 0px 7px 6px -9px black; transform: rotate(135deg); } div:before { content: ""; display: block; position: absolute; border: 50px solid transparent; border-top: 50px solid #fefefe; top: -60px; left: -65px; box-shadow: 0px -7px 6px -9px black; transform: rotate(135deg); }</style> <script> window.confirm = function(){}; window.prompt = function(){}; window.open = function(){}; window.print = function(){}; // Support hover state for mobile. if (false) { window.ontouchstart = function(){}; } </script> <script>/** * StyleFix 1.0.3 & PrefixFree 1.0.7 * @author Lea Verou * MIT license */ (function(){ if(!window.addEventListener) { return; } var self = window.StyleFix = { link: function(link) { try { // Ignore stylesheets with data-noprefix attribute as well as alternate stylesheets if(link.rel !== 'stylesheet' || link.hasAttribute('data-noprefix')) { return; } } catch(e) { return; } var url = link.href || link.getAttribute('data-href'), base = url.replace(/[^\/]+$/, ''), base_scheme = (/^[a-z]{3,10}:/.exec(base) || [''])[0], base_domain = (/^[a-z]{3,10}:\/\/[^\/]+/.exec(base) || [''])[0], base_query = /^([^?]*)\??/.exec(url)[1], parent = link.parentNode, xhr = new XMLHttpRequest(), process; xhr.onreadystatechange = function() { if(xhr.readyState === 4) { process(); } }; process = function() { var css = xhr.responseText; if(css && link.parentNode && (!xhr.status || xhr.status < 400 || xhr.status > 600)) { css = self.fix(css, true, link); // Convert relative URLs to absolute,
上一篇:狡猾的按钮特效
下一篇:网盘空间的容量大小或进度特效的一款样式效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
微软大幅调整Bing在华策略:从高大上到接地气
网曝富士康500万iphone遭退货是确证的事
携程整合去哪儿陷入僵局 欲联手老对手艺龙
阿里国际化再落子:2.49亿美元投资新加坡邮政
微软最后的救命稻草Win 8份额继续上升
微软张亚勤趋势判断:未来三十年属于物理化互联网
一大波智能路由器正在袭来:小米、360、极路由大PK
微信企业号必须搬走四座大山,否则只能铩羽而归!
推荐阅读
更多>
国美痛批网购七宗罪 用短暂盈利输了未来
二维码支付大战的号角注定已经吹响,尚需标准发放
同为70前后人,马云为什么总是像外星人那么瘦
纸媒深探版权蓝海抗衡互联网的时机到来了
中移动财报外的"五座大山":运营商沦为走秀陪衬
腾讯再次重申:普通微信誉户相对不收费
史玉柱此刻离任:营销巨匠为新游戏炒作?
苹果MacBook Air劣势渐显 或推新产品改变命运
新闻早8点》Facebook失手发布Snapchat类应用
特斯拉技术专利开放,要革自己的命?
全球网络遭史上最大规模攻击:攻击数据每秒300G
200美元英特尔Android笔记本行将到来
诺基亚因充电器问题暂停销售Lumia 2520平板电脑
2013年至今中国互联网行业十大并购案汇总
广东移动高层受调查 中移动或现更大反腐风暴
特斯拉将获上海免费牌照 充电桩面临双重标准
科技巨匠体验谷歌眼镜:戴上了就不想摘上去
从旗下三大业务BG发展看华为的过去现在和未来
百度“全网寻人”面前的互联网信息枢纽价值
从3G牌照发放看中国4G规划效果