HTML/CSS常用标签属性及样式
其他
2018-09-23 20:24:56
阅读次数: 0
1.常用布局样式:
参数 |
描述 |
width |
宽度 |
height |
高度 |
background |
背景颜色 |
border |
边框 |
padding |
内边距 |
margin |
外边距 |
float |
浮动 |
clear |
清除浮动 |
2.常用文本样式:
参数 |
描述 |
color |
颜色 |
font-size |
字体大小 |
font-family |
字体 |
font-weight |
字体加粗 |
text-decoration |
下划线 |
text-algin |
文本显示方式:居中/左对齐/右对齐 |
text-indent |
文字缩进 |
3.列表:
参数 |
描述 |
type属性(有序) |
排序方式:”1”,”A”,”a”,”I”,”i: |
list-style |
列表样式:none,square,cirlce |
4.表单:
属性:
参数 |
描述 |
action |
提交地址 |
method |
提交方式:get,post |
input属性
参数 |
描述 |
text |
文本框 |
password |
密码框 |
radio |
单选框 |
checkbox |
复选框 |
file |
上传文件 |
submit |
提交按钮 |
reset |
重置按钮 |
5.表格:
参数 |
描述 |
tr |
表示一行 |
td |
表示列 |
th |
表示第一列 |
border-collapse |
table样式:边框合并 |
6.其他css样式:
参数 |
描述 |
display |
显示方式:none/block/inline/inline-block |
cursor |
鼠标显示方式:move/pointer/url(…),auto |
border-radius |
圆角设置 |
overflow |
溢出属性 visible:超出父元素可见 hidden:超出父元素部分不可见 croll:有滚动条 auto:自适应 |
opacity |
透明度,取值范围0-1;(filter:alpha(opacity=1~100)适应ie写法) |
转载自blog.csdn.net/zsh142537/article/details/82810084