nav

How to 'open' Bootstrap Dropdown menus on pageload on screens smaller than 600px

限于喜欢 提交于 2019-12-10 20:15:46
问题 im trying to get my bootstrap dropdowns to be open by default at screens at or smaller than 600px (mobile). this seems to get it to try but it looks like something overrides it and closes it again: <script type="text/javascript"> $(window).load(function () { var width = $(window).width(); if (width >= 0 && width <= 600) { $('#openBrowseMobile').addClass('open'); } else { $('#openBrowseMobile').removeClass('open'); } }) .load(); </script> any ideas on how to make this work? I can get it to

Ionic 2 update [rootParams] Tabs

浪尽此生 提交于 2019-12-10 13:44:12
问题 This is closely related to the SO question Ionic 2 passing tabs NavParams to tab I have tabs view template setup as: <ion-tabs #myTabs> <ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab> <ion-tab [root]="tab2Root" tabTitle="My Alerts" [rootParams]="paramsData" tabIcon="warning"></ion-tab> <ion-tab [root]="tab3Root" tabTitle="Settings" [rootParams]="paramsData" tabIcon="cog"></ion-tab> .... and in the constructor of the class ( main Tabs page ) I am setting rootParams . this

Internet Explorer 8 won't modify HTML5 tags in print stylesheet

久未见 提交于 2019-12-10 02:56:38
问题 I was working on a print stylesheet earlier and came across a problem with IE8. I am using HTML5 and several layout tags including header, nav and footer. For some reason in my print stylesheet the display:none; declaration on these tags is being ignored in IE8 (and I can only assume subsequent lower versions). I first thought that Developer Tools in IE9 could be causing a false representation, however I have a Windows XP installation in VirtualBox which shows the problem also. My guess its

jquery change opacity and height on scroll

时光怂恿深爱的人放手 提交于 2019-12-08 19:23:28
I'm currently trying to write a little js. My navigation has a gradient set as background. I want the background to change in height and from a gradient to a flat color with 0.85 opacity (animated) when I scroll down a certain amount. here's my js code $(window).scroll(function(){ if ($(window).scrollTop() >= 600){ $('#navigation').css({height: '92px'}); } else { $('#navigation').css({height: '142px'}); } }); here's the css #navigation { height: 142px; width: 1350px; position: fixed; z-index: 2000; background: -moz-linear-gradient(top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */

jquery change opacity and height on scroll

雨燕双飞 提交于 2019-12-08 06:22:26
问题 I'm currently trying to write a little js. My navigation has a gradient set as background. I want the background to change in height and from a gradient to a flat color with 0.85 opacity (animated) when I scroll down a certain amount. here's my js code $(window).scroll(function(){ if ($(window).scrollTop() >= 600){ $('#navigation').css({height: '92px'}); } else { $('#navigation').css({height: '142px'}); } }); here's the css #navigation { height: 142px; width: 1350px; position: fixed; z-index:

How to call a nav webservice from android

血红的双手。 提交于 2019-12-07 18:43:57
问题 I want to call web service running in Microsoft Dynamics nav ERP i am using ksoap2 library but problem is every time i run my application it throws java.net.ConnectException: localhost/127.0.0.1:7047 - Connection refused Microsoft Dynamics nav is using NTLM authentication may that is the problem, please give any suggestion to solve it. Thanks in advance. My code is String namespace = "urn:microsoft-dynamics-schemas/codeunit/NavisionWS"; String url = "http://localhost:7047/DynamicsNAV/WS

How can I give the current page's link a disabled look?

僤鯓⒐⒋嵵緔 提交于 2019-12-07 15:41:31
In my web site, I have three pages: Home, About, and Contact. I want the current page's link to give some visual indication that clicking the corresponding link would be senseless as the user is already on that page. Is this task better handled by CSS or jQuery, and in either case, what is the most elegant solution that will also automatically apply to any pages which may be added in the future? Here's my HTML diesbezueglich: <nav> <ul id="menu"> <li><a href="~/">Home</a></li> <li><a href="~/About">About</a></li> <li><a href="~/Contact">Contact</a></li> </ul> </nav> UPDATE I wonder why this

Hide menu items one-by-one on window resize

半城伤御伤魂 提交于 2019-12-07 04:06:58
问题 I'm working on a navbar consisting of a logo & menu-items floating left and a searchbar & a dropdown-button floating right. When the browser window reaches a certain small size the navbar elements will start to jump into the next row, because there isn't enough space anymore. Have a look here: http://codepen.io/anon/pen/YXBaEK Instead of starting a new row I'd like every menu item to disappear one-by-one if the horizontal space is running out. (I still have the menu links in a dropdown menu

jQuery特殊属性操作与事件机制及补充

左心房为你撑大大i 提交于 2019-12-07 01:52:58
1、jQuery特殊属性操作 val方法 val方法用于设置和获取表单元素的值,例如input、textarea的值 //设置值 $("#name").val(“张三”); //获取值 $("#name").val(); html方法与text方法 html方法相当于innerHTML text方法相当于innerText //设置内容 $(“div”).html(“<span>这是一段内容</span>”); //获取内容 $(“div”).html() //设置内容 $(“div”).text(“<span>这是一段内容</span>”); //获取内容 $(“div”).text() 区别:html方法会识别html标签,text方法会那内容直接当成字符串,并不会识别html标签。 width方法与height方法 设置或者获取高度 //带参数表示设置高度 $(“img”).height(200); //不带参数获取高度 $(“img”).height(); 补充:获取的样式值 width()---width // 数字 innerWidth()---padding + width outerWidth()---padding + width + border outerWidth(true)---padding + width + border + margin

HTML5 nav tag correct usage

浪尽此生 提交于 2019-12-06 16:35:06
问题 <ul class="mainMenu"> <li><a href="#">Home</a></li> <li><a href="#">Forum</a></li> <li><a href="#" class="mainSelected">Construct</a></li> <li><a href="#">Arcade</a></li> <li><a href="#">Manual</a></li> </ul> <ul class="subMenu"> <li><a href="#">Homepage</a></li> <li><a href="#">Construct</a></li> <li><a href="#" class="underSelected">Products</a></li> <li><a href="#">Community Forum</a></li> <li><a href="#">Contact Us</a></li> </ul> Is it more semantically correct to have a <nav> around both