爱易网
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 浏览次数:20212 次
以下是程序代码
<!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,
上一篇:狡猾的按钮特效
下一篇:网盘空间的容量大小或进度特效的一款样式效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
阿里巴巴450亿勾画“现代服务业”藏宝图
中方抗议美方限购IT设备 紧张关系加剧
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
腾讯为何在与阿里百度的收购比赛中当看客?
全球五大电信设备商业绩:华为净利居首
陈天桥之鉴:产品创新被扼杀那些事
苹果联合创始人炮轰鲍尔默“一直都在吃老本”
宽带中国战略明确 运营商建设成本超6000亿
新浪微博推粉丝头条功能 意欲与大号分成
推荐阅读
更多>
迪信通神秘免费服务揭谜底:充电宝免费带回家
郭美美事件推手被抓 “秦火火”拷问网络底线
从旗下三大业务BG发展看华为的过去现在和未来
亚马逊第三方平台真的卖盗版书?
App Store严禁推送广告 运用面临大清洗
200美元英特尔Android笔记本行将到来
传谷歌开发者大会发布Android 4.3 并非5.0版本
摩托罗拉移动裁员关闭德州Moto X手机工厂
搜狐与奇虎360或结盟对抗BAT
Skype周年:与微软联姻到底有没有未来?
黑莓高管:黑莓能作为家“小众公司”活下来
工信部或本月17日向联通电信颁发FDD牌照
苏宁易购成世界最慢电商 专家称其涉嫌违约
网络旅行游记被曝插入"软广告" 个别人士月入数万
北京今日实现用支付宝钱包为公交卡充值
组建铁塔公司倒逼运营商改革 或加速4G网建设
看病也能用支付宝了 马云的又一盘大棋
腾讯为何在与阿里百度的收购比赛中当看客?
微信企业号必须搬走四座大山,否则只能铩羽而归!
北京电信推“0月租卡”,同网通话免费