我开始在ASP.NET 4.0中使用Bootstrap。
我已经将bootstrap导入到我的项目中,并添加了示例代码中所示的jQuery脚本行。
下面是我尝试添加的Panel的代码:
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Customer ID</h3>
</div>
<div class="panel-body">
Customer Id Input
</div>
</div>文本会显示,但不会显示为引导程序面板。
谢谢你的建议。
发布于 2016-12-02 05:51:15
应该能行得通。您可能有来自其他css的问题或缺少引导css。你有可能有一些其他的css代码覆盖引导css。
若要确认,请检查面板元素的元素,并查看该元素使用了哪些类!
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Customer ID</h3>
</div>
<div class="panel-body">
Customer Id Input
</div>
</div>
看起来你的html格式有问题:
https://stackoverflow.com/questions/40919335
复制相似问题