在jquery中,想要给第一个指定的元素添加样式的写法是?假设样式名为:.className

只需使用jQuery的addClass方法即可,代码如下<!DOCTYPEhtml><head><title>测试</title>.className2{color:red;}</head><body>我是classname,准备添加classname2