我想制作一个值为n次方2的按钮 [英] i want to make a button with value n power 2

查看:232
本文介绍了我想制作一个值为n次方2的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在值内部使用任何标签,我想制作一个值为n幂2和n幂3的按钮,它将其作为字符串.




< html>
< body>
< button class ="extra6" value ="n2"> n2</button>
< button class ="extra7" value ="n3"> n3</button>
</body>
</html>

i want to make a button with value n power 2 and n power 3 if i am using any tag inside value it is taking it as a string.




<html>
<body>
<button class="extra6" value="n2">n2</button>
<button class="extra7" value="n3">n3</button>
</body>
</html>

推荐答案

您可以使用这种方式设置所需的方式,并在使用按钮时考虑其中的文字:

You can use this way for setting the way you want and take the text in button into consideration when you use it :

<html>
<body>
<button class="extra6">n<sup>2</sup></button>
<button class="extra7">n<sup>3</sup></button> 
</body></html>


这篇关于我想制作一个值为n次方2的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆