爱易网
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 浏览次数:20197 次
以下是程序代码
<!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,
上一篇:狡猾的按钮特效
下一篇:网盘空间的容量大小或进度特效的一款样式效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
三星起诉LG在冰箱广告中玷污其企业笼统
苹果6月20日发布iPhone5S 触摸屏概念股生动
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
诺基亚若没加入微软,只不过是另一个HTC而已
薛蛮子取保后首次发微博表示:辜负你们了
618首日看京东阿里不同策略,鹿死谁手?
华为美国推出电商网站 发售Mate 2LTE版
在线音乐出现“小米公司”不是没有可能
据消息传百度将要控股携程 整合去哪儿
推荐阅读
更多>
小米2S试水高端化 纯“性价比”玩法已成过去式
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
Android版WhatsApp曝漏洞:聊天记录可被窃取
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
公信力消失:马航事件社交媒体传播之痛
电信设备商淘金中国4G:华为中兴领衔
高通反垄断案下月有望落定
赴美开店,阿里11Main准备好了吗?
评论:马云的成功建立在什么基础上很值得怀疑
虚拟运营商前路迷茫 业界建议发力车联网
TD是完成中国梦的一个契机
三大运营商获通知大减营销费 传3年减400多亿
首个释放出搅局房地产信号的互联网公司不是小米而是58同城
诺基亚培育低端机市场 迂回战术要挟中华酷联
微软确认 Surface 计划更多尺寸和LTE 版本
乐视28日发布手机进展 LeUI系统Mobile版或曝光
中电信率先推移动转售业务 中下旬批量上市
王建宙解构OTT效劳 中移动重塑飞信平台
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
微软不会被颠覆