HTML5+CSS基础学习笔记

border:1px solid #000;
边框: 1像素  实线  黑色;

字体大小:
font-size:100%;(10px;)

文本水平居中:text-align:center;
居中对齐:line-height:height;
ls样式:
list-style:none;

none不使用项目符号
disc实心圆,默认值
circle空心圆
square实心方块
decimal阿拉伯数字
lower-roman小写罗马数字
upper-roman大写罗马数字
lower-alpha小写英文字母
upper-alpha大写英文字母
表格:table
边框:table border="1" 
tr 行
td 一个单元格
th 粗体居中单元格
caption 标题
table {
	border-collapse:collapse;单框线
	margin:auto  (=margin:auto auto auto auto  表示上下左右都为auto;)
	margin:0 auto  (=margin:0 auto 0 auto  表示上下为0,左右为auto;)
	background-image:url(); 背景图片
	} 
table tr:nth-child(odd/even){background-color:#000;} 定义奇偶行

发布了41 篇原创文章 · 获赞 5 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_43472877/article/details/102615650