<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Gitte - 开源个人博客网站</title>
    <link rel="stylesheet" href="./bootstrap-3.3.7-dist/bootstrap.css">
    <script src="./bootstrap-3.3.7-dist/js/bootstrap.js"></script>
    <script src="./js/jquery-1.11.0.min.js"></script>
    <style>
        h1 {
            text-align: center;
            font-size: 50px;
            font-weight: bold;
            margin-top: 80px;
        }
<pre><code>    p {
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
    }
&lt;/style&gt;
</code></pre>
</head>
<body>
    <!-- 顶部导航条 -->
    <nav class="navbar navbar-default navbar-fixed-top ">
        <div class="container">
            <div class="navbar-heard">
                <button type="button" class="navbar-toggle " data-toggle="collapse" data-target="#">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="#" class="navbar-brand">Gitte</a>
            </div>
            <div class="collapse navbar-collapse" id="mynavbar">
                <ul class="nav navbar-nav">
                    <li><a href="#">首页</a></li>
                    <li><a href="#">开源软件</a></li>
                    <li><a href="#">动态</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#" class="denglu">登录</a></li>
                    <li><a href="#">注册</a></li>
                </ul>
                <form class="navbar-form navbar-right" role="search">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="搜索">
                    </div>
                </form>
            </div>
        </div>
    </nav>
<pre><code>&lt;!-- 页面内容 --&gt;
&lt;div class=&quot;container main&quot;&gt;
    &lt;h1&gt;欢迎访问我们的网站&lt;/h1&gt;
    &lt;p&gt;
        Gitte是一个开源的个人博客网站。
    &lt;/p&gt;
&lt;/div&gt;

&lt;!-- 底部导航条 --&gt;
&lt;nav class=&quot;navbar navbar-default navbar-fixed-bottom navbar-inverse&quot;&gt;
    &lt;div class=&quot;container&quot;&gt;
        &lt;p class=&quot;navbar-text&quot;&gt;底部导航条&lt;/p&gt;
        &lt;ul class=&quot;nav navbar-nav&quot;&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Git 大全&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Git 命令学习&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;帮助文档&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;关于我们&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;联系我们&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;版权声明&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/nav&gt;

&lt;!-- 分页组件--pagination --&gt;
&lt;div style=&quot;text-align:center ; margin-top: 500px;&quot;&gt;
    &lt;!-- &lt;ul class=&quot;pagination&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;上一页&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;1&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;3&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;4&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;5&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;下一页&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt; --&gt;
&lt;/div&gt;

&lt;!-- 翻页组件--pager --&gt;
&lt;!-- &lt;div style=&quot;text-align:center ; margin-top: 100px;&quot;&gt;
    &lt;ul class=&quot;pager&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;上一页&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;1&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;3&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;4&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;5&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;下一页&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt; --&gt;

&lt;!-- 警告框 --&gt;
&lt;div class=&quot;alert alert-success&quot; role=&quot;alert&quot; style=&quot;margin-top:-400px ;&quot;&gt;
    &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;&lt;span
            aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
    &lt;h4 class=&quot;alert-heading&quot;&gt;Well done!&lt;/h4&gt;
    &lt;p&gt;Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer
        so that you can see how spacing within an alert works with this kind of content.&lt;/p&gt;
    &lt;p class=&quot;mb-0&quot;&gt;Whenever you need to, be sure to use margin utilities to keep things nice and tidy.&lt;/p&gt;
&lt;/div&gt;

&lt;!-- 动态进度条 --&gt;
&lt;div class=&quot;progress&quot;&gt;
    &lt;div class=&quot;progress-bar progress-bar-striped active&quot; role=&quot;progressbar&quot; aria-valuenow=&quot;45&quot; aria-valuemin=&quot;0&quot;
        aria-valuemax=&quot;100&quot; style=&quot;width: 45%&quot;&gt;
        &lt;span class=&quot;sr-only&quot;&gt;45% Complete (success)&lt;/span&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;div class=&quot;container mt-5&quot;&gt;
    &lt;div class=&quot;progress&quot;&gt;
        &lt;div class=&quot;progress-bar progress-bar-striped progress-bar-animated&quot; role=&quot;progressbar&quot; style=&quot;width: 0%;&quot;
            aria-valuenow=&quot;0&quot; aria-valuemin=&quot;0&quot; aria-valuemax=&quot;100&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;
    $(document).ready(function () {
        var progress = 0;
        var interval = setInterval(function () {
            progress += 10;
            $('.progress-bar').css('width', progress + '%').attr('aria-valuenow', progress);
            if (progress &gt;= 100) {
                clearInterval(interval);
            }
        }, 1000);
    });
&lt;/script&gt;

&lt;div class=&quot;container mt-5&quot;&gt;
    &lt;h3&gt;游戏加载进度条&lt;/h3&gt;
    &lt;div class=&quot;progress&quot;&gt;
        &lt;div id=&quot;progress-bar&quot; class=&quot;progress-bar&quot; role=&quot;progressbar&quot; aria-valuenow=&quot;0&quot; aria-valuemin=&quot;0&quot;
            aria-valuemax=&quot;100&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;
    // 模拟加载进度
    function simulateLoading() {
        var progressBar = document.getElementById('progress-bar');
        var progress = 0;
        var interval = setInterval(function () {
            progress += 10;
            progressBar.style.width = progress + '%';
            progressBar.setAttribute('aria-valuenow', progress);
            progressBar.innerHTML = progress + '%';
            if (progress &gt;= 100) {
                clearInterval(interval);
                progressBar.classList.remove('progress-bar-animated');
                progressBar.classList.add('bg-success');
                progressBar.innerHTML = '加载完成';
            }
        }, 2000);
    }

    // 页面加载完成后开始模拟加载进度
    document.addEventListener('DOMContentLoaded', function () {
        simulateLoading();
    });
&lt;/script&gt;
</code></pre>
</body>
</html>
Gitte - 开源个人博客网站

原文地址: https://www.cveoy.top/t/topic/pccE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录