【发布时间】:2014-08-16 02:33:30
【问题描述】:
我正在尝试使用引导程序为我的网格赋予样式,但它使它覆盖了所有页面。我试图使包含表格的 div 更小,但它没有用。如何覆盖引导样式?
HTML
<!doctype html>
<html ng-app='calendar'>
<head>
<title>Calendar</title>
<link rel="stylesheet" type="text/css" href="static/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="static/mystyle.css">
<script type="text/javascript" src="static/angular.min.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body >
<div class='wrapper' ng-controller='GridCtrl as grid'>
<div class="week-calendar">
<table class="table table-striped table-bordered table-condensed" width="100">
<tbody>
<tr ng-repeat="row in grid.rows">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
我的样式表覆盖引导程序
.week-calendar{
width: 400;
}
.table-striped tbody tr.active:nth-child(odd) td, .table-striped tbody tr.active:nth-child(odd) th {
background-color: black;
}
【问题讨论】:
标签: html css twitter-bootstrap