CSS3-border-radius的兼容写法大全
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta name="author" content"郭菊锋,702004176@qq.com">
<title>border-radius的兼容写法大全</title>
<style>
.image{
-webkit-border-image: url(images/news.png) 20/50px 67px 30px 10px repeat stretch;
-moz-border-image: url(images/news.png) 20/50px 67px 30px 10px repeat stretch;
-o-border-image: url(images/news.png) 20/50px 67px 30px 10px repeat stretch;
border-image: url(images/news.png) 20/50px 67px 30px 10px repeat stretch;
/*border-image: url(图片地址链接) slice/width outset repeat;*/
}
/*slice:边距数值:如果四个一样,就设置一个即可;如果四个不一样,就得设置四个,分别对应上右下左*/
/*width:必须与slice之间有一个/号,然后同slice一样,设置一个值也可,四个也可但要分别对应*/
/*outset(有两个值跟在width之后,可以都设置为repeat repeat一样,【这样的话就是也可以只设置一个值】也可以上下repeat左右stretch不一样。){*/
/*topbottom(上下){repeat(上下平铺);stretch(上下拉伸),round()}*/
/*leftright(左右){repeat(左右平铺);stretch(左右拉伸),round()}*/
/*stretch:默认值*/
/*round:将图像平铺显示,但是如果最后一幅图不能装下,会空出位置出来把能装下的背景图进行拉伸已达到铺满背景的效果 是repeat和stretch的结合.
}*/
div.radius{
width:600px;
height: 750px;
padding: 30px;
background-color: rgba(94, 70, 132, 0.87);
color: #fff;
font: 20px "微软雅黑";
-moz-border-radius-topleft: 12px;
-moz-border-radius-topright: 23px;
-moz-border-radius-bottomright: 34px;
-moz-border-radius-bottomleft: 45px;
-o-border-radius-topleft:12px;
-o-border-radius-topright:23px;
-o-border-radius-bottomright:34px;
-o-border-radius-bottomleft:45px;
-webkit-border-top-left-radius: 12px;
-webkit-border-top-right-radius: 23px;
-webkit-border-bottom-right-radius: 34px;
-webkit-border-bottom-left-radius: 45px;
border-top-left-radius: 12px;
border-top-right-radius: 23px;
border-bottom-right-radius: 34px;
border-bottom-left-radius: 45px;
}
</style>
</head>
<body>
<div class="image">用图片来做边框<br />border-image:url( ) 数值/宽度px stretch;</div>
<h1>绘制四个不同的圆角边框的写法以及不同的兼容性的写法大集合</h1>
<div class="radius">
<ul>
<li>顺序就是逆时针转圈</li>
<li></li>
<li>border-radius-topleft:12px;</li>
<li>border-radius-topright:23px;</li>
<li>border-radius-bottomright:34px;</li>
<li>border-radius-bottomleft:45px;</li>
<li></li>
<li>或者上面这个写法是错了,虽然书上这么讲,但是软件不这么提示。软件提示正确(在软件中更没有错误符号)如下</li>
<li></li>
<li>border-top-left-radiu:12px;</li>
<li>border-top-right-radius:23px;</li>
<li>border-bottom-right-radius:34px;</li>
<li>border-bottom-left-radius:45px;</li>
<li></li>
<li>-moz-border-radius-topleft:12px;</li>
<li>-moz-border-radius-topright:23px;</li>
<li>-moz-border-radius-bottomright:34px;</li>
<li>-moz-border-radius-bottomleft:45px;</li>
<li></li>
<li>-o-border-radius-topleft:12px;</li>
<li>-o-border-radius-topright:23px;</li>
<li>-o-border-radius-bottomright:34px;</li>
<li>-o-border-radius-bottomleft:45px;</li>
<li></li>
<li>-webkit-border-top-left-radius:12px;</li>
<li>-webkit-border-top-right-radius:23px;</li>
<li>-webkit-border-bottom-right-radius:45px;</li>
<li>-webkit-border-bottom-left-radius:34px;</li>
</ul>
</div>
<p>20160810 00:40-xing.org1^</P>
</body>
</html>
CSS3-border-radius的兼容写法大全的更多相关文章
- css3部分属性兼容性别扭写法(因为很多我就叫他别扭了,希望全面早早支持css3吧)
/*圆角class,需要设置圆角的元素加上class名称*/ .roundedCorners{ -webkit-border-radius: 10px;/*webkit内核浏览器*/ -moz-bor ...
- CSS兼容问题大全
1.chorme 最小字体的兼容性. 问题描述:ff和IE最小字体可设置为1px,可是chorme中文版最小字体是12px,小于12px的字体全部显示为12px.解决方案:chorme支持CSS3的, ...
- javascript阻止事件冒泡的兼容写法及其相关示例
//阻止事件冒泡的兼容写法 function stopBubble(e){ //如果提供了事件对象,则是一个非IE浏览器 if(e && e.stopPropagation) //因此 ...
- IE浏览器兼容问题(上)——html和css的兼容写法
用户使用的浏览器五花八门,我们要保证每一种浏览器都能兼容我们的代码,不能要求用户去改变浏览器,那么就得在我们的代码上下功夫.此时我们要用到hack. HACK就是针对不同的浏览器写不同的HTML.CS ...
- css 背景色渐变兼容写法
最近在项目中,有很多地方都用到了线性渐变,比如:表单提交按钮的背景,数据展示的标题背景等等,按照以前的做法是切 1px 图片然后 repeat-x.下面我将介绍如何用 css 来完成该效果. css3 ...
- 【css】css 背景色渐变兼容写法
最近在项目中,有很多地方都用到了线性渐变,比如:表单提交按钮的背景,数据展示的标题背景等等,按照以前的做法是切 1px 图片然后 repeat-x.下面我将介绍如何用 css 来完成该效果. css3 ...
- background-size: contain 与cover的区别,以及ie78的兼容写法
一:background-size: contain 与cover的区别: 作用: 都是将图片以**相同宽高比**缩放以适应整个容器的宽高. 不同之处在于: 1. 在no-repeat情况下,如果容 ...
- (转)css 背景色渐变兼容写法
css3:linear-gradient 比如:黑色渐变到白色,代码如下: .gradient{ background: -moz-linear-gradient(top, #000000 0%, # ...
- JavaScript中的数组遍历forEach()与map()方法以及兼容写法
原理: 高级浏览器支持forEach方法 语法:forEach和map都支持2个参数:一个是回调函数(item,index,list)和上下文: forEach:用来遍历数组中的每一项:这个方法执行是 ...
随机推荐
- 基于FPGA的电压表与串口通信(上)
实验原理 该实验主要为利用TLC549采集模拟信号,然后将模拟信号的数字量通过串口发送到PC上上位机进行显示,使用到的TLC549驱动模块在进阶实验已经使用到了,串口模块在基础实验也已经使用到了,本实 ...
- MPLS
Multiprotocol Label Switching From Wikipedia, the free encyclopedia "MPLS" redirects here. ...
- Putty SSH简单使用
本地的puttygen生出的秘钥,公钥传到服务器上连接会报错 Server refused our key. 一般我们建议都在服务器上生成秘钥,把私钥下载下来.加载到putty认证中 01.在服务器上 ...
- 模块加载(require)及定义(define)时的路径
最近新公司在用requireJS进行JS的整合,刚开始接触有点蒙,于是深入了解了一下.requireJS主要是为了解决一下两个问题: (1)实现js文件的异步加载,避免网页失去响应: (2)管理模块之 ...
- Android应用崩溃后异常捕获并重启并写入日志
在Android开发时,有时会因为一些异常导致应用报错,偶尔会因为错误 而崩溃,导致用户体验下降,为了解决这问题,我们就要对这样的异常处理: 代码如下: CrashHandler.java impor ...
- 状态压缩 HDU 3182
t组数据 n个汉堡 e的能量 接下来的2行 val n个 得到的权 cost n个 花去的能量 接下来n行 每行一个q q个数字 代表这类汉堡做好要的前提 每个汉堡只能用一次 #inclu ...
- word2007插入页码里面不显示或没选项可点怎么办?
1.打开Word 2007 2.单击Microsoft Office按钮 (左上角的圆圈) 3.单击“Word 选项”(在页面的右下方) 4.单击“加载”项(页面左边一排,倒数第三个,出现的页面中,向 ...
- C# for循环及循环嵌套
格式(for循环四要素:初始条件.循环条件.循环体.状态改变) for (int i=1<初始条件>;i<=n<循环条件>;i++<状态改变>) { < ...
- Web前端性能优化教程06:减少DNS查找、避免重定向
本文是Web前端性能优化系列文章中的第六篇,主要讲述内容:减少DNS查找.避免重定向.完整教程可查看: 一.减少DNS查找 基础知识 DNS(Domain Name System): 负责将域名UR ...
- css 数字出现滚动条解决
<div style="height:100px;overflow-y:auto;word-wrap:break-word;word-break:break-all;" ng ...