简体   繁体   English

通过CSS在div中合并文本

[英]Combining text within div via css

Is it possible to combine all the text in one. 是否可以将所有文本合并为一个。 Below I gave an example of how not right. 下面我举一个不正确的例子。 I would like to make the word "ОН" was common cause with the text below. 我想在下面的文字中加上“ОН”一词是常见原因。

I would like to like this: https://www.dropbox.com/s/e3qzv55rbopefet/good.png?dl=0 我想这样: https : //www.dropbox.com/s/e3qzv55rbopefet/good.png?dl=0

Roughly speaking I need a div with the attribute "el", to connect with the upper elements. 粗略地说,我需要一个具有“ el”属性的div来连接上层元素。 Possible and through js, if there is a solution ... but these attributes are not lost. 如果有解决方案,可以通过js进行,但是这些属性不会丢失。 Thank you! 谢谢!

http://jsfiddle.net/syxc5yv4/ http://jsfiddle.net/syxc5yv4/

#content-area {
    visibility: visible;
    position: relative;
    z-index: 1;
    left: 0px;
    -webkit-column-width: 595px;
    -webkit-column-gap: 99px;
    top: 0px;
}
#content-area > div {
    display: inline;
}
#content-area > div div {
    white-space: normal;
    text-indent: 30px;
}

Add display:inline to the #content-area > div div class display:inline添加到#content-area > div div

    #content-area > div div {
    white-space: normal;
    display: inline;
    padding-right: 5px;
}

FIDDLE 小提琴

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM