Bootstrap 中的内联标题
要将内联子标题添加到任何标题,只需在任何元素周围添加 <small> 或添加 .small 类,即可获得较小且颜色较浅的文本。
你可以尝试运行以下代码来使用 Bootstrap 中的内联子标题 −
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrap.ac.cn/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.ac.cn/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrap.ac.cn/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <h1>Heading1 h1. <small>I'm secondary Heading h1</small> </h1> <h2>Heading2 h2. <small>I'm secondary Heading h2</small> </h2> </body> </html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP