How to implement square in css: first create an HTML sample file; then calculate m to the nth power through the "mn" tag syntax.
The operating environment of this tutorial: windows7 system, HTML5&&CSS3 version, Dell G3 computer.
Related recommendations: "css video tutorial"
html/css to implement square representation
Requires the use of tags< sup>
tag defines superscript text. Superscripted text will be displayed above a baseline that is half the height of the characters in the current text stream, but in the same font and size as the text in the current text stream.
Example:
Usage:
m的n次方 = m<sup>n</sup>
Supplement:
How to calculate multiple powers in javascript?
Math.pow(2,4); //表示2的4次幂,等于16
The above is the detailed content of How to implement square in css. For more information, please follow other related articles on the PHP Chinese website!