iPad - 单击时更改Bootstrap Navbar文本颜色

时间:2018-02-16 15:10:38

标签: twitter-bootstrap css3 ipad twitter-bootstrap-3

我有一个bootstrap导航栏,如下所示:

<nav class="navbar navbar-default navbar-fixed-top" style="background-color: #F5F5F5 !important">
    <div class="container-fluid">
        <div class="navbar-header navbar-nav">
            <a id="homeLink" class="navbar-brand" href="@Url.Action("Index", "Home", new { goHome = true })"><span class="glyphicon glyphicon-home"></span></a>
            <button type="button" data-toggle="collapse" data-target=".navbar-collapse" class="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div class="collapse navbar-collapse navbar-left">
            <ul class="nav navbar-nav">
                <li class="">@Html.ActionLink("Analysts", "Index", "Analyst", null, new { @class = "loadmsg" })</li>
                 <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        Reports
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li>@Html.ActionLink("Marketing Write-ups Summary", "MarketingWriteupSummary", "Report", null, new { @class = "loadmsg" })</li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

如你所见,有一个&lt; li>在Marketing Write-Ups摘要的Reports下拉列表中。在iPad上,我希望有一些视觉指示,用户选择了这个,例如,将文本更改为不同的颜色。我该怎么做?

0 个答案:

没有答案