为了使元素看起来像标题,您可以尝试运行以下代码-
<!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 = "container"> <h1>Planet</h1> <h2>Earth</h2> <h3>Asia</h3> <h4>India</h4> <h5>Hyderabad</h5> <h6>Madhapur</h6> </div> </body> </html>