search

Home  >  Q&A  >  body text

ID和类都起标记识别作用,那么他们在应用效果上有区别吗?

ID和类都起标记识别作用,那么他们在应用效果上有区别吗?


phpcn_u238phpcn_u2382898 days ago890

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:27:01

    ID and class both play a role in tag identification, so is there any difference in their application effects? -PHP Chinese website Q&A-ID and class both play the role of mark recognition, so are there any differences in their application effects? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-21 15:44:22

    ID在html中是唯一的,即html文档中只能有一个ID,就像身份证号码一个人能只有一个,而类在HTML可以有多个

    reply
    0
  • Cancelreply