18910140161

HTML-如何使标签和文本框位于同一行-堆栈溢出

顺晟科技

2022-10-18 13:53:57

200

<代码><;DIV类=“表单组行”>;<;DIV类=“ col-6 ”>;<;H4>;<;标签类=“ ”>;你需要的钱是:@(HelpSeeker.Money所需_=HelpSeeker.每月_费用*HelpSieker.Month_计数所需_)S.P.<;/标签>;<;/H4>;<;/DIV>;<;DIV Class=“ input-group-append col-MD-2 ”>;<;SPAN CLASS=“ input-group-text ”>;$<;/span>;<;SPAN CLASS=“ input-group-text ”>;0.00<;/span>;<;/DIV>;

如何使标签和类“ input-group-append ”在同一条线上?

这是当前输出

的图片

输出:

enter image description here


顺晟科技:

    <div class="form-group row">
                <div class="col-6 ">
                    <h4>
                        <label class="">
                            The Money that you need is : @(HelpSeeker.money_needed= HelpSeeker.monthly_fees * HelpSeeker.month_count_needed) S.P
    
                        </label>
                    </h4>
                </div>
                <div class="input-group-append col-md-2">
                    <span class="input-group-text"> $</span>
                    <span class="input-group-text"> 0.00</span>
                </div>

试试这个

你可以使用像display:inline-block这样的CSS值。,或显示:flex;flex-direction:行;

  • TAG:
相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航