Popover up

Description

The following code shows how to popover up.

Example


<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link rel="stylesheet"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
<script type="text/javascript"
  src="http://code.jquery.com/jquery.min.js"></script>
<script
  src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){<!--from w  w w  . j ava 2s. c o  m-->
    $(".popover-examples a").popover({
        placement : 'top'
    });
});
</script>
<style type="text/css">
.bs-example {
  margin: 150px 50px;
}
</style>
</head>
<body>
  <div class="bs-example">
    <ul class="popover-examples list-inline">
      <li><a href="#" class="btn btn-primary" data-toggle="popover"
        title="Popover title" data-content="Default popover">Popover</a></li>
      <li><a href="#" class="btn btn-success" data-toggle="popover"
        title="Popover title" data-content="Another popover">Another
          popover</a></li>
      <li><a href="#" class="btn btn-info" data-toggle="popover"
        title="Popover title"
        data-content="A larger popover to demonstrate the max-width of the Bootstrap popover.">Large
          popover</a></li>
      <li><a href="#" class="btn btn-warning" data-toggle="popover"
        title="Popover title" data-content="The last tip!">Last popover</a></li>
    </ul>
  </div>
</body>
</html>

Click to view the demo





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well