简体   繁体   English

网页上未加载所有CSS类

[英]All css classes not loading in webpage

I have an application converted to VS 2010. The asp:menu's css classes are not loading completely. 我有一个转换为VS 2010的应用程序。asp:menu的css类未完全加载。 When i click on compatible view of browser, the css works fine. 当我单击浏览器的兼容视图时,css工作正常。

Any idea on what can be the issue and how it can be fixed ? 关于什么是问题以及如何解决的任何想法?

Code for reference: 参考代码:

<div class="SetHeight">
            <asp:Menu ID="MasterMenu" runat="server" DataSourceID="SiteMapDataSource1" MaximumDynamicDisplayLevels="4"
                Orientation="Horizontal" StaticDisplayLevels="3" StaticMenuItemStyle-CssClass="tab"
                StaticSelectedStyle-CssClass="slctTab" CssClass="tabs" StaticSubMenuIndent="0px">
            </asp:Menu>
</div>

        .SetHeight
        {
            border-bottom: 1px solid red;
            margin-bottom: 5px;
            clear: both;
        }

        table.tabs
        {
            position: relative;
            top: 0px;
        }

        table.tab
        {
        }

        a.tab, a.tab:selected, a.tab:link, a.tab:active, a.tab:visited
        {
            background-color: Green;
            font-family: Arial, Verdana, Helvetica, sans-serif;
            font-weight: 650;
            text-decoration: none;
            color: White;
            padding: 2px 7px;
            display: block;
        }

        a.tab:hover
        {
            background-color: #009900;
        }

        a.slctTab, a.slctTab:hover, a.slctTab:link, a.slctTab:active, a.slctTab:visited
        {
            color: White;
            background-color: Blue text-decoration: none;
        }

You can find the answer here. 您可以在这里找到答案。 Hope this solves your problem. 希望这能解决您的问题。 In this we load the asp:menu inside a div and put the style visibility as visible Asp.net default theme css menu problem 在此方法中,我们将asp:menu加载到div中,并将样式可见性设置为可见Asp.net默认主题CSS菜单问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM