HTML中的下标文字 [英] Subscript text in HTML
本文介绍了HTML中的下标文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下代码来写表。现在我想要
在表格文本后添加下标文本。如何实现?
I am using the following code to write the table. Now I wish to add subscript text after the table text. How can it be achieved?
我的代码有:
oCell = document.createElement("TD");
oCell.innerHTML = data;
oRow.appendChild(oCell);
如何添加下标文本后跟数据?
How do I add a subscript text followed by the data?
推荐答案
您可能意味着:
oCell = document.createElement("TD");
oSub = document.createElement("sub");
oSub.innerHTML = data;
oCell.appendChild(oSub);
oRow.appendChild(oCell);
这篇关于HTML中的下标文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文