PHP前端开发

bootstrap如何隐藏div

百变鹏仔 1个月前 (11-14) #bootstrap
文章标签 bootstrap

显示 隐藏DIV的技巧

使用bootstrap的12分栅来演示

隐藏后释放占用的页面空间

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

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

  <div>                                <div>                                    <label>{{taskId}}</label>                                    <div>                                        <input>                                    </div>                                </div>                                <div>                                    <label>{{msgId}} </label>                                    <div>                                        <input>                                    </div>                                </div>                                <div>                                    <label>{{createTime}}</label>                                    <div>                                        <input>                                        <span>                                            <i></i>                                        </span>                                    </div>                            </div>                            <div>                                <label>{{to}}</label>                                <div>                                    <input>                                    <span> <i></i>                                    </span>                                </div>                            </div>                       </div>