无法在 Bootstrap 2 页面上的导航栏中单击链接 [英] Link isn't clickable within my navbar on Bootstrap 2 page
查看:36
html
twitter-bootstrap
本文介绍了无法在 Bootstrap 2 页面上的导航栏中单击链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能建议为什么第一个链接不可点击&使用 Bootstrap 2 链接到我网站页眉中的索引页 - 与品牌"类的链接当前不可点击,也不能链接到主页
关于如何修复的任何建议?
<div class="容器"><div class="navbar-header"><a class="brand" href="/"><img src="/images/logo.png" id="logo"></a><a class="btn btn-navbar btn-warning navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-main"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><!-- 此行下方的额外 html 内容...--> 解决方案 这是使导航栏容器位于图像顶部的 clearfix 类.
从这行代码中删除 clearifx 后:
没关系.您可能只需要稍微重新定位徽标.
Can anyone suggest why the first link isn't clickable & link to the index page within my header on my site using Bootstrap 2 - the link with the 'brand' class currently isn't clickable nor does it link to homepage
Any advice on how to fix?
<div class="navbar" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="brand" href="/"><img src="/images/logo.png" id="logo"></a>
<a class="btn btn-navbar btn-warning navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!-- extra html content below this line... -->
解决方案 It's the clearfix class which made the navbar container sit on the top of your image.
After removing clearifx from this line of code:
<div class="nav-collapse collapse clearfix" id="navbar-collapse-main">
it's OK. You just might need to reposition the logo slightly.
这篇关于无法在 Bootstrap 2 页面上的导航栏中单击链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
相关文章
- 无法在 Bootstrap 4 中更改导航栏链接的颜色;
- 无法在Bootstrap 4中更改导航栏链接的颜色;
- Bootstrap导航栏在多个页面中;
- 在单击时隐藏Twitter Bootstrap导航栏;
- HTML / CSS导航栏在多个页面上;
- PhantomJS单击页面上的链接;
- Bootstrap更改导航栏链接颜色;
- 切换活动链接Bootstrap导航栏;
- Bootstrap 更改导航栏链接颜色;
- 我是否必须使用 Bootstrap 在每个页面上复制导航栏代码?;
- 我是否必须使用Bootstrap复制每个页面上的导航栏代码?;
- 在同一页面上的多个导航栏与Twitter的Bootstrap 3;
- 在 Bootstrap 3 中单击导航栏元素外部时如何关闭打开的折叠导航栏?;
- Rails 4/Bootstrap 3:如何在不同页面上显示不同的导航栏?;
- Bootstrap导航栏链接颜色不会更改;
- Bootstrap导航栏链接颜色不会更改;
- Bootstrap导航栏在链接时覆盖部分的顶部;
- Bootstrap导航栏折叠切换按钮未单击;
- Rails 4/Bootstrap 3:如何在不同的页面上显示不同的导航栏?;
- 无法以角度 2 隐藏登录页面中的导航栏;
- 无法以角度2隐藏登录页面中的导航栏;
- iOS不同页面上的导航栏颜色不同;
- Bootstrap 导航栏列表项/链接未显示;
- Bootstrap 导航栏链接颜色不会改变;
- Bootstrap 4 导航栏,有 2 行;
前端开发最新文章
- 为什么Chrome(在Electron内部)突然重定向到chrome-error:// chromewebdata?;
- 错误102(net :: ERR_CONNECTION_REFUSED):服务器拒绝连接;
- 如何解决'重定向已被CORS策略阻止:没有'Access-Control-Allow-Origin'标题'?;
- 如何处理“Uncaught(in promise)DOMException:play()失败,因为用户没有首先与文档交互。”在桌面上使用Chrome 66?;
- 警告:添加非被动事件侦听器到滚动阻塞'touchstart'事件;
- 如何在浏览器中播放.TS文件(视频/ MP2T媒体类型)?;
- 此请求已被阻止;内容必须通过HTTPS提供;
- 资源解释为样式表,但转换为MIME类型text / html(似乎与web服务器无关);
- 通过HTTPS加载页面但请求不安全的XMLHttpRequest端点;
- 拒绝从执行脚本'*',因为它的MIME类型(“应用/ JSON')不是可执行文件,并严格MIME类型检查被启用。;