半行休息< br> [英] Make a half row break <br>

查看:68
本文介绍了半行休息< br>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想删除这两个元素的行之间的空间,我将如何做到这一点。示例:

示例1 http://pokit.org/get /img/6be8921b47ff746c1bf297cf87ab0950.jpg



如果我删除< br> ,它会像这就是它的样子:



示例2 http: //pokit.org/get/img/1924cb8a9b344bb4f4eda1a98760fd3e.jpg



行将彼此关闭。我想知道如何制作< br> 标签的一半。如果你明白我的问题?



两行之间的距离应该小于示例1中的宽度,但要高于示例2中的宽度。



这是使用的代码

 < span class =tekst> Sie besuchtenDüsseldorfals:< / span>< BR> 
< select name =posjetaclass =optiontekst>
< option> - bittewählen - < / option>
< option>Geschäftsreisende< / option>
< option>私人空间< / option>
< / select>
< br>< br>

而课程tekst

  .tekst {
font-family:'Bree Serif',serif;
颜色:#2980b9;
}

我知道我没有解释清楚,但我尽力了。

解决方案

< br> 标记只是在标准换行符中添加该文件。您可以调整CSS中< br> 元素的大小:

  br {
line-height:10px;
}

或者您可以使用< hr> ; ;设置高度并将其隐藏

 < hr style =height:10px; visibility:hidden; /> 


If i want to remove the space between rows of those two element's how would i do that. Example:

Example 1 http://pokit.org/get/img/6be8921b47ff746c1bf297cf87ab0950.jpg

If i remove the <br> it would be like this then this is how it looks like:

Example 2 http://pokit.org/get/img/1924cb8a9b344bb4f4eda1a98760fd3e.jpg

The rows are to close one to other. I wonder how can i make like half of the <br> tag . If you understand my question ?

The space between two rows should be less than in example 1. but higher then in example 2.

This is code used

    <span class="tekst">Sie besuchten Düsseldorf als:</span><br>
    <select name="posjeta" class="optiontekst">
        <option>- bitte wählen -</option>
        <option>Geschäftsreisende</option>
        <option>Privatperson</option>
    </select>
    <br><br>

And the class tekst

.tekst{
    font-family: 'Bree Serif', serif;
    color: #2980b9;
    }

I know i didn't explained well but i tried my best.

解决方案

The <br> tag just adds in a standard line break to the document. You can adjust the size of the <br> element in your CSS:

  br {
    line-height: 10px;
 }

Or you can use a trick with <hr>; setting the height and making it invisible

<hr style="height:10px; visibility:hidden;" />

这篇关于半行休息&lt; br&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆