这就是我得到的:
我希望右上角的关闭按钮是一个 X,我相信它应该是默认的。请记住,模态可以完美运行,当我单击关闭按钮 (A~-) 时,它会按预期工作。我尝试在 IE、Chrome 和 Firefox 上运行它,但在所有情况下问题仍然存在。
有任何想法吗?
<div id="group" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="groupLabel"
aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="groupLabel">Add group</h3>
</div>
<div ng-controller="Ctrl">
<form ng-submit="addGroup(newGroup, newColor); newGroup='';">
<div class="modal-body">
<div class="row-fluid">
<div class="span3 offset3">
Group name
</div>
<div class="span6">
<input class="input-block-level" type="text" ng-model="newGroup">
</div>
</div>
<div class="row-fluid">
<div class="span3 offset3">
Group color
</div>
<div class="span6">
<select ng-model="newColor" class="input-block-level">
<option value="">None</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
<option value="orange">Orange</option>
<option value="cyan">Cyan</option>
</select>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<input class="btn btn-primary" type="submit" value="Save changes">
</div>
</form>
</div>
</div>
这是感兴趣的行:
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
这些是我的包括:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
<script type="text/javascript" src="js/angular.js"></script>
<script type="text/javascript" src="js/controller.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/ui-bootstrap.js"></script>
<script type="text/javascript" src="js/angular-ui-if.js"></script>
<link rel="stylesheet" href="css/bootstrap/css/bootstrap.css">