style标签的唯一属性 type 属性值 text/css
<styl type=“text/css>
选择器
1基本选择器 2
标签选择器 3
id选择器4class
选择器
(
又称 类选择器
)
简单常用属性
width
宽度
height
高度
font-size
:文字大小单位
px(像素点)
family:
字体类型
font-style
:斜体
font-weight:
粗体 取值
bold
css边框属性 (div为例)
width:
宽度
heigh
:高度
border-top:
上边框
border-bottom
:下边框
border-left
:左边框
border-right
:右边框
边框的类型
none(
无边框
)
solid
(实线)
dashed
(虚线)
dotted
(点状线)
css指定外边框
margin=left
:外边框的左边
margin-top
:外边框的上
margin-right
:外边框的右边距
margin-botto
:外边框的下边距
css指定内边框
padding-left:(单位)px
内边框的左边
padding-top:
内边框的上
padding-bottom:
内边框的下
padding-right:
内边框的右