简体   繁体   English

如何在MMenu中禁用切换/复选框/单选输入

[英]How to disable Toggle/Checkbox/Radio inputs in MMenu

I have been using my own script and css for a switch that works over the input type 'checkbox' but once I added the mmenu library, my switches got messed up. 我一直在使用自己的脚本和CSS作为可在输入类型“复选框”上工作的开关,但是一旦我添加了mmenu库,我的开关就混乱了。 Im using 我正在使用

<link type="text/css" href="static/css/jquery.mmenu.css" rel="stylesheet" />
<script type="text/javascript" src="static/js/jquery.mmenu.min.js"></script>

This should omit the toggles css and toggle js, but its still messing up my switch code. 这应该省略切换css和切换js,但仍会弄乱我的切换代码。

i was have some problem too.. i was remove the jquery >_< that is the fastest way... 我也遇到了一些问题..我删除了jquery> _ <,这是最快的方法...

  1. try put jquery code on the top then place your code below the jquery code because computer read from top to bottom. 尝试将jquery代码放在顶部,然后将代码放在jquery代码下方,因为计算机从上到下读取。 ( if you are placing jquery on bottom jquery is replacing script on top ) (如果将jQuery放在底部,则jQuery替换顶部的脚本)
  2. if no 1 is not working too then ( that mean jquery is styling your checkbox ) write on your css input["checkbox"]{ ... } 如果没有1也不起作用,那么(这意味着jquery正在对您的复选框进行样式化)在CSS输入上输入[“ checkbox”] {...}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM