——这里介绍两个标记<sup></sup>和<sub></sub>,前者是上移到右上角,后者是下移到右下角。
——当然,这里不仅能操作数字,其他汉字等字符一样可以。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>前端</title>
</head>
<body>
<p>a<sup>2</sup>+a<sup>3</sup>=a<sub>4</sub></p>
<p>汉字<sup>上移</sup>,汉字<sub>下移</sub></p>
</body>
</html>
效果: