gpt4 book ai didi

css - Contact Form 7 - 同一行上的多个文本字段

转载 作者:技术小花猫 更新时间:2023-10-29 11:31:21 25 4
gpt4 key购买 nike

我正在使用 Contact Form 7 设计酒店预订表。

http://istanabalian.com/book/

我不知道如何自定义布局。我希望某些文本字段显示在同一行上,但我找不到正确的元素标识和/或要使用哪种 CSS 样式来实现这个非常简单的目标。

代码如下:

<div id="responsive-form" class="clearfix">

<label> Your Name (required)
[text* your-name] </label>

<label> Your Email (required)
[email* your-email] </label>

<label> Arrival date
[date date-79 id:Arrivaldate date-format:mm/dd/yy] </label>

<label> Departure date
[date date-80 id:Departuredate date-format:mm/dd/yy] </label>

<label> How many guests?
[text your-guests] </label>

<div class="form-row">
<p>Number of adults [text your-adults]</p>
<p>Number of children under 6 years old [text your-little-children]</p>
<p>Number of children under 12 years old [text your-big-children]</p>
</div>

Select your preferred accomodation
[checkbox your-accomodation use_label_element "Wayan (Two-story villa)" "Kadek (Two-story villa)" "Nyoman (Garden bungalow)" "Kehut (Garden bungalow)" "Pasca (Garden bungalow)"]

Do you need transportation to the hotel ?
[radio your-pickup default:1 use_label_element exclusive "No transport needed" "Transport from Denpasar airport" "Transsport from Gilimanuk Ferry"]

<label> Do you want us to arrange motorbike rental for you ?
[text your-motorbikes] </label>

<label> Tell us more about what brings you to Balian
[textarea your-message] </label>

[submit "Send"]

</div>

我想在一行中显示 form-row 元素的 p 个元素。我试过这条 CSS 行:

.form_row p{
display: inline-block
}

但它什么也没做。我觉得我错过了什么,有人可以帮忙吗?

非常感谢,

本杰明

最佳答案

您可能有一个 CSS 规则使 <p>元素全 Angular 。

为什么不使用 <div>并使用主题的类?

<div class="form-row">
<div class="grid-33">Number of adults [text your-adults]</div>
<div class="grid-33">Number of children under 6 years old [text your-little-children]</div >
<div class="grid-33">Number of children under 12 years old [text your-big-children]</div>
</div>

关于css - Contact Form 7 - 同一行上的多个文本字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42872032/

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