gpt4 book ai didi

html - Bootstrap 创建文本区域和两个内联按钮

转载 作者:太空宇宙 更新时间:2023-11-04 10:34:06 25 4
gpt4 key购买 nike

我需要使用引导内联表单或布局下方的任何其他方式创建文本区域和按钮,如下所示,我尝试了以下代码,但它似乎不起作用

<div class="form-inline">
<div class="form-group">
<textarea class="form-control input-sm" rows="3" style="resize: none" ng-model="formData_EventDetails.serviceNowStr" id="serviceNowStr" readonly placeholder=""></textarea>
<button class="uk-button primary " ng-click="viewServiceNowPopup(formData_EventDetails)" style="display: inline" > &nbsp;View &nbsp;</button>
<button class="uk-button primary " ng-click="openServiceNowPopup(formData_EventDetails)" style="display: inline; margin-top: 5px" > Search </button>

</div>
</div>

enter image description here

最佳答案

使用水平 Bootstrap 形式来做到这一点

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<div class="form-horizontal">
<div class="form-group">
<div class="col-xs-10">
<textarea class="form-control input-sm" rows="3" style="resize: none" ng-model="formData_EventDetails.serviceNowStr" id="serviceNowStr" readonly placeholder=""></textarea>
</div>
<div class="col-xs-2">

<button class="btn uk-button btn-block btn-default " ng-click="viewServiceNowPopup(formData_EventDetails)"> &nbsp;View &nbsp;</button>
<button class="btn uk-button btn-block btn-primary " ng-click="openServiceNowPopup(formData_EventDetails)"> Search </button>

</div>

</div>
</div>

参见 here

关于html - Bootstrap 创建文本区域和两个内联按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36292087/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com