我正在尝试将某些按钮和输入框与表格对齐。前一天和后一天可能会或可能不会出现在页面上,具体取决于是否存在一天。下面是开始代码、当前输出和所需输出。
<!DOCTYPE html>
<html lang="en">
<head>
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div class="container">
<form class = "form-inline" >
<h1>some data</h1>
<br>
<button class="btn" name = "prevDayBtn"><i class="icon-backward"></i> Previous Day</button>
<input type='text' READONLY name = 'pageDate' value = '2013-05-18' />
<button class="btn" name = "nextDayBtn" >Next Day <i class="icon-forward"></i></button>
<br>
<br>
<table class = "table table-striped">
<th>col1</th><th>col2</th><th>col3</th><th>col4</th><th>col5</th><th>col6</th><th>col7</th><th>col8</th>
</table>
</form>
</div> <!-- /container -->
</body>
</html>
电流输出
期望的输出
编辑:
我尝试了 Accipheran 答案并得到了以下结果。还向 jsFiddle http://jsfiddle.net/Y9SLs/1/添加了代码