我正在尝试开发一个没有JS框架的响应式网站。
问题是我想在打开导航菜单后关闭它(#menu-wrapper),但是1)它没有关闭,2)链接不再是&# 39;可点击'触摸它们。
一切都可以在桌面上使用鼠标。问题是触摸。
Codepen:http://codepen.io/pksml/pen/BKVwor
Codepen:http://codepen.io/pksml/full/BKVwor/
问题:如何通过触摸和左侧滑动来获取关闭菜单的链接?
PS这里有一些代码,因为这个网站需要它:)
<div id="menu-link" class="pointer" style="">
<ul style=""><li style="" onclick='
document.getElementById("menu-wrapper").style.transform = "translate3d(0px,0px,0px)";
document.getElementById("menu-wrapper").style.WebkitTransform = "translate3d(0px,0px,0px)";
document.getElementById("menu-wrapper").style.MozTransform = "translate3d(0px,0px,0px)";
'>≡ Open Menu</li></ul>
</div>