html - 我在移动 View 中所做的更改甚至适用于桌面 View 。如何避免?

标签 html css twitter-bootstrap

我正在为导航菜单使用 HTML 和 Bootstrap 。在移动 View 中,我需要下拉列表的边框。但即使在桌面 View 中也会显示边框。我不希望这发生。如何避免?

<li style="border-bottom: 1px solid #1F6689; border-top:1px solid #1F6689"><!-- ngIf: loggedUser --><a style="margin-right: 100px;" data-ng-if="loggedUser" class="ng-binding ng-scope">
                        <span class="fa fa-user iconAlign font-icon-size">&nbsp;</span>Shrivatsav, Deeksha</a><!-- end ngIf: loggedUser -->
                    </li>

请帮忙。

最佳答案

将其复制到您的样式表中

@media (min-width:1200px){

.nav.navbar-nav > li
{
border:0 !important;
}

}

关于html - 我在移动 View 中所做的更改甚至适用于桌面 View 。如何避免?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35174228/

相关文章:

javascript - 在 Canvas 上绘制平滑的线条

html - 前景中缺少 CSS 框阴影

JavaScript错误ReferenceError : is not defined error | want to open a link in a new window using JS

php - 是否可以将 html 类添加到 phpMyEdit 生成的表中?

jquery - 带有 float :left and Form with Bootstrap 的菜单

css - 如何使容器内的 div 仅使用 bootstrap 3 中 12 列中的 6 列?

css - 更改 HTML 5 Boilerplate 默认字体大小是否安全?

html - 如何从我的固定底部导航栏中删除间隙

html - "Cover"图像不知道 block 的宽度和高度

html - 较小容器内的全屏图像