[英]How to force two element alignment in the same line bootstrap model
<h4 class="modal-title">
Simple title
<div id="abs">1419698355</div>
</h4>
Using this code i'm getting the simple title on one line and the id on the next line. 使用此代码,我在一行上获得了简单的标题,在下一行上获得了id。 How can i force them to be display the same line?
我如何强制它们显示同一行?
#abs{display:inline}
<h4 class="modal-title">
Simple title
<div id="abs">1419698355</div>
</h4>
Or you can just use the attribute 或者您可以只使用属性
<h4 class="modal-title">
Simple title
<span id="abs">1419698355</span>
</h4>
give style to abs as float left 给abs风格向左浮动
#abs{
float:left;
}
<div id="abs" style="float:left;">1419698355</div>
Element <div>
is not allowed as a child of element <h2>
in HTML 4.01/XHTML. 在HTML 4.01 / XHTML中,元素
<div>
不允许作为元素<h2>
的子元素。 But, in HTML5 it is allowed.: 但是,在HTML5中是允许的:
#abs{display:inline}
<h4 class="modal-title">
Simple title
<span id="abs">1419698355</span>
</h4> `
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.