Home > Web Front-end > Bootstrap Tutorial > How to hide div in bootstrap

How to hide div in bootstrap

爱喝马黛茶的安东尼
Release: 2019-07-27 17:53:11
Original
6536 people have browsed it

How to hide div in bootstrap

Tips for showing and hiding DIV

Use bootstrap’s 12-point grid to demonstrate

style ="display: none;" Release the occupied page space after hiding

document.getElementById("typediv1").style.display="none";//Hide

document.getElementById( "typediv1").style.display="";//Display

                  <div class="form-group">
                                <div class="col-lg-3 col-sm-6">
                                    <label class="col-sm-4 control-label">{{taskId}}</label>
                                    <div class="col-md-8">
                                        <input type="text" id="xxx" class="form-control">
                                    </div>
                                </div>
                                <div class="col-lg-3 col-sm-6"  style="display:none;">
                                    <label class="col-sm-4 control-label">{{msgId}} </label>
                                    <div class="col-sm-8"   >
                                        <input type="text" id="xxx" class="form-control">
                                    </div>
                                </div>
                                <div class="col-lg-3 col-sm-6">
                                    <label class="col-sm-4 control-label">{{createTime}}</label>
                                    <div class="xxx   input-group col-sm-8" >
                                        <input type="text" id="xxx" class="xxx">
                                        <span class="input-group-addon">
                                            <i class="fa fa-clock-o bigger-110"></i>
                                        </span>
                                    </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <label class="col-sm-4 control-label">{{to}}</label>
                                <div  class="xxxe input-group col-sm-8">
                                    <input id="xxx"
                                        class="xxx">
                                    <span class="input-group-addon"> <i
                                        class="fa fa-clock-o bigger-110"></i>
                                    </span>
                                </div>
                            </div>
                       </div>
Copy after login

How to hide div in bootstrap

Related recommendations: "bootstrap Getting Started Tutorial"

The above is the detailed content of How to hide div in bootstrap. 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