我正在尝试修改我的网站上的标题,所有的东西都很好用,除非我缩小浏览器,主菜单下拉到按钮(如预期的那样)在开始时没有显示内容navegation栏,但现在,按钮始终显示内容,点击时不会隐藏。
代码是:
<!-- mainmenu begin -->
<div class="de_menu collapse navbar-collapse">
<div id="mainmenu" class="mainmenu">
<!-- mainmenu begin -->
<?php
$primarymenu = array(
'theme_location' => 'primary',
'menu' => 'primary',
'container' => 'false',
'container_class' => 'collapse navbar-collapse',
'container_id' => '',
'menu_class' => 'nav navbar-nav',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker(),
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul data-breakpoint="800" id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 2,
);
if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( $primarymenu );
}
?>
<!-- mainmenu close -->
</div>
</div>
以下是浏览器中的代码:
<!-- mainmenu begin -->
<div class="de_menu collapse navbar-collapse">
<div id="mainmenu" class="mainmenu">
<!-- mainmenu begin -->
<ul data-breakpoint="800" id="menu-menu-principal" class="nav navbar-nav">
<li id="menu-item-26" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-26 active">First Option</li>
<li id="menu-item-27" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-27">Second option</li>
<li id="menu-item-28" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-28 ">Third Option</a>
<ul role="menu" class=" dropdown-menu">
<li id="menu-item-31" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-31">First Child</li>
<li id="menu-item-30" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-30">Second Child</li>
<li id="menu-item-29" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-29">Third Child></li>
</ul>
</li>
<li id="menu-item-32" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-32">Fourth Option</li>
<li id="menu-item-33" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-33">Fifth Option</li>
</ul>
<!-- mainmenu close -->
</div>
</div>
我尽我所能,但我无法解决如何解决问题。
答案 0 :(得分:0)
使用此幻灯片切换功能
<DataGrid x:Name="employeesGrid" SelectedItem="{Binding SelectedRow, Mode=TwoWay}" SelectedIndex="{Binding SelectedEmployeeIndex, Mode=TwoWay}" Style="{StaticResource dataGridStyle}" ItemsSource="{Binding Employees}">
<DataGrid.ItemContainerStyle>
<Style TargetType="{x:Type DataGridRow}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=NumberOfSkills}" Value="3">
<DataTrigger.EnterActions>
<BeginStoryboard x:Name="blinkingRow">
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="true" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
<DataTrigger.ExitActions>
<BeginStoryboard x:Name="notBlinkingRow">
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="1" To="1" Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="true" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.ExitActions>
</DataTrigger>
</Style.Triggers>
</Style>
</DataGrid.ItemContainerStyle>
<DataGrid.Columns>
...
<DataGridTemplateColumn Header="Skills" IsReadOnly="False">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<ListBox ItemsSource="{Binding Skills, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Command="{Binding Path=DataContext.SaveChangesCommand, RelativeSource={RelativeSource Mode=Self}}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
...
</DataGrid>