Home  >  Article  >  Backend Development  >  How to change text on PHP personal web page

How to change text on PHP personal web page

angryTom
angryTomOriginal
2019-11-20 16:16:294944browse

How to change text on PHP personal web page

How to change the text of PHP personal webpage

How to modify the text of the personal webpage we downloaded from the Internet, as follows Several ways to modify.

1. Modify the source code directly

First open the web page in the browser and copy the text that needs to be modified;

Then open the source code file with Notepad and press ctrl f to search;

After that, delete the text and change it to what you want.

Note: Do not delete too many, otherwise the code structure will be destroyed and the effect of the web page will be changed.

2. Modify in the browser

First open the browser, press f12 to enter debugging mode, and select the console panel;

Then enter the code document.querySelector("body").contentEditable = true;

Then click on the text you want to modify on the web page to modify it .

Modify to enter the code again document.querySelector("body").contentEditable = false;

Finally press ctrl s to save the web page.

Note: When deleting text, you cannot delete more than once.

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of How to change text on PHP personal web page. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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