Home >Web Front-end >Front-end Q&A >How to set the center in javascript
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 bacbf9e1ad7f40415ce1670e31edfee3 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 bacbf9e1ad7f40415ce1670e31edfee3 tag to center the entire text horizontally.
Definition and Usage
bacbf9e1ad7f40415ce1670e31edfee3 tag horizontally centers the text it surrounds.
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!