CSS3之边框

CSS3 圆角边框 border-radius

1 2 3 4个值

		border-radius: 20px 60px 100px 140px; /*从左上开始,顺时针赋值*/

1

        border-radius: 20px 60px 100px;   /*如果当前角没有值,取对角的值  */

2

         border-radius: 20px 60px;

3

		 border-radius: 60px;         /* 四个角的说半径都相同是简写*/

4

水平 垂直(X轴 Y轴)

		border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; /*水平半径/垂直半径*/

鸡蛋

	    border-radius: 60px/120px;		/*复合写法*/

单个属性

		border-top-left-radius: 10px 90px;
		border-top-right-radius: 60px 10px;
		border-bottom-left-radius: 60px 10px;
		border-bottom-right-radius: 60px 10px;

6

		border-top-left-radius: 50%;
		border-top-right-radius: 50%;
		border-bottom-left-radius: 50%;
		border-bottom-right-radius: 50%;

7

边框阴影 box-shadow

box-shadow 属性向框添加一个或多个阴影
box-shadow: h-shadow v-shadow blur spread color inset;
水平位移 垂直位移 模糊程度 阴影大小 阴影颜色 外(outset)/内阴影(inset)

		box-shadow: 15px 21px 2px 10px #666;

1

		box-shadow: 15px 21px 10px 10px #666;

2

边框图片 box-image

border-image-source:url(图片的位置); 设置图片边框的地址
border-image-slice:33.3333% fill;裁切图片 fill是铺满可以不写
border-image-width:;设置宽度
border-image-repeat:stretch/repeat/round; 边框图片的平铺
border-image-outset:20px;边框图像区域超出边框的量

stretch拉伸
repeat/round平铺
在这里插入图片描述

旁边有残缺repaet
无残缺round

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值