前端开发

如何评论多行html代码?

2021-01-13 21:50:39 阅读数 3316 收藏 0
这是我的 HTML代码.

<link rel="stylesheet" type="text/css" href="/common/css/daterangepicker-bs2.css">
        <link rel="stylesheet" type="text/css" href="/common/css/multiselect.css"/>
        <link rel="stylesheet" type="text/css" href="/common/app/css/tab-styles.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/resumable.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/connectwise.css">
        <link rel="stylesheet" type="text/css" href="/app/css/chat.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/remote.css">
        <link rel="stylesheet" type="text/css" href="/common/app/css/screen.css">

我需要评论来自< link rel =“stylesheet”type =“text / css”href =“/ common / app / css / connectwise.css”> to< link rel =“stylesheet”type =“text / css”href =“/ common / app / css / remote.css”>

解决方法

用它来评论HTML | source

<!-- Comments go here -->

所以你有了:

<!-- <link rel="stylesheet" type="text/css" href="/common/css/daterangepicker-bs2.css">
<link rel="stylesheet" type="text/css" href="/common/css/multiselect.css"/>
<link rel="stylesheet" type="text/css" href="/common/app/css/tab-styles.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/resumable.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/connectwise.css">
<link rel="stylesheet" type="text/css" href="/app/css/chat.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/remote.css">
<link rel="stylesheet" type="text/css" href="/common/app/css/screen.css"> -->

编辑:抱歉没有意识到这只是CSS.修正了我的回答.

编辑2:我再次调查了你的问题并注意到Pete删除了你的一个重要问题,你要删除哪一部分.下面的代码应该是你想要的.

<link rel="stylesheet" type="text/css" href="/common/css/daterangepicker-bs2.css">
    <link rel="stylesheet" type="text/css" href="/common/css/multiselect.css"/>
    <link rel="stylesheet" type="text/css" href="/common/app/css/tab-styles.css">
    <link rel="stylesheet" type="text/css" href="/common/app/css/resumable.css">
    <!-- <link rel="stylesheet" type="text/css" href="/common/app/css/connectwise.css">
    <link rel="stylesheet" type="text/css" href="/app/css/chat.css">
    <link rel="stylesheet" type="text/css" href="/common/app/css/remote.css">
    <link rel="stylesheet" type="text/css" href="/common/app/css/screen.css"> -->