HTML属性总结

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 调优先级

链接文件 a{text-decoration:none} 去掉链接下划线 display:block 转化为块元素 background:rgba(0,0,0,0.7) 加背景色和透明度 font-family:"微软雅黑" 设置字体类型 cellspacing="0" 设置单元格默认间距 cellpadding="0" 设置单元格内与文字间距 bgcolor="" 给单元格添加背景颜色 colspan横向合并单元格 rowspan纵向合并单元格 设置背景颜色渐变: background: linear-gradient(#6bb2ff,#2288dd); 当前元素为活动窗口时:配合锚点链接使用 .div2:target p{height: 100px;}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值