爱易网
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 浏览次数:20225 次
以下是程序代码
<!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,
上一篇:狡猾的按钮特效
下一篇:网盘空间的容量大小或进度特效的一款样式效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
余额宝收益率跌破5% 银行系宝宝收益率赶超
网易微博将正式关闭 用户迁至轻博客LOFTER
都是300元内 乐视盒子与小米盒子对比体验
三星维修新规:Galaxy S4主板进水也收费修
团购网站存活率仅18.6% 剩余缺乏千家
广电地方营业厅的一句“罚停”,暴露出了他们的本质
纸媒深探版权蓝海抗衡互联网的时机到来了
完美入股盛大:一桩各怀心事的交易
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
推荐阅读
更多>
苹果已经允许开发者提交64位应用程序
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
打车软件“明补变暗补”背后的小算盘
为啥苹果定要出廉价iPhone?都是安卓逼的
代工厂生活危机:“富士康们”何去何从?
欧盟控诉苹果在爱尔兰非法进行税收交易
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
新浪微博推粉丝头条功能 意欲与大号分成
马云:银行若放开存款利率 余额宝死了也光荣
微信今天大面积崩溃 腾讯:因光缆施工被挖断
网曝富士康“二连跳” 疑因推静音模式
国网公司将加快组建 业界人士称困难重重
首批四款“官方”打车软件发布:均为安卓版本
国美苏宁线上首度正面PK 京东列席4月电商战
曹国伟:微博将关注Facebook和Twitter
HTC以品牌营销突围 专家建议改变经营思路
解读苹果收购Beats背后动机:库克在想什么?
云储存有多远:跨过数据安全问题即可到达
美图手机2问世 三大问题令其市场销量堪忧
华为变阵:任正非调整三大业务布局