li{list-style:none} 去掉列表符号
border-top-width 设置上边框宽度
border-top-color 设置上边框颜色
border-radius:50%/10px 设置边角弧度
line-height 行高
text-indent:2em 首行缩进2个字符
text-align:center 水平居中
letter-spacing 文字间距
overflew:hidden 溢出隐藏
background:url(img/bg.gif) 插入背景图
background-repeat:no-repeat 背景图不平铺
background-repeat:repeat-x 背景图铺满x轴
*{margin:0;padding:0;} 去掉自动边框
li:nth-child(1){} 选择第一个li
animation-delay: 0.9s;对模块加延迟,0.9s后开始变化
{ animation:定义名字 周期 匀速(linear) 一直循环(infinite) //stop-end 立马跳到下一步
@keyframes 名字{from()to()}/@keyframes{0%{}20%{}100%{}} } 给块元素添加动作
transform-style:preserve-3d 给模块添加3d效果
transition:所有(all) 周期 匀速(linear) 对模块动作的延迟
box-shadow:0 0(左右偏移) 10px(阴影透明度) 10px(阴影大小) #(颜色) 给盒子加阴影
transform:translateY()沿Y轴正方向偏移 rotateY()沿Y轴旋转
skew(3deg,10deg)x,y轴上倾斜 scale(0)尺寸比例变为0
transform-origin: center bottom; 设置中心点
position:定位 absolute绝对定位 fixed固定定位 relative相对定位
<audio src=“img/…” autoplayloop(自动播放)> 加背景音乐
opacity:0.5 设置透明度
font-weight 设置字体粗细
font-size 设置字体大小
z-index 调优先级
HTML属性总结
最新推荐文章于 2024-04-03 22:32:50 发布