上学期笔记

HTML:元素 块 行内 行内块
css:1:文本: font-size(单位一般为px) font-family font-height(无单位在100~900区间) font-style text-align(水平居中) line-height(垂直居中)
2:颜色:color background-color/image/size.
盒子:width.margin  height.padding  border.top/color/style/width solid(实线)
浮动:float:left/right 清除浮动:添加类的方法 clearfloat:after /display block(none隐藏/table变成表格形式清除浮动/mine-block)/overflow:hidden(溢出隐藏/同上边距)/coutent/height:0/clear:both
clearfloat zoom opacity 0/1(透明度) visibility:visible/hidden()
定位: position :absolute(绝对)/reltive(相对)/fixed(固定)/sticky(粘性)/static(默认定位)

css:表格 <table border(边框)="0">/cellspacing(间距)="0"/celltadding(边框距离)="0"
合并行 clospam=""   合并列 rowpam=""所有后代
权重:优先级 (!important感叹号 最大>id #>class>属性 name=“”>标签 div
选择器( 空格 派生选择器 )(直接选择器 >)(相邻选择器/ +下面的兄弟/ ~ 所有兄弟 * )伪类选择器  ::after  ...之后 /::before ...之前  /:first 第一个
:last 最后一个/ :nth-child 子类的某一个/:power 移入 /:focus 焦点 / :active 激活
 text-decoretion:none 清除a标签下划线
list-style-type:none 清除 ul的原点
cursor:pointer 设置小手样式

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值