第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

導(dǎo)航欄下的 div 寬度為 100% 顯示滾動(dòng)條

導(dǎo)航欄下的 div 寬度為 100% 顯示滾動(dòng)條

慕斯王 2023-10-10 15:20:28
嘿伙計(jì)們,我希望你們一切都好,所以我正在制作一個(gè)頁(yè)面。主要有一個(gè)導(dǎo)航欄,在導(dǎo)航欄下面有一個(gè)引導(dǎo)網(wǎng)格和一個(gè)頁(yè)腳..所以我想顯示頁(yè)面,因?yàn)閷?dǎo)航欄和頁(yè)腳之間的網(wǎng)格覆蓋了em之間的空間,為此我使用了行的寬度100%,但是它似乎不起作用。這是我的代碼。因此它成為每個(gè)設(shè)備的單個(gè)頁(yè)面。沒(méi)有滾動(dòng)條索引.php<html><head>    <title></title>    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script><script src="https://kit.fontawesome.com/a076d05399.js"></script><link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"><link rel="stylesheet" type="text/css" href="css/main.css"></head><body>    <!-- NAVBAR -->            <nav class="navbar navbar-light main_nav">                <i class="fas fa-bars"></i>                <div class="logo mr-auto">                    <img class="navbar-brand" src="images/michatroom.png" width="150">                </div>            </nav>    <!-- NAVBAR END -->    <div class="container-fluid">        <div class="row my_row">            <div class="col-md-2">                www            </div>            <div class="col-md-8">                www            </div>            <div class="col-md-2">                www            </div>        </div>    </div>
查看完整描述

1 回答

?
MMMHUHU

TA貢獻(xiàn)1834條經(jīng)驗(yàn) 獲得超8個(gè)贊

只需將overflow:hidden添加到css的body中


body{

overflow:hidden;

}


* { margin:0; padding:0; }

.main_nav {

    background: #006080;

}

.logo {

    margin-left: 10px;

}

.my_row > div {

    border: 1px solid black;

}

.my_row {

    height: 100%;

}

<html>

<head>

    <title></title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>

<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>

<script src="https://kit.fontawesome.com/a076d05399.js"></script>

<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

<link rel="stylesheet" type="text/css" href="css/main.css">

</head>

<body>

    <!-- NAVBAR -->

            <nav class="navbar navbar-light main_nav">

                <i class="fas fa-bars"></i>

                <div class="logo mr-auto">

                    <img class="navbar-brand" src="images/michatroom.png" >

                </div>

            </nav>

    <!-- NAVBAR END -->


    <div class="container-fluid">

        <div class="row my_row">

            <div class="col-md-2" style='width:20%'>

                www

            </div>

            <div class="col-md-8" style='width:60%'>

                www

            </div>

            <div class="col-md-2" style='width:20%'>

                www

            </div>

        </div>

    </div>

    <nav class="navbar navbar-bottom navbar-light bg-faded">

  <a class="navbar-brand" href="#">Fixed bottom</a>

</nav>

</body>

</html>


查看完整回答
反對(duì) 回復(fù) 2023-10-10
  • 1 回答
  • 0 關(guān)注
  • 148 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)