Home > Web Front-end > Front-end Q&A > How to set the center in javascript

How to set the center in javascript

藏色散人
Release: 2021-10-19 17:07:51
Original
11085 people have browsed it

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.

How to set the center in javascript

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

tag to center the entire text horizontally.

Definition and Usage

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template