How to set centering in javascript: 1. Open the corresponding front-end code file; 2. Horizontally center the text surrounded by it by using the
tag.
The operating environment of this article: windows7 system, javascript version 1.8.5, Dell G3 computer.
How to set the center in javascript?
You can use the
Definition and Usage
For example, you can write like this:
<center> <script src="http://111.11.fdf." type="text/javascript"></script> </center>
Note: This tag is not supported in html5.
[Recommended learning: javascript basic tutorial]
The above is the detailed content of How to set the center in javascript. For more information, please follow other related articles on the PHP Chinese website!