How to make HTML code inactive with comments

2020-02-09 03:15发布

I have some HTML code on a page that I don't want to erase, but make inactive for the short term. How can I make the browser ignore parts of the page in the same way the // works in some programming languages?

标签: html xhtml
7条回答
可以哭但决不认输i
2楼-- · 2020-02-09 04:00

If you are using Eclipse then the keyboard shortcut is Ctrl + Shift + / to add a group of code. To make a comment line or select the code, right click -> Source -> Add Block Comment.

To remove the block comment, Ctrl + Shift + \ or right click -> Source -> Remove Block comment.

查看更多
登录 后发表回答