decorateTable javascript函数的用途是什么?


Answers:


13

decorateTable函数用于在表的trtd元素上添加一些类。类,如odd even first lasttr元素和lasttd元素。这种方法比从PHP进行操作更容易。
添加这些类后,您可以轻松为每个添加的类创建css样式,并使表的行和列在人群中脱颖而出。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.