开发者

html table inside dynamic textarea

Is it possible to display an html <table>开发者_C百科 as a table inside an dynamic textarea using .htmlText method?

And an additional question: is there any other way to display a table inside a text?


Textareas are what they are : text areas. However, it seems to work for basic tables. I tried something like that with and instantiated a textarea named toto :

toto.html = true;

toto.htmlText = "<table> <tr> <td> a </td> <td> b </td> </tr> <tr> <td> c </td> <td> d </td> </tr> <tr> <td> e </td> <td> f </td> </tr> </table>"; //spaces seem very important

However I have to warn you that text areas are not meant to display full HTML. Even if they possess some features about it. If you have to display a table it's surely possible to do it differently.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜