Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

60 linhas
2.8 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <link rel="shortcut icon" href="../../assets/ico/favicon.ico">
  10. <title>Tooltip Viewport Example for Bootstrap</title>
  11. <!-- Bootstrap core CSS -->
  12. <link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
  13. <!-- Custom styles for this template -->
  14. <link href="tooltip-viewport.css" rel="stylesheet">
  15. <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  16. <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  17. <script src="../../assets/js/ie-emulation-modes-warning.js"></script>
  18. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  19. <!--[if lt IE 9]>
  20. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  21. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  22. <![endif]-->
  23. </head>
  24. <body>
  25. <button type="button" class="btn btn-default pull-right tooltip-bottom" title="This should be shifted to the left">Shift Left</button>
  26. <button type="button" class="btn btn-default tooltip-bottom" title="This should be shifted to the right">Shift Right</button>
  27. <button type="button" class="btn btn-default tooltip-right" title="This should be shifted down">Shift Down</button>
  28. <button type="button" class="btn btn-default tooltip-right btn-bottom" title="This should be shifted up">Shift Up</button>
  29. <div class="container-viewport">
  30. <button type="button" class="btn btn-default tooltip-viewport-bottom" title="This should be shifted to the left">Shift Left</button>
  31. <button type="button" class="btn btn-default tooltip-viewport-right" title="This should be shifted down">Shift Down</button>
  32. <button type="button" class="btn btn-default pull-right tooltip-viewport-bottom" title="This should be shifted to the right">Shift Right</button>
  33. <button type="button" class="btn btn-default tooltip-viewport-right btn-bottom" title="This should be shifted up">Shift Up</button>
  34. </div>
  35. <!-- Bootstrap core JavaScript
  36. ================================================== -->
  37. <!-- Placed at the end of the document so the pages load faster -->
  38. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  39. <script src="../../dist/js/bootstrap.min.js"></script>
  40. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  41. <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  42. <script src="tooltip-viewport.js"></script>
  43. </body>
  44. </html>