简体   繁体   English

如何并排获得两个表单域,每个图例位于该域上方?

[英]How can I get two form fields side-by-side, with each legend above the field?

Problems: I am currently having two problems with the form I am trying to do: 问题:我目前要处理的表单存在两个问题:

  1. I am trying to have two forms side by side and I am stuck on how to achieve this with some css. 我正在尝试并排使用两种形式,而我对如何使用某些CSS实现这一点感到困惑。

    The following is how the form currently looks: 以下是当前表单的外观:

在此处输入图片说明

I am trying to put the "or Search by Zip Code" section to on the right hand side of the "Search By Provider Credentials" form. 我正在尝试将“或按邮政编码搜索”部分放在“按提供者凭据搜索”表单的右侧。

The following is the css I am using and html I am using: 以下是我正在使用的CSS和我正在使用的html:

 .form-style-5{ max-width: 500px; padding: 10px 20px; background: #f4f7f8; margin: 10px auto; padding: 20px; background: #f4f7f8; border-radius: 8px; font-family: Georgia, "Times New Roman", Times, serif; } .form-style-5 fieldset{ border: none; } .form-style-5 legend { font-size: 1.4em; margin-bottom: 10px; } .form-style-5 label { display: block; margin-bottom: 8px; } .form-style-5 input[type="text"], .form-style-5 input[type="date"], .form-style-5 input[type="datetime"], .form-style-5 input[type="email"], .form-style-5 input[type="number"], .form-style-5 input[type="search"], .form-style-5 input[type="time"], .form-style-5 input[type="url"], .form-style-5 textarea, .form-style-5 select { font-family: Georgia, "Times New Roman", Times, serif; background: rgba(255,255,255,.1); border: none; border-radius: 4px; font-size: 16px; margin: 0; outline: 0; padding: 7px; width: 100%; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; background-color: #e8eeef; color:#8a97a0; -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset; box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset; margin-bottom: 30px; } .form-style-5 input[type="text"]:focus, .form-style-5 input[type="date"]:focus, .form-style-5 input[type="datetime"]:focus, .form-style-5 input[type="email"]:focus, .form-style-5 input[type="number"]:focus, .form-style-5 input[type="search"]:focus, .form-style-5 input[type="time"]:focus, .form-style-5 input[type="url"]:focus, .form-style-5 textarea:focus, .form-style-5 select:focus{ background: #d2d9dd; } .form-style-5 select{ -webkit-appearance: menulist-button; height:35px; } .form-style-5 .number { background: #FF9900; color: #fff; height: 30px; width: 30px; display: inline-block; font-size: 0.8em; margin-right: 4px; line-height: 30px; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,0.2); border-radius: 15px 15px 15px 0px; } .form-style-5 input[type="submit"], .form-style-5 input[type="button"] { position: relative; display: block; padding: 19px 39px 18px 39px; color: #FFF; margin: 0 auto; background: #FF9900; font-size: 18px; text-align: center; font-style: normal; width: 100%; border-width: 1px 1px 3px; margin-bottom: 10px; height:55px; } .form-style-5 input[type="submit"]:hover, .form-style-5 input[type="button"]:hover { background: grey; } .formSpacing{margin-top:10px;} .inputWidth1{width:80% !important;} .inputWidth2{width:70% !important;} 
 <div class="form-style-5"> <form> <fieldset> <legend><span class="number">1</span> Search By Provider Credentials </legend> <div style="display: inline-block;"> <label class="formSpacing" for="job">Provider Name</label> <input class="inputWidth1" type="text" name="Name" placeholder="Provider Name *"> </div> <div style="display: inline-block; margin-left:20px"> <label for="job">Provider Speciality</label> <select id="job" name="Specialty"> <option value="">Select a Specialty *</option> <option value="PCP">Primary Care Physician</option> <option value="Pediatrics">Pediatrics</option> </select> </div> <div style="display: inline-block;"> <label class="formSpacing" for="job">Gender</label> <select id="job" name="Gender"> <option value="">Select a Gender *</option> <option value="PCP">Male</option> <option value="Pediatrics">Female</option> </select> </div> <div style="display: inline-block; margin-left:55px"> <label for="job">City</label> <select id="job" name="City"> <option value="">City *</option> <cfoutput query="cityFind"> <option value=#city#>#city#</option> </cfoutput> </select> </div> </fieldset> <fieldset> <legend><span class="number">2</span> or Search by Zip Code</legend> <div style="display: inline-block;"> <label class="formSpacing" for="job">Zip Code</label> <input class="inputWidth2" type="text" name="Name" placeholder="Zip Code *"> </div> <div style="display: inline-block; margin-left:20px"> <label for="job">Select Distance</label> <select class="inputWidth2" id="job" name="Specialty"> <option value="">Select Distance *</option> <option value="5" <cfif dist IS 5>selected="selected"</cfif>>5 Miles</option> <option value="10" <cfif dist IS 10>selected="selected"</cfif>>10 Miles</option> <option value="15" <cfif dist IS 15>selected="selected"</cfif>>15 Miles</option> <option value="20" <cfif dist IS 20>selected="selected"</cfif>>20 Miles</option> </select> </div> </fieldset> <div style="display: inline-block; margin-left:15px"> <input type="submit" value="Search" /> </div> <div style="display: inline-block; margin-left:85px"> <input type="button" value=" Clear " onClick="ClearForm()"> </div> </form> </div> 

  1. I am trying to figure out a way, in javascript, to run a different script depending on which input is selected. 我试图找出一种方法,使用javascript,根据选择的输入来运行不同的脚本。 If the user selects any of the inputs in the "Search By Provider Credentials", then run a particular script, otherwise run the other script. 如果用户选择“按提供者凭据搜索”中的任何输入,则运行特定的脚本,否则运行其他脚本。

How can I achieve this? 我该如何实现?

Thank You 谢谢

A simple way of putting the two fieldsets side by side is having a container with a width, both fieldsets inside that container (div) and then setting 将两个字段集并排放置的一种简单方法是使容器具有一定的宽度,两个字段集都放在该容器中(div),然后进行设置

width: 50%;
float: left;

that will bring them side by side, but it might break your layout within the fieldset if the container width is too small. 这样可以使它们并排放置,但是如果容器宽度太小,则可能会破坏您在字段集中的布局。 Also you should add an element with clear: both applied or you can add overflow: hidden to the container 另外,您应该添加一个带有clear: both元素的元素,或者clear: both应用,或者您可以添加overflow: hidden到容器中

For second problem, the simplest solution i can think of (and requires no javaScript) is to separate the form into 2 forms (and have 2 separate submit buttons). 对于第二个问题,我能想到的最简单的解决方案(并且不需要javaScript)是将表单分成2个表单(并具有2个单独的提交按钮)。 then each form has its own action. 那么每种形式都有其自己的作用。 If you do want to have only one submit button you need to decide the rules on what field(s) are deciding which script gets called and writing them in a function that gets called on submit. 如果确实只希望有一个提交按钮,则需要确定有关哪些字段正在决定要调用哪个脚本的规则,并将它们写入在提交时被调用的函数中。 The problem i see with this approach is, what do you choose for when user fills data in both fieldsets (or some data from one fieldset and some from the other). 我看到的这种方法的问题是,当用户在两个字段集中都填充数据(或来自一个字段集中的某些数据而来自另一个字段的一些数据)时,您会选择什么。

plain JS onsubmit example 纯JS onsubmit示例

jquery .submit docs jQuery .submit文档

EDIT - some more information about submitting the form to 2 different locations, based on user input. 编辑-有关基于用户输入将表单提交到2个不同位置的更多信息。 I'm going to assume you are using jQuery as well. 我将假设您也使用jQuery。 If you are not, you don't need to add it just for this small part, as it should be fairly similar also in plain JS. 如果不是这样,则不必仅为这一小部分添加它,因为它在纯JS中也应该非常相似。

$("form").on("submit", function(e) {
    e.preventDefault(); //prevent the default form submit action
    var firstFormHasData = false;

    //here goes all the checking e.g. (check if some option is selected in #job select
    if($("#job").val() !== "") {
        firstFormHasData = true;
    }

    //other similar checks for other fields
    //...

    //decide what action to take
    var action = "path/to/action2.php";
    if(firstFormHasData) {
        action = "path/to/action1.php";
    }

    //submit the form
    $("form").attr("action", action).submit();

EDIT2 - just realized you could simply add one class to all form elements in first part and another to all form elements in second part (or also just leave it without that class). EDIT2-刚意识到您可以将一个类简单地添加到第一部分中的所有表单元素,而将另一个类添加到第二部分中的所有表单元素(或者也可以不添加该类)。 Then attach the "change" listeners to all your form elements and when something is changed you can check if that element has first class and act accordingly. 然后将“ change”侦听器附加到所有表单元素上,并在更改某些内容时可以检查该元素是否具有第一类并采取相应措施。 example you decide to add class "first-part" to all elements in first part of form then code would be: 例如,您决定将类“第一部分”添加到表单第一部分的所有元素中,则代码将是:

$("input, select").on("change", function() {
    if($(this).hasClass("first-part") {
        //change the form action to be first action
        $("form").attr("action", "path/to/action1.php")
    }
    else {
        $("form").attr("action", "path/to/action1.php")
    }
});

 $("#cred input, #cred select").change(function() { // Do what credential search needs alert("credential"); }); $("#zip input, #zip select").change(function() { // Do what zip code search needs alert("zip code"); }); 
 enter code here .form-style-5 { max-width: 800px; padding: 10px 20px; background: #f4f7f8; margin: 10px auto; padding: 20px; background: #f4f7f8; border-radius: 8px; font-family: Georgia, "Times New Roman", Times, serif; } .form-style-5 fieldset { border: none; } .form-style-5 legend { font-size: 1.4em; margin-bottom: 10px; } .form-style-5 label { display: block; margin-bottom: 8px; } .form-style-5 input[type="text"], .form-style-5 input[type="date"], .form-style-5 input[type="datetime"], .form-style-5 input[type="email"], .form-style-5 input[type="number"], .form-style-5 input[type="search"], .form-style-5 input[type="time"], .form-style-5 input[type="url"], .form-style-5 textarea, .form-style-5 select { font-family: Georgia, "Times New Roman", Times, serif; background: rgba(255, 255, 255, .1); border: none; border-radius: 4px; font-size: 16px; margin: 0; outline: 0; padding: 7px; width: 100%; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; background-color: #e8eeef; color: #8a97a0; -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset; margin-bottom: 30px; } .form-style-5 input[type="text"]:focus, .form-style-5 input[type="date"]:focus, .form-style-5 input[type="datetime"]:focus, .form-style-5 input[type="email"]:focus, .form-style-5 input[type="number"]:focus, .form-style-5 input[type="search"]:focus, .form-style-5 input[type="time"]:focus, .form-style-5 input[type="url"]:focus, .form-style-5 textarea:focus, .form-style-5 select:focus { background: #d2d9dd; } .form-style-5 select { -webkit-appearance: menulist-button; height: 35px; } .form-style-5 .number { background: #FF9900; color: #fff; height: 30px; width: 30px; display: inline-block; font-size: 0.8em; margin-right: 4px; line-height: 30px; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2); border-radius: 15px 15px 15px 0px; } .form-style-5 input[type="submit"], .form-style-5 input[type="button"] { position: relative; display: block; padding: 19px 39px 18px 39px; color: #FFF; margin: 0 auto; background: #FF9900; font-size: 18px; text-align: center; font-style: normal; width: 100%; border-width: 1px 1px 3px; margin-bottom: 10px; height: 55px; } .form-style-5 input[type="submit"]:hover, .form-style-5 input[type="button"]:hover { background: grey; } .formSpacing { margin-top: 10px; } .inputWidth1 { width: 80% !important; } .inputWidth2 { width: 70% !important; } .form-style-5 > form > div { vertical-align: top; } 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="form-style-5"> <form> <div id="cred" style="display: inline-block;"> <fieldset> <legend><span class="number">1</span> Search By Provider Credentials</legend> <div style="display: block;"> <div style="display: inline-block;"> <label class="formSpacing" for="job">Provider Name</label> <input class="inputWidth1" type="text" name="Name" placeholder="Provider Name *"> </div> <div style="display: inline-block; margin-left:20px"> <label for="job">Provider Speciality</label> <select id="job" name="Specialty"> <option value="">Select a Specialty *</option> <option value="PCP">Primary Care Physician</option> <option value="Pediatrics">Pediatrics</option> </select> </div> </div> <div style="display: block;"> <div style="display: inline-block;"> <label class="formSpacing" for="job">Gender</label> <select id="job" name="Gender"> <option value="">Select a Gender *</option> <option value="PCP">Male</option> <option value="Pediatrics">Female</option> </select> </div> <div style="display: inline-block; margin-left:55px"> <label for="job">City</label> <select id="job" name="City"> <option value="">City *</option> <cfoutput query="cityFind"> <option value=#city#>#city#</option> </cfoutput> </select> </div> </div> </fieldset> </div> <div id="zip" style="display: inline-block;"> <fieldset> <legend><span class="number">2</span> or Search by Zip Code</legend> <div style="display: inline-block;"> <label class="formSpacing" for="job">Zip Code</label> <input class="inputWidth2" type="text" name="Name" placeholder="Zip Code *"> </div> <div style="display: inline-block; margin-left:20px"> <label for="job">Select Distance</label> <select class="inputWidth2" id="job" name="Specialty"> <option value="">Select Distance *</option> <option value="5" <cfif dist IS 5>selected="selected"</cfif>>5 Miles</option> <option value="10" <cfif dist IS 10>selected="selected"</cfif>>10 Miles</option> <option value="15" <cfif dist IS 15>selected="selected"</cfif>>15 Miles</option> <option value="20" <cfif dist IS 20>selected="selected"</cfif>>20 Miles</option> </select> </div> </fieldset> </div> <div style="display: block;"> <div style="display: inline-block; margin-left:15px"> <input type="submit" value="Search" /> </div> <div style="display: inline-block; margin-left:85px"> <input type="button" value=" Clear " onClick="ClearForm()"> </div> </div> </form> </div> 

1. This should result in what you need, the changes were some added divs around the parts of the forms and two lines of css to get the right side of the form in place and enlarge the holding div as the form got wider. 1.这将满足您的需要,所做的更改是在表单的各个部分周围添加了一些div,并在css的两行中添加了div,以使表单的右侧就位,并随着表单的变大而扩大了保留div。 If you see it in one column use the full page in the snippet preview as the preview width might not be enough to hold the form width. 如果您在一栏中看到它,请在代码段预览中使用整页,因为预览宽度可能不足以容纳表单宽度。

2. I added some JavaScript, but without more information it might not be what you need, as it runs when you actually change something and it uses jquery. 2.我添加了一些JavaScript,但是没有更多信息,它可能并不是您所需要的,因为它在您实际更改某些内容并使用jquery时运行。

Wrap your second fieldset in a div element with an id, or class. 将第二个字段集包装在具有id或class的div元素中。 preferably an id. 最好是一个ID。 Optionally give your body css a width...Float the field-form-5 to the left, and float the newly created div to the right. (可选)为您的身体CSS设置一个宽度...将field-form-5浮动到左侧,并将新创建的div浮动到右侧。 Adjust widths as needed. 根据需要调整宽度。

     <!DOCTYPE HTML>
     <html>
     <style>

     /*option body width*/
     body {
     width: 1100px;
     margin: 0 auto;
     }
     /*Added div tag to second fieldset*/
     #right-side {
     width: 500px;
     float:right;
     }
     .form-style-5{
      max-width: 500px;
      padding: 10px 20px;
      background: #f4f7f8;
      margin: 10px auto;
      padding: 20px;
      background: #f4f7f8;
      border-radius: 8px;
      font-family: Georgia, "Times New Roman", Times, serif;
      float:left;
     }
     .form-style-5 fieldset{
      border: none;
     }
     .form-style-5 legend {
      font-size: 1.4em;
      margin-bottom: 10px;
     } 
     .form-style-5 label {
     display: block;
     margin-bottom: 8px;
     }
     .form-style-5 input[type="text"],
     .form-style-5 input[type="date"],
     .form-style-5 input[type="datetime"],
     .form-style-5 input[type="email"],
     .form-style-5 input[type="number"],
     .form-style-5 input[type="search"],
     .form-style-5 input[type="time"],
     .form-style-5 input[type="url"],
     .form-style-5 textarea,
     .form-style-5 select {
     font-family: Georgia, "Times New Roman", Times, serif;
      background: rgba(255,255,255,.1);
     border: none;
     border-radius: 4px;
     font-size: 16px;
     margin: 0;
     outline: 0;
     padding: 7px;
     width: 100%;
     box-sizing: border-box; 
     -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box; 
      background-color: #e8eeef;
     color:#8a97a0;
     -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
     box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
     margin-bottom: 30px;
     </style>
</html>
<body>
<div id="left-side"> <!--NEW DIV OPTIONAL -->
<div class="form-style-5">
    <form>
        <fieldset>
            <legend><span class="number">1</span> Search By Provider Credentials </legend>

        <div style="display: inline-block;">
            <label class="formSpacing" for="job">Provider Name</label>
                <input class="inputWidth1" type="text" name="Name" placeholder="Provider Name *">
        </div>

        <div style="display: inline-block; margin-left:20px">
            <label for="job">Provider Speciality</label>
                <select id="job" name="Specialty">
                    <option value="">Select a Specialty *</option>
                    <option value="PCP">Primary Care Physician</option>
                    <option value="Pediatrics">Pediatrics</option>
                </select>  
        </div>
        <div style="display: inline-block;">
            <label class="formSpacing" for="job">Gender</label>
                <select id="job" name="Gender">
                    <option value="">Select a Gender *</option>
                    <option value="PCP">Male</option>
                    <option value="Pediatrics">Female</option>
                </select>  
        </div>
        <div style="display: inline-block; margin-left:55px">
            <label for="job">City</label>
                <select id="job" name="City">
                    <option value="">City *</option> 
                        <cfoutput query="cityFind">
                            <option value=#city#>#city#</option>
                    </cfoutput> 
                </select>  
        </div>
</div>
</fieldset>

<div id="right-side"> <!-- DIV FOR FLOATING CONTENT RIGHT.-->
<fieldset>
    <legend><span class="number">2</span> or Search by Zip Code</legend>

    <div style="display: inline-block;">
        <label class="formSpacing" for="job">Zip Code</label>
            <input class="inputWidth2" type="text" name="Name" placeholder="Zip Code *">
    </div>

    <div style="display: inline-block;  margin-left:20px">
        <label for="job">Select Distance</label>
            <select class="inputWidth2" id="job" name="Specialty">
                <option value="">Select Distance *</option>
                <option value="5" <cfif dist IS 5>selected="selected"</cfif>>5 Miles</option>
                <option value="10" <cfif dist IS 10>selected="selected"</cfif>>10 Miles</option>
                <option value="15" <cfif dist IS 15>selected="selected"</cfif>>15 Miles</option>
                <option value="20" <cfif dist IS 20>selected="selected"</cfif>>20 Miles</option>  
            </select>  
    </div>
</fieldset>
    <div style="display: inline-block; margin-left:15px">
        <input type="submit" value="Search" />
    </div>
    <div style="display: inline-block; margin-left:85px">
        <input type="button" value=" Clear " onClick="ClearForm()">
    </div>
</form>
</div>
</body>

I messed up one of your styles by accident, but i'm sure you can fix it. 我无意间弄乱了您的一种样式,但我敢肯定您可以解决它。

我怎样才能得到一个<div>漂浮在另外两个之上<div> s 如果空间太窄,三个人都不能并排?</div><div id="text_translate"><p> 我有一个由两个&lt;div&gt;并排组成的进度条,在&lt;dd&gt;内浮动到右侧。 在进度条的左侧,我在另一个&lt;div&gt;中有一些文本。 如果&lt;dd&gt;太窄,我希望&lt;div&gt;包含文本到进度条顶部的 go,而不是分成两行。</p><p> 我正在使用 bootstrap.css 没有修改: </p><p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"><div class="snippet-code"><pre class="snippet-code-css lang-css prettyprint-override"> .col-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }.my-0 { margin-top: 0;important. }:py-2 { padding-top. 0;5rem.important: };float-left { float. left:important; }.float-right { float: right;important. }:bg-success { background-color; #28a745 !important; } .bg-danger { background-color: #dc3545 !important; }</pre><pre class="snippet-code-html lang-html prettyprint-override"> &lt;dd class="col-6 my-0"&gt; &lt;div class="float-left"&gt;Some text&lt;/div&gt; &lt;div class="py-2 float-right bg-success" style="width:10px;"&gt;&lt;/div&gt; &lt;div class="py-2 float-right bg-danger" style="width:90px;"&gt;&lt;/div&gt; &lt;/dd&gt;</pre></div></div><p></p><p> 我尝试将z-index添加到&lt;div&gt; ,但无法达到我想要的效果。</p><p> 怎么做?</p></div></div> - How can I get a <div> to float on top of two other <div>s if the space is too narrow for all three to stay side-by-side?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何并排获得两个表单字段,每个字段的 label 在字段上方,在 CSS 中? - How can I get two form fields side-by-side, with each field’s label above the field, in CSS? 如何并排获得这两个div? - How to get these two divs side-by-side? 我试图让表单的字段在移动设备上堆叠,但在桌面设备上并排放置(flexbox) - I'm trying to get the fields of a form to stack when on mobile but stay side-by-side when on desktop (flexbox) 如何并排放置两个输入字段 - How to Place Two Input Fields Side-by-Side 似乎无法让两个要素并存 - Can't seem to get two elements to be side-by-side 我怎样才能得到一个<div>漂浮在另外两个之上<div> s 如果空间太窄,三个人都不能并排?</div><div id="text_translate"><p> 我有一个由两个&lt;div&gt;并排组成的进度条,在&lt;dd&gt;内浮动到右侧。 在进度条的左侧,我在另一个&lt;div&gt;中有一些文本。 如果&lt;dd&gt;太窄,我希望&lt;div&gt;包含文本到进度条顶部的 go,而不是分成两行。</p><p> 我正在使用 bootstrap.css 没有修改: </p><p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"><div class="snippet-code"><pre class="snippet-code-css lang-css prettyprint-override"> .col-6 { -ms-flex: 0 0 50%; flex: 0 0 50%; max-width: 50%; position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }.my-0 { margin-top: 0;important. }:py-2 { padding-top. 0;5rem.important: };float-left { float. left:important; }.float-right { float: right;important. }:bg-success { background-color; #28a745 !important; } .bg-danger { background-color: #dc3545 !important; }</pre><pre class="snippet-code-html lang-html prettyprint-override"> &lt;dd class="col-6 my-0"&gt; &lt;div class="float-left"&gt;Some text&lt;/div&gt; &lt;div class="py-2 float-right bg-success" style="width:10px;"&gt;&lt;/div&gt; &lt;div class="py-2 float-right bg-danger" style="width:90px;"&gt;&lt;/div&gt; &lt;/dd&gt;</pre></div></div><p></p><p> 我尝试将z-index添加到&lt;div&gt; ,但无法达到我想要的效果。</p><p> 怎么做?</p></div></div> - How can I get a <div> to float on top of two other <div>s if the space is too narrow for all three to stay side-by-side? 为什么我不能得到两个 <p> 元素可以并排并按中心对齐? - Why can't I get two <p> elements to be side-by-side and aligned by center? 我该如何显示? <ul> 作为使用CSS的两个并排列? - How can I display a <ul> as two side-by-side columns using CSS? 如何将嵌套列表并排放置? - How can I position nested lists side-by-side? 如何使用 Flexbox 或 DIV 并排显示列? - How can I display columns side-by-side with Flexbox or DIV?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM