Я уже некоторое время пытаюсь настроить и использовать Mmenu и не могу понять, как изменить заголовок меню.
Я могу' Кажется, я не нашел способа изменить его из «Меню», я пробовал разные вещи из документации и т. д., но безуспешно.
Может быть, у кого-то есть идеи?
TashCraft 24/7!
[*]
#intro,
#first,
#second,
#third
{
height: 400px;
}
#intro
{
padding-top: 0;
}
#first,
#second,
#third
{
border-top: 1px solid #ccc;
padding-top: 150px;
}
.header,
.footer
{
box-sizing: border-box;
width: 100%;
position: fixed;
}
.header
{
top: 0;
}
.footer
{
bottom: 0;
}
.mm-menu
{
color: black;
background-color: white;
}
$(function() {
var $menu = $('nav#menu'),
$html = $('html, body');
$menu.mmenu({
dragOpen: true
});
var $anchor = false;
$menu.find( 'li > a' ).on(
'click',
function( e )
{
$anchor = $(this);
}
);
var api = $menu.data( 'mmenu' );
api.bind( 'closed',
function()
{
if ( $anchor )
{
var href = $anchor.attr( 'href' );
$anchor = false;
// if the clicked link is linked to an anchor, scroll the page to that anchor
if ( href.slice( 0, 1 ) == '#' )
{
$html.animate({
scrollTop: $( href ).offset().top
});
}
}
}
);
});
Websitename
This is a demo.
Click the menu icon to open the menu.
The links in the menu link to a section on the same page, some small javascript makes the page scroll smoothly.
This is the first section.
Notice how the fixed header and footer slide out along with the page.
Open the menu.
This is the second section.
You can also drag the page to the right to open the menu.
Open the menu.
This is the third section.
Open the menu.
Подробнее здесь: https://stackoverflow.com/questions/302 ... uery-mmenu
Как изменить заголовок меню в jQuery mmenu ⇐ Jquery
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Меню настройки основного меню не обновляется в меню «Настройки» меню паузы
Anonymous » » в форуме C# - 0 Ответы
- 18 Просмотры
-
Последнее сообщение Anonymous
-