爱易网
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 浏览次数:20222 次
以下是程序代码
<!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,
上一篇:狡猾的按钮特效
下一篇:网盘空间的容量大小或进度特效的一款样式效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
电信设备商淘金中国4G:华为中兴领衔
史上最严电话实名制9月实行 三大难题待解
马云寄厚望于物流 “菜鸟”行情暂难持续
京东终于想明白,这些年错过的财运,都藏在女人的时装下
为啥苹果定要出廉价iPhone?都是安卓逼的
苹果大中华区业绩回暖 中移动贡献或低于预期
9月1日起免征新能源汽车购置税
薛蛮子取保后首次发微博表示:辜负你们了
美图手机2问世 三大问题令其市场销量堪忧
推荐阅读
更多>
手游市场乱象丛生 受资本热捧野蛮成长
传4G牌照国庆节前后发放 TD-LTE制式优先
完美入股盛大:一桩各怀心事的交易
历史惊人相似:如今的库克 曾经的鲍尔默
2013年至今中国互联网行业十大并购案汇总
苹果20年以来首次发债 融资170亿美元
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
神州泰岳雪上加霜:副总违规买卖遭罚
SAP高层调整:联席CEO孟鼎铭成唯一掌舵人
Twitter收购印度手机营销公司ZipDial
网曝富士康“二连跳” 疑因推静音模式
中电信国际漫游费下调85% 世界杯上网28元/天
苹果iWatch或使用量产液态金属 将取代玻璃
戴尔正告继续上市存风险 称黑石伊坎方案有缺乏
佳能利润大跌三成 智能终端倒逼相机厂商转型
微软觊觎移动互联市场:手机未出渠道先行
网络视频的几大趋势将成视频玩家躲不开的发力点
总部大楼已换微软Logo:回忆诺基亚的兴衰史
三问刘强东:京东为何近来火气这么大?
华为坚持不上市究竟为何?不差钱也不想冒风险