[CSS3] 边框 Border
来源:互联网 发布:读单词软件 编辑:程序博客网 时间:2024/05/16 02:37
[1] Border
border: border-width border-style border-color
(eg: border-style: dotted/ solid/ dashed)
[2] Border-radius
border-radius: 左上 右上 右下 左下
[3] Border-radius 应用
(3-1) 圆形
border-radius 制作圆形 条件:
(1) width=height
(2) border-radius:50%;
(3-2) 半圆
border-radius 制作半圆
(1) width 是height 2倍长度 (圆口是上下)
height 是width 2倍长度 (圆口是左右)
(2) border-radius 为min(width, height)长度
(3-3) 扇形
/* border-radius 制作扇形
(1) width = height
(2) border-radius 为宽度的长度
*/
(3-4) 椭圆
border-radius 制作椭圆
水平椭圆:
(1) width = 2 height
(2) border-radius= width px /height px
垂直椭圆:
(1) 2 width = height
(2) border-radius= height px / width px
[4] Border-image
[5] Box-shadow
box-shadow: h-shadow v-shadow blur color
h-shadow 水平
v-shadow 垂直
blur 模糊距离
<div><img src="1.jpg"><span>Chinadaily is the largest English portal in China, providing news, business information, BBS.</span></div>div{ width:220px; height:310px; background: #E9E9E9; border-radius: 15px;/*圆角*/ box-shadow:2px 2px 3px #aaaaaa;/*阴影*/ font-family:"Times New Roman",Georgia,Serif;}img{/*img 虽然本身是个内联 但是表现出来的是一个inline-block 可以定义长度 宽度 也可以用margin padding*/ width:200px; height:200px; display: inline-block; margin: 10px; border-radius: 5px;}/*span 就是一个内联块, 为了让他可以margin padding 定义display*/span{ text-indent: 25px; text-align: justify; display: inline-block; margin:0 10px;}
0 0
- [CSS3] 边框 Border
- CSS3边框border-radius
- CSS3之边框属性border
- CSS3边框-边框颜色(border-color)
- CSS3之边框圆角:border-radius
- CSS3之边框多颜色Border-color
- CSS3之边框图片border-image
- html5学习-CSS3-border-image边框…
- border-radius 圆角边框(CSS3.0)
- css3.0:border-radius 圆角边框
- css3:border-image边框图像详解
- css3:border-radius圆角边框详解
- 【CSS3】---为边框应用图片 border-image
- 【CSS3】为边框应用图片 border-image
- css3(border-radius)边框圆角详解
- css3(border-radius) 边框圆角详解
- css3(border-radius)边框圆角详解
- css3:border-image边框图像详解
- iOS开发-UI控件:日历选取控件
- 新知识学习
- 获取北京时间
- LeetCode 203 Remove Linked List Elements
- SQL注入点自动化利用测试工具—shoryuken
- [CSS3] 边框 Border
- java heap out of memory分析
- Day 26: TogetherJS —— 让我们一起来编程!
- js 延时执行
- 降维中的特征选择
- 高德地图JS API代码备份
- 使用CocoaPods时提示the command path could not be resolved问题
- 精品源码,面试题,不容错过的干货!
- 【Java并发编程实战】—–“J.U.C”:CAS操作