Bootstrap面板的使用-默认
对于基本面板,将类.panel添加到<div>元素。这样,将.panel-default类添加到此元素。
您可以尝试运行以下代码以实现面板默认类
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class = "panel panel-default">
<div class = "panel-body">
This is demo text in a panel.
</div>
</div>
</body>
</html>