开发者

Increase font size at button click

I have a table and in the end there is a button, when click on button text size in the rows of th开发者_如何学Goe table should be double in size. Sorry I am new to JQuery so my question seems to be silly.


If your page has only one table then try this

$(document).ready(function(){
  $("button").click(function(){
    $("tr").css("font-size","200%");
  });
});

Here tr is the table row and 200% means double text size

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜