4
<div class="generic_layout_container layout_ride_ridespec">
</div>
如何编程化添加一个额外的类或一个更多的属性与现有的类到上面的div。 我想出来把如下如何在Mootools中添加css类
<div class="generic_layout_container layout_ride_ridespec example_class">
</div>
请原谅id/name
的解决方案,还有就是加一个id或名称以上元素有点困难。 谢谢
+1嘿,但肯定我的回答是更短,更易于阅读:P – karim79 2010-11-18 05:24:48
@ karim79你的答案是完全有效的! – RDL 2010-11-18 05:28:56
卡里姆的答案在哪里? – 2014-01-23 18:57:45