首页 > 技术文章 > html 5 css 边框

xiezefeng 2015-05-11 23:17 原文

 

margin 外边距

border 边框

padding 内边距

content 内容

 

td{
/* 边框的样式*/
/* border-style: groove;*/

边框的单边样式
border-top-style: groove;
border-right-color: red;
border-bottom-style: dashed;
border-right-style: double;
border-left-style: dotted;
/* 边框的宽度*/
border-width: 10px;
border-right-width: 22px;
/* 边款的颜色*/

border-top-color: orange;

/* 圆角边框*/
border-radius: 10px;
/*    文字对齐方式*/    text-align: center;

/*   阴影四个参数 向右 向下 透明度 颜色*/   

box-shadow: 10px 10px 5px red;

/*    border-image: url(picture.jpg);*/

宽度设置

    border-width: 20px;
}

 

推荐阅读