我想有這樣的事情:獲取span元素填充空間一個div
|--------------fixed width---------------| Title1 .......................... value1 Title2 ................... another value Another title ........ yet another value
這裏是我的HTML代碼示例:
<div class="container">
<span class="left">Title</span>
<span class="center"> </span>
<span class="right">value</span>
</div>
在這裏,我的CSS:
.center {
text-align: center;
border-bottom: 1px dotted blue;
display: inline-block;
outerWidth: 100%;
}
.right {
display: block;
border: 1px dotted red;
float: right;
}
.left {
display: block;
text-align: right;
border: 1px dotted red;
margin-right: 0px;
float: left;
}
.container {
width: 200px;
border: 1px dotted red;
padding: 5px;
}
是否可以使跨度「中心」展開以填充其他兩個跨度元素之間的空間?
守則的jsfiddle:http://jsfiddle.net/XqHPh/
謝謝!
您想要爲此創建和擴展範圍嗎? – Nitesh
我想他可能想要一排點... –