回顾

HTML
  -头部:编码,title,style,link
  -身体
    内联
    块级
    inline-block
    a标签:
      target,href(url,#i1锚点)
    img标签:
      src,alt=“文本”,如果图片显示不出来,就会显示alt的内容
    iframe(伪Ajax,上传文件):
      把别人的网站偷过来
    form:
      action提交到URL;method提交方式;enctype:上传文件
    样式:
      input
      text
      textarea
      checkbox
      radio
      可以用 checked="checked" 来使选项默认选中,checkbox也一样
      password
      file
      button:无效果
      reset:提交当前form
      submit:重置当前form
      select:
        可以选择默认值(除了第一个) <option select="selected">

CSS
  优先级:
    1.按写的先后,后面的会把前面的覆盖了
    2.z-index
    3.!important无敌
  选择器:
    标签选择器
    class选择器
    ID选择器
    层级选择器
    组合选择器
    补充:属性选择器
      <div class="c1" 属性名='值'>1</div>
      这样就可以 .c1[属性名='值']来进一步查找

    样式:
      width:设定样式的时候最好记得设置宽度,不然页面缩小的时候内容过多会挤在一起,

      不过如果加了宽度,页面缩小时会加个滚动条
    透明度:
    opcity:0-1
    background:rgba(0,0,0,.5)就是透明度为0.5

    position:
      fixed
      absolute
      relative
    XX:hover    :当鼠标移动到标签时,更改样式
    XX:after     :在标签后面加上内容
    XX:before  :在标签前面加上内容

原文地址:https://www.cnblogs.com/otome/p/12571006.html