Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用以下行在 td 中创建链接按钮,并在 jquery 表中追加。如果我使用此行,则链接按钮不支持以蓝色显示。如何赋予该链接按钮的样式,如蓝色?
.append($("<td/>", {'html': '<a href="#" id="id1" style="color:Blue" class="cls1" >Link Button</a>' }))
像这样使用,简单的方法
.append($("<td/>").append($("<a/>",{"href":"#","html":"Link","id":"id1","style":"color:blue","class":"cls1" })))