BV

A simple picture enlargement view plugin based on Bootstrap.

Download Getting started

Current version: v1.0.0

Designed for Twitter Bootstrap

Bootstrap Viewer has been designed to reduce development time and to require no specific knowledge from developers. It is both featherweight and feature-rich.

Getting started

        $title(demo code:)
        <!DOCTYPE html>
        <html>
        <head>
            <title></title>
            <!-- Introducing the bootstrap style css file-->
            <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
        </head>
        <body>
                <!-- demo image -->
                <img src="assets/img/demo1.jpg" width="400" class="viewer img-responsive"/>
        <!--Introduce the necessary js file-->
        <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
        <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.js"></script>
        <script src="dist/bootstrap.viewer.min.js"></script>
        <script type="text/javascript">
            $(function () {
                $('.viewer').bootstrapViewer();//The default image source file path is the src attribute of the img tag.
            })
        </script>
        </body>
        </html>