gpt4 book ai didi

html - CSS - 对齐段落时的问题

转载 作者:太空宇宙 更新时间:2023-11-03 21:08:54 24 4
gpt4 key购买 nike

您好,我使用了两个文本框。一个用于显示国家代码,另一个用于获取手机号码,在这里我想在电话号码字段下方显示一条消息。但它从国家代码开始出现。所以我想显示商务电话 tet 盒的消息形式。请帮我。

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://cdn.paperindex.com/css/paperindex.min.css" rel="stylesheet">
<div class="phone-verify-two">
<h4>Update your main business phone</h4>
<div class="form-group">
<input class="form-control input-lg" required="required" type="number" placeholder="+91"><i aria-hidden="true" class="fa fa-minus minus"></i>
<input class="form-control input-lg step3-phone main-business-before" maxlength="20" pattern="[\+]\d{2}[\(]\d{2}[\)]\d{4}[\-]\d{4}" placeholder="Main Business Phone" required="required" type="tel">
</div>
<p class="clr-red">Don't add your country code or international dialing code here.</p>
</div>

最佳答案

为获取国家代码和电话号码添加单独的列

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://cdn.paperindex.com/css/paperindex.min.css" rel="stylesheet">
<div class="phone-verify-two">
<h4>Update your main business phone</h4>
<div class="form-group">
<div class="col-md-3">
<input class="form-control input-lg" required="required" type="number" placeholder="+91"><i aria-hidden="true" class="fa fa-minus minus"></i>
</div>
<div class="col-md-9">
<input class="form-control input-lg step3-phone main-business-before" maxlength="20" pattern="[\+]\d{2}[\(]\d{2}[\)]\d{4}[\-]\d{4}" placeholder="Main Business Phone" required="required" type="tel">
<p class="clr-red">Don't add your country code or international dialing code here.</p>
</div>
</div>
</div>

关于html - CSS - 对齐段落时的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49124761/

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