Task description(You may incl-6ren">
gpt4 book ai didi

html - 如何使用 CSS 在两个 <input> 行之间添加空格?

转载 作者:太空狗 更新时间:2023-10-29 13:06:47 25 4
gpt4 key购买 nike

我想用 CSS 控制布局。如何调节 <input> 之间的空格元素(我希望它们在两行上)使用 CSS?

<form name="publish" id="publish" action="publishprocess.php" method="post">
Title:<input type="text" id="title" name="title" size="60" maxlength="110" value="<?php echo $title ?>" <br/>
<div>Contact<input type="text" id="contact" name="contact" size="24" maxlength="30" value="<?php echo $contact ?>" /></div><br/> Task description(You may include task description, requirements on bidders, time requirements,etc):<br/>
<textarea name="detail" id="detail" rows="7" cols="60" style="font-family:Arial, Helvetica, sans-serif"><?php echo $detail ?></textarea>

<br/><br/> price <input type="text" id="price" name="price" size="10" maxlength="20" value="<?php echo $price ?>" /><br/>
<label> Skill or Knowledge Tags</label><br/><input class="tagvalidate" type="text" id="tag" name="tag" size="40" maxlength="60" value="<?php echo $tag ?>" />
<br/><label>Combine multiple words into single-words, space to separate up to 3 tags<br/>(Example:photoshop quantum-physics computer-programming)</label><br/><br/> District Restriction:
<?php echo $locationtext.$cityname; ?><br/><br/>

<input type="submit" id="submit" value="submit" /></form>

如你所见,我使用 <br/>分隔元素并获取空格,有没有更好的方法?

最佳答案

#detail {margin-bottom:5px;}

关于html - 如何使用 CSS 在两个 &lt;input&gt; 行之间添加空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1896567/

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