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
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.
ID在html中是唯一的,即html文档中只能有一个ID,就像身份证号码一个人能只有一个,而类在HTML可以有多个