为标签设置id="ID名称",而不是class="类名称"不都一样吗?不就是换了一个样式而已?
数据分析师2017-09-30 23:22:11
What is the difference between a class selector and an ID selector? What is the difference between setting id="ID name" for a tag instead of class="class name"? -PHP Chinese Questions and Answers - What is the difference between a class selector and an ID selector? What is the difference between setting id="ID name" for a tag instead of class="class name"? -PHP Chinese website Q&A
Please watch and learn.