border-radius不仅仅可以用来画圆哦
来源:互联网 发布:压缩相片软件下载 编辑:程序博客网 时间:2024/06/06 01:14
border-radius
- 可以设置四个角的值
- 每个角的值可以设置为百分比或长度
- 每个角可以设置水平或垂直方向的值
<html><head> <meta charset="utf-8"> <style> .circle { width: 100px; height: 100px; background-color: #fb3; border-radius: 50%; } .ellipse { width: 100px; height: 50px; background-color: #fb3; /*百分比*/ border-radius: 50%; } .half-ellipse-top { width: 100px; height: 50px; background-color: #fb3; /*top-left,top-right,bottom-right,bottom-left*/ /* 水平方向/垂直方向*/ border-radius: 50% / 100% 100% 0 0; } .half-ellipse-left { width: 100px; height: 50px; background-color: #fb3; /*top-left,top-right,bottom-right,bottom-left*/ /* 水平方向/垂直方向*/ border-radius: 100% 0 0 100% / 50%; } .quarter-ellipse { width: 100px; height: 50px; background-color: #fb3; /*top-left,top-right,bottom-right,bottom-left*/ /* 水平方向/垂直方向*/ border-radius: 100% 0 0 0; } .diagonal { width: 200px; height: 100px; border-radius: 40px 10px; background-color: #fb3; } .box { border: ridge gold; border-radius: 13em/3em; width: 200px; height: 100px; background-color: #fb3; } </style></head><body> <div class="circle"></div> <div class="ellipse"></div> <div class="half-ellipse-top"></div> <div class="half-ellipse-left"></div> <div class="quarter-ellipse"></div> <div class="diagonal"></div> <div class="box"></div></body></html>
0 0
- border-radius不仅仅可以用来画圆哦
- border-radius
- border-radius
- border-radius
- Border-radius
- border-radius
- border-radius
- border-radius
- Border-radius
- border-radius
- ## border-radius ##
- border-radius
- -webkit-border-radius和-moz-border-radius
- CSS3 border-radius note
- CSS3详解:border-radius
- CSS3 Border-radius
- CSS3 border-radius 属性
- CSS3 Border-radius
- 天梯赛总结
- ViewPager添加图片横向自动轮播
- 第一次参加天梯赛的感受
- Fizz Buzz
- poj 3349 Snowflake Snow Snowflakes(hash)
- border-radius不仅仅可以用来画圆哦
- js/jquery获取浏览器窗口可视区域高度和宽度以及滚动条高度实现代码
- java语言复制数组的四种方法
- C语言算法—(生成子集的升级)生成数据的全部组合(含重复数字)(类似建立树的回溯法)
- 使用lock对象显示的锁定资源
- 对Java的URL类支持的协议进行扩展的方法
- java 字符串连接
- MySql中的delimiter
- mongod启动失败----------解决的办法