? <style> #heada{ height:50px; font-size:14px; }? ? </style>? ??? </head>??<body>? ? <div id="heada" style="background-color:red">? ? ? ? <div class="container" style=" line-height:50px;">?? ? ? ? ? ? <div >? ? ? ? ? ? <p >文本</p>? ? ? ? ? ? </div>? ? ? ? ? ? <div ?style="text-align:right">? ? ? ? ? ? ? ? <p>右對(duì)齊文本</p>? ? ? ? ? ? </div>? ? ? ? ? ? <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">? ? ? ? ? ? <button type="button" style="height:100%; width:100px;">退出</button>? ? ? ? ? ? </div>? ? ? ? </div>? ? </div>? </body>如代碼我用bootstrap的css庫里面的container包裹后,要如何才能讓按鈕高度自適應(yīng)我設(shè)置的heada的高度,我div沒有設(shè)置高度。我不知道該怎么操作
為什么button的高度為什么不能自適應(yīng)
慕無忌3133386
2018-03-09 08:52:50