Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 粘性菜单字体大小_Html_Css_Responsive - Fatal编程技术网

Html 粘性菜单字体大小

Html 粘性菜单字体大小,html,css,responsive,Html,Css,Responsive,我对css很陌生。当我们向下滚动时,我希望保持字体大小不变,但我不确定如何使用css实现这一点 谢谢, Andyet固定标题类添加到滚动条上,您可以使用et固定标题类更改CSS,如下所示 body .et-fixed-header #top-menu li a { font-size: 12px; color: #fff !important; } 希望它能起作用 试试这个: #et-secondary-nav .menu-item-has-children>a

我对css很陌生。当我们向下滚动时,我希望保持字体大小不变,但我不确定如何使用css实现这一点

谢谢,
Andy

et固定标题
类添加到滚动条上,您可以使用et固定标题类更改CSS,如下所示

body .et-fixed-header #top-menu li a {
    font-size: 12px;
    color: #fff !important;
}
希望它能起作用

试试这个:

    #et-secondary-nav .menu-item-has-children>a:first-child, #top-menu .menu-item-has-children>a:first-child {
        font-size: 14px;
        color: rgba(255,255,255,0.6)!important;
        padding: inherit;
    }
    
    .et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
        padding-top: 33px !important;
    }
    
    #top-menu li a {
        color: rgba(255,255,255,0.6)!important;
    }
    #et_search_icon:before{
        color: rgba(255,255,255,0.6)!important;
    }
.et_fixed_nav.et_show_nav #page-container, .et_non_fixed_nav.et_transparent_nav.et_show_nav #page-container {
    margin-top: 0 !important;
    transition: none;
    -webkit-transition: none;
}