html中class和id的区别_html id和class区别-CSDN博客

网站介绍:class用来声明类别, 主要是指向css表中的类,可以给html元素赋予多个class, 例如:<html><head><style type="text/css">h1.intro{color:blue;text-align:center;}.important {background-color:yellow;}&l..._html id和class区别