日期:2014-05-17  浏览次数:20705 次

html怎样实现上标的上标
如题,想用html实现2的a次方的b次方,就是先是2的a次方,而后在对a进行b次方,不知道我的表达的是否清楚

------解决方案--------------------
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="File-List" href="new_page_1.files/filelist.xml">
<title>新建网页 1</title>
<!--[if !mso]>
<style>
v\:*         { behavior: url(#default#VML) }
o\:*         { behavior: url(#default#VML) }
.shape       { behavior: url(#default#VML) }
</style>
<![endif]--><!--[if gte mso 9]>
<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]-->
</head>

<body>

<span lang="EN-US" style="font-size: 10.5pt; font-family: Times New Roman">
<span style="position: relative; top: 3.0pt">
<!--[if gte vml 1]><v:shapetype id="_x0000_t75"
 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
 filled="f" stroked="f">
 <v:stroke joinstyle="miter"/>
 <v:formulas>
  <v:f eqn="if lineDrawn pixelLineWidth 0"/>
  <v:f eqn="sum @0 1 0"/>
  <v:f eqn="sum 0 0 @1"/>
  <v:f eqn="prod @2 1 2"/>
  <v:f eqn="prod @3 21600 pixelWidth"/>
  <v:f eqn="prod @3 21600 pixelHeight"/>
  <v:f eqn="sum @0 0 1"/>
  <v:f eqn="prod @6 1 2"/>
  <v:f eqn="prod @7 21600 pixelWidth"/>
  <v:f eqn="sum @8 21600 0"/>
  <v:f eqn="prod @7 21600 pixelHeight"/>
  <v:f eqn="sum @10 21600 0"/>
 </v:formulas>
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
 <o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_s1025" type="#_x0000_t75" style='width:63pt;
 height:63pt'>
 <v:imagedata src="new_page_13.files/image001.wmz" o:title=""/>
</v:shape><![endif]--><![if !vml]><img border=0 width=84 height=84
src="new_page_13.files/image002.gif" v:shapes="_x0000_s1025"><![endif]>
</span>
<!--[if gte mso 9]><![endif]--></span>
</body>
</html>

------解决方案--------------------
给个JS插件 http://www.mathjax.org/

像著名的数学提问网站:http://math.stackexchange.com 就使用该插件。
------解决方案--------------------
<html>
<head>
<title></title>
</head>
<body>
<p>2<sup>a<span><sup>b</sup></span></sup></p>
</body>
</html>