首页
\
问答
\
如何删除导航栏徽标和导航栏菜单之间的空格以及文本后面的导航栏徽标(How to remove the space between navbar logo and navbar menu and navbar logo behind the text)
如何删除导航栏徽标和导航栏菜单之间的空格以及文本后面的导航栏徽标(How to remove the space between navbar logo and navbar menu and navbar logo behind the text)
我坚持这个。 我想删除导航栏品牌和导航栏菜单之间的空间。 此外,当我放置导航栏徽标图像时,导航栏固定将变得更大,它将覆盖我的页面标题。
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <span class="logo"><img width="40%" src="images/windsor-logo_horizontal-colored.png" alt="WindSor"></span> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav navbar-right"> <!-- Hidden li included to remove active class from about link when scrolled up past about section --> <li> <a class="page-scroll" href="#page-top"> <span class="glyphicon glyphicon-home"> Home</span></a> </li> <li> <a class="page-scroll" href="#about">About</a> </li> <li> <a class="page-scroll" href="#services">Services</a> </li> <li> <a class="page-scroll" href="#contact">Contact</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav>
圆圈空间是我想要删除的。
这是我的CSS:
body { width: 100%; height: 100%; } html { width: 100%; height: 100%; } @media(min-width:767px) { .navbar { padding: 20px 0; -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out; -moz-transition: background .5s ease-in-out,padding .5s ease-in-out; transition: background .5s ease-in-out,padding .5s ease-in-out; margin: } .top-nav-collapse { padding: 0; } } .intro-section { height: 100%; padding-top: 150px; text-align: center; background: #fff; } .about-section { height: 100%; padding-top: 150px; text-align: center; background: #eee; } .services-section { height: 100%; padding-top: 150px; text-align: center; background: #fff; } .contact-section { height: 100%; padding-top: 150px; text-align: center; background: #eee; }
I'm stuck with this. I want to remove the space between navbar brand and navbar menu. Also when i put navbar logo image, the navbar-fixed will grow bigger and it will cover my page header.
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <span class="logo"><img width="40%" src="images/windsor-logo_horizontal-colored.png" alt="WindSor"></span> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav navbar-right"> <!-- Hidden li included to remove active class from about link when scrolled up past about section --> <li> <a class="page-scroll" href="#page-top"> <span class="glyphicon glyphicon-home"> Home</span></a> </li> <li> <a class="page-scroll" href="#about">About</a> </li> <li> <a class="page-scroll" href="#services">Services</a> </li> <li> <a class="page-scroll" href="#contact">Contact</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav>
the circle space is what i want to remove.
here is my CSS :
body { width: 100%; height: 100%; } html { width: 100%; height: 100%; } @media(min-width:767px) { .navbar { padding: 20px 0; -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out; -moz-transition: background .5s ease-in-out,padding .5s ease-in-out; transition: background .5s ease-in-out,padding .5s ease-in-out; margin: } .top-nav-collapse { padding: 0; } } .intro-section { height: 100%; padding-top: 150px; text-align: center; background: #fff; } .about-section { height: 100%; padding-top: 150px; text-align: center; background: #eee; } .services-section { height: 100%; padding-top: 150px; text-align: center; background: #fff; } .contact-section { height: 100%; padding-top: 150px; text-align: center; background: #eee; }
原文:https://stackoverflow.com/questions/39160406
更新时间:2021-12-03 11:12
最满意答案
相关问答
更多-
TCP/IP模型是一个________。[2023-05-19]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
你不需要做这些分组,这应该做你想要的: /solved:\zs\w\+ 看截图: After trying a lot of combinations I found the solution in my case for myself: 'solved:\zs\w*' Why this works and not Kents fast answer I don't know. But this is the line I now use.
-
看看这段代码。 减少了几个循环。 $sql = "SELECT * FROM `tableB` WHERE `id`= '2B' LIMIT 1"; $query = $db->query($sql); $arr = explode(';', $row['features']); $str = implode(",", $arr); $sql2 = "SELECT * FROM `tableA WHERE id IN ({$str});"; $query2 = $db->query($sql2); ...
-
从csv字符串搜索sql(sql search from csv string)[2022-04-15]
您可以在存储过程中使用这种方式, declare @searchtext varchar(1000) set searchtext ='bob,harry,charley' declare @filter varchar(2000) set @filter = '(name LIKE ''%' + replace('bob,harry,charley',',','%'' OR name LIKE ''%') + '%'')' exec (' select * from mytab ... -
在查询中使用HOUR功能可以从日期时间列中获取数小时。 select narrative_date from P_MATTER_NARRATIVE where HOUR(narrative_date) = 5 Use HOUR function in your query to get hours from your datetime column. select narrative_date from P_MATTER_NARRATIVE where HOUR(narrative_date) = 5 ...
-
您似乎需要单引号用于字符串常量: SELECT * FROM PhoneStatus WHERE phoneDeviceId = '00:66:4B:B2:7B:F5' 如果查询由单引号分隔,则将它们加倍或以某种方式转义它们。 You would seem to need single quotes for the string constant: SELECT * FROM PhoneStatus WHERE phoneDeviceId = '00:66:4B:B2:7B:F5' If the que ...
-
我不确定@student是什么。 我会把我的例子写成一个记录。 你可以使用-确保它只在寻找学生: @conversations = Conversation.where('slug LIKE ?', "#{@student.id}-%") 但我认为建立明确的关系会更好: class Conversation < ApplicationRecord belongs_to :student belongs_to :recruiter end @conversations = @student.con ...
-
如何搜索匹配的字符串然后提取它后面的字符串和冒号(How to search for matched string then extract the string after it and a colon)[2023-01-31]
这是协议转发的三分之二。 您可以使用beautifulsoup查找正文文本并使用json解码。 然后你有一些python dicts和列表通过。 >>> import json >>> import bs4 >>> import re >>> text = '{"count":1,"results":[{"score":"2-1","MatchId":{"number":"889349"},"name":"Match","rating":{"rate":9.0}}],"perform ... -
使用LIKE运算符。 这将在任何位置返回在'R'之前具有单词'B'行 select * from tablename where Place like '%B%R%' Use LIKE operator. This will return rows which has the word 'B' before 'R' in any position select * from tablename where Place like '%B%R%'