Home  >  Q&A  >  body text

直接属性的命名,class选择器的命名和id选择器的命名有什么区别?

男神男神2768 days ago1125

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:52:54

    What is the difference between direct attribute naming, class selector naming and id selector naming? -PHP Chinese website Q&A-What is the difference between the naming of direct attributes, the naming of class selectors and the naming of id selectors? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-19 11:58:18

    ID选择器只能命名一次,类选择可以多次命名;类选择器可以为类设置多个样式,但是ID选择器不能;

    reply
    1
  • Cancelreply