为了账号安全,请及时绑定邮箱和手机立即绑定

为什么button的高度为什么不能自适应

为什么button的高度为什么不能自适应

慕无忌3133386 2018-03-09 08:52:50
  <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>右对齐文本</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包裹后,要如何才能让按钮高度自适应我设置的heada的高度,我div没有设置高度。我不知道该怎么操作
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 2388 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信