Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 需要引导列中的帮助吗_Css_Bootstrap 4 - Fatal编程技术网

Css 需要引导列中的帮助吗

Css 需要引导列中的帮助吗,css,bootstrap-4,Css,Bootstrap 4,我正在尝试写一个地址字段。我想在城市和邮政编码的右侧显示州和国家 输入您的地址 对现有代码进行细微调整,以获得所需内容 在小尺寸上,占据所有12列 邮政编码、城市、国家和州的其他6列 输入您的地址 尝试使用此结构 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <div class="row"> &

我正在尝试写一个地址字段。我想在城市和邮政编码的右侧显示州和国家


输入您的地址


对现有代码进行细微调整,以获得所需内容

  • 在小尺寸上,占据所有12列
  • 邮政编码、城市、国家和州的其他6列

输入您的地址


尝试使用此结构

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">

<div class="row">
    <div class="col-md-12">
        <div class="need-info">
            <p class="info-title">Enter Your Address.</p>
            <input type="text" class="form-control" placeholder="Address line 1.">
        </div>
        <div class="need-info">
            <input type="text" class="form-control" placeholder="Address line 2.">
        </div>
    </div>
    <div class="col-md-6">
        <div class="need-info">
            <input type="text" class="form-control" placeholder="City">
        </div>
    </div>
    <div class="col-md-6">
        <div class="need-info">
            <input type="text" class="form-control" placeholder="State">
        </div>
    </div>
    <div class="col-md-6">
        <div class="need-info">
            <input type="number" class="form-control" placeholder="Postal Code">
        </div>
    </div>
    <div class="col-md-6">
        <div class="need-info">
            <input type="text" class="form-control" placeholder="Country">
        </div>
    </div>
</div>

输入您的地址