如何在wordpress中制作纯CSS3平滑下拉菜单?

时间:2016-01-18 05:20:06

标签: css wordpress css3 wordpress-theming

我正在制作一个bootstrap wordpress主题,我在为主菜单like this example添加纯粹流畅的下拉菜单效果方面遇到了问题,例如在单击" M徽标&#后似乎无法正常工作34;打开下拉菜单。您可以在此链接for more detail

上查看我的主题

目前我的CSS课程是:

.navbar-nav>li>.dropdown-menu {
    margin: -1px 0 0 45%;
    border-top-right-radius: 0;
    border-top-left-radius: 0;

}

.dropdown-menu {
    /* background: url(img/submenu.png) no-repeat scroll right/ 91% 100%; */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 153px;
    padding: 1px 0;
    margin: 2px 0 0 0;
    list-style: none;
    font-size: 14px;
    text-align: center;
    background-color: #5c4d4a;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    background-clip: padding-box;

}

.dropdown-menu li a {
    display: block;
    background: url(img/submenu.png) no-repeat scroll right/ 104% 108%;
    padding: 10px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.428571;
    color: #fff;
    white-space: nowrap;

}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background: url(img/submenu.png) no-repeat scroll right/ 104% 108%;
    color: #ccc;
    text-decoration: none;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);
      -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}

.dropdown-menu ul { 

list-style: none; 

}

1 个答案:

答案 0 :(得分:0)

所需的突出特点是:

def query_entities(self, table_name, filter=None, select=None, top=None,
               next_partition_key=None, next_row_key=None):
    '''
    Get entities in a table; includes the $filter and $select options.
    table_name:
        Table to query.
    filter:
        Optional. Filter as described at
        http://msdn.microsoft.com/en-us/library/windowsazure/dd894031.aspx
    select:
        Optional. Property names to select from the entities.
    top:
        Optional. Maximum number of entities to return.
    next_partition_key:
        Optional. When top is used, the next partition key is stored in
        result.x_ms_continuation['NextPartitionKey']
    next_row_key:
        Optional. When top is used, the next partition key is stored in
        result.x_ms_continuation['NextRowKey']
    '''

浮动:左边是一个狡猾的,它被位置覆盖:绝对;