加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

html – 如何使用CSS在两行之间添加空格?

发布时间:2020-12-14 19:40:37 所属栏目:资源 来源:网络整理
导读:我想用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
我想用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;}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读