CSS3固定顶部定位滚动导航

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 CSS3固定顶部定位滚动导航 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

CSS3固定顶部定位滚动导航

HTML代码(index.html):

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>CSS3固定顶部定位滚动导航</title>
    <meta name="author" content="Adtile">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="stylesheet" href="css/styles.css">
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
      <link rel="stylesheet" href="css/ie.css">
    <![endif]-->
    <script src="js/responsive-nav.js"></script>
  </head>
  <body>
    <header>
      <a href="#home" class="logo" data-scroll>程序员设计师联盟淘宝店</a>
      <nav class="nav-collapse">
        <ul>
          <li class="active"><a href="#home" data-scroll>首页</a></li>
          <li><a href="#about" data-scroll>JS代码</a></li>
          <li><a href="#projects" data-scroll>PSD素材</a></li>
          <li><a href="#blog" data-scroll>矢量素材</a></li>
        </ul>
      </nav>
    </header>

    <section id="home" style="background:#F90;color:#fff;">
      <h1>程序员设计师联盟淘宝店首页</h1>
      <p>13141618.taobao.com</p>
    </section>

    <section id="about" style="background:#09F;color:#fff;">
      <h1>JS代码板块</h1>
    </section>

    <section id="projects" style="background:#936;color:#fff;">
      <h1>PSD素材板块</h1>
    </section>

    <section id="blog" style="background:#360;color:#fff;">
      <h1>矢量素材板块</h1>
    </section>
    <script src="js/fastclick.js"></script>
    <script src="js/scroll.js"></script>
    <script src="js/fixed-responsive-nav.js"></script>
</body>
</html>









JS代码(fastclick.js):

function FastClick(layer){
	'use strict';
	var oldOnClick;
	/** * Whether a click is currently being tracked. * * @type boolean */
 this.trackingClick = false;
	/** * Timestamp for when when click tracking started. * * @type number */
 this.trackingClickStart = 0;
	/** * The element being tracked for a click. * * @type EventTarget */
 this.targetElement = null;
	/** * X-coordinate of touch start event. * * @type number */
 this.touchStartX = 0;
	/** * Y-coordinate of touch start event. * * @type number */
 this.touchStartY = 0;
	/** * ID of the last touch,retrieved from Touch.identifier. * * @type number */
 this.lastTouchIdentifier = 0;
	/** * Touchmove boundary,beyond which a click will be cancelled. * * @type number */
 this.touchBoundary = 10;
	/** * The FastClick layer. * * @type Element */
 this.layer = layer;
	if (FastClick.notNeeded(layer)){
	return;
}
// Some old versions of Android don't have Function.prototype.bind function bind(method,context){
	return function(){
	return method.apply(context,arguments);
}
;
}
// Set up event handlers as required if (deviceIsAndroid){
	layer.addEventListener('mouseover',bind(this.onMouse,this),true);
	layer.addEventListener('mousedown',bind(this.onMouse,this),true);
	layer.addEventListener('mouseup',bind(this.onMouse,this),true);
}
layer.addEventListener('click',bind(this.onClick,this),true);
	layer.addEventListener('touchstart',bind(this.onTouchStart,this),false);
	layer.addEventListener('touchmove',bind(this.onTouchMove,this),false);
	layer.addEventListener('touchend',bind(this.onTouchEnd,this),false);
	layer.addEventListener('touchcancel',bind(this.onTouchCancel,this),false);
	// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick // layer when they are cancelled. if (!Event.prototype.stopImmediatePropagation){
	layer.removeEventListener = function(type,callback,capture){
	var rmv = Node.prototype.removeEventListener;
	if (type === 'click'){
	rmv.call(layer,type,callback.hijacked || callback,capture);
}
else{
	rmv.call(layer,type,callback,capture);
}
}
;
	layer.addEventListener = function(type,callback,capture){
	var adv = Node.prototype.addEventListener;
	if (type === 'click'){
	adv.call(layer,type,callback.hijacked || (callback.hijacked = function(event){
	if (!event.propagationStopped){
	callback(event);
}
}
),capture);
}
else{
	adv.call(layer,type,callback,capture);
}
}
;
}
// If a handler is already declared in the element's onclick attribute,it will be fired before // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and // adding it as listener. if (typeof layer.onclick === 'function'){
	// Android browser on at least 3.2 requires a new reference to the function in layer.onclick // - the old one won't work if passed to addEventListener directly. oldOnClick = layer.onclick;
	layer.addEventListener('click',function(event){
	oldOnClick(event);
}
,false);
	layer.onclick = null;
}
}
/** * Android requires exceptions. * * @type boolean */
var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0;
	/** * iOS requires exceptions. * * @type boolean */
var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent);
	/** * iOS 4 requires an exception for select elements. * * @type boolean */
var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
	/** * iOS 6.0(+?) requires the target element to be manually derived * * @type boolean */
var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS ([6-9]|\d{
	2}
)_\d/).test(navigator.userAgent);
	/** * Determine whether a given element requires a native click. * * @param{
	EventTarget|Element}
target Target DOM element * @returns{
	boolean}
Returns true if the element needs a native click */
FastClick.prototype.needsClick = function(target){
	'use strict';
	switch (target.nodeName.toLowerCase()){
	// Don't send a synthetic click to disabled inputs (issue #62) case 'button':case 'select':case 'textarea':if (target.disabled){
	return true;
}
break;
	case 'input':// File inputs need real clicks on iOS 6 due to a browser bug (issue #68) if ((deviceIsIOS && target.type === 'file') || target.disabled){
	return true;
}
break;
	case 'label':case 'video':return true;
}
return (/\bneedsclick\b/).test(target.className);
}
;
	/** * Determine whether a given element requires a call to focus to simulate click into element. * * @param{
	EventTarget|Element}
target Target DOM element * @returns{
	boolean}
Returns true if the element requires a call to focus to simulate native click. */
FastClick.prototype.needsFocus = function(target){
	'use strict';
	switch (target.nodeName.toLowerCase()){
	case 'textarea':return true;
	case 'select':return !deviceIsAndroid;
	case 'input':switch (target.type){
	case 'button':case 'checkbox':case 'file':case 'image':case 'radio':case 'submit':return false;
}
// No point in attempting to focus disabled inputs return !target.disabled && !target.readOnly;
	default:return (/\bneedsfocus\b/).test(target.className);
}
}
;
	/** * Send a click event to the specified element. * * @param{
	EventTarget|Element}
targetElement * @param{
	Event}
event */
FastClick.prototype.sendClick = function(targetElement,event){
	'use strict';
	var clickEvent,touch;
	// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) if (document.activeElement && document.activeElement !== targetElement){
	document.activeElement.blur();
}
touch = event.changedTouches[0];
	// Synthesise a click event,with an extra attribute so it can be tracked clickEvent = document.createEvent('MouseEvents');
	clickEvent.initMouseEvent(this.determineEventType(targetElement),true,true,window,1,touch.screenX,touch.screenY,touch.clientX,touch.clientY,false,false,false,false,0,null);
	clickEvent.forwardedTouchEvent = true;
	targetElement.dispatchEvent(clickEvent);
}
;
	FastClick.prototype.determineEventType = function(targetElement){
	'use strict';
	//Issue #159:Android Chrome Select Box does not open with a synthetic click event if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select'){
	return 'mousedown';
}
return 'click';
}
;
	/** * @param{
	EventTarget|Element}
targetElement */
FastClick.prototype.focus = function(targetElement){
	'use strict';
	var length;
	// Issue #160:on iOS 7,some input elements (e.g. date datetime) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties,but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time'){
	length = targetElement.value.length;
	targetElement.setSelectionRange(length,length);
}
else{
	targetElement.focus();
}
}
;
	/** * Check whether the given target element is a child of a scrollable layer and if so,set a flag on it. * * @param{
	EventTarget|Element}
targetElement */
FastClick.prototype.updateScrollParent = function(targetElement){
	'use strict';
	var scrollParent,parentElement;
	scrollParent = targetElement.fastClickScrollParent;
	// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the // target element was moved to another parent. if (!scrollParent || !scrollParent.contains(targetElement)){
	parentElement = targetElement;
	do{
	if (parentElement.scrollHeight > parentElement.offsetHeight){
	scrollParent = parentElement;
	targetElement.fastClickScrollParent = parentElement;
	break;
}
parentElement = parentElement.parentElement;
}
while (parentElement);
}
// Always update the scroll top tracker if possible. if (scrollParent){
	scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
}
}
;
	/** * @param{
	EventTarget}
targetElement * @returns{
	Element|EventTarget}
*/
FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget){
	'use strict';
	// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. if (eventTarget.nodeType === Node.TEXT_NODE){
	return eventTarget.parentNode;
}
return eventTarget;
}
;
	/** * On touch start,record the position and scroll offset. * * @param{
	Event}
event * @returns{
	boolean}
*/
FastClick.prototype.onTouchStart = function(event){
	'use strict';
	var targetElement,touch,selection;
	// Ignore multiple touches,otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). if (event.targetTouches.length > 1){
	return true;
}
targetElement = this.getTargetElementFromEventTarget(event.target);
	touch = event.targetTouches[0];
	if (deviceIsIOS){
	// Only trusted events will deselect text on iOS (issue #49) selection = window.getSelection();
	if (selection.rangeCount && !selection.isCollapsed){
	return true;
}
if (!deviceIsIOS4){
	// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):// when the user next taps anywhere else on the page,new touchstart and touchend events are dispatched // with the same identifier as the touch event that previously triggered the click that triggered the alert. // Sadly,there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an // immediately preceeding touch event (issue #52),so this fix is unavailable on that platform. if (touch.identifier === this.lastTouchIdentifier){
	event.preventDefault();
	return false;
}
this.lastTouchIdentifier = touch.identifier;
	// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling:touch) and:// 1) the user does a fling scroll on the scrollable layer // 2) the user stops the fling scroll with another tap // then the event.target of the last 'touchend' event will be the element that was under the user's finger // when the fling scroll was started,causing FastClick to send a click event to that layer - unless a check // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). this.updateScrollParent(targetElement);
}
}
this.trackingClick = true;
	this.trackingClickStart = event.timeStamp;
	this.targetElement = targetElement;
	this.touchStartX = touch.pageX;
	this.touchStartY = touch.pageY;
	// Prevent phantom clicks on fast double-tap (issue #36) if ((event.timeStamp - this.lastClickTime) < 200){
	event.preventDefault();
}
return true;
}
;
	/** * Based on a touchmove event object,check whether the touch has moved past a boundary since it started. * * @param{
	Event}
event * @returns{
	boolean}
*/
FastClick.prototype.touchHasMoved = function(event){
	'use strict';
	var touch = event.changedTouches[0],boundary = this.touchBoundary;
	if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary){
	return true;
}
return false;
}
;
	/** * Update the last position. * * @param{
	Event}
event * @returns{
	boolean}
*/
FastClick.prototype.onTouchMove = function(event){
	'use strict';
	if (!this.trackingClick){
	return true;
}
// If the touch has moved,cancel the click tracking if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)){
	this.trackingClick = false;
	this.targetElement = null;
}
return true;
}
;
	/** * Attempt to find the labelled control for the given label element. * * @param{
	EventTarget|HTMLLabelElement}
labelElement * @returns{
	Element|null}
*/
FastClick.prototype.findControl = function(labelElement){
	'use strict';
	// Fast path for newer browsers supporting the HTML5 control attribute if (labelElement.control !== undefined){
	return labelElement.control;
}
// All browsers under test that support touch events also support the HTML5 htmlFor attribute if (labelElement.htmlFor){
	return document.getElementById(labelElement.htmlFor);
}
// If no for attribute exists,attempt to retrieve the first labellable descendant element // the list of which is defined here:http://www.w3.org/TR/html5/forms.html#category-label return labelElement.querySelector('button,input:not([type=hidden]),keygen,meter,output,progress,select,textarea');
}
;
	/** * On touch end,determine whether to send a click event at once. * * @param{
	Event}
event * @returns{
	boolean}
*/
FastClick.prototype.onTouchEnd = function(event){
	'use strict';
	var forElement,trackingClickStart,targetTagName,scrollParent,touch,targetElement = this.targetElement;
	if (!this.trackingClick){
	return true;
}
// Prevent phantom clicks on fast double-tap (issue #36) if ((event.timeStamp - this.lastClickTime) < 200){
	this.cancelNextClick = true;
	return true;
}
// Reset to prevent wrong click cancel on input (issue #156). this.cancelNextClick = false;
	this.lastClickTime = event.timeStamp;
	trackingClickStart = this.trackingClickStart;
	this.trackingClick = false;
	this.trackingClickStart = 0;
	// On some iOS devices,the targetElement supplied with the event is invalid if the layer // is performing a transition or scroll,and has to be re-detected manually. Note that // for this to function correctly,it must be called *after* the event target is checked! // See issue #57;
	also filed as rdar://13048589 . if (deviceIsIOSWithBadTarget){
	touch = event.changedTouches[0];
	// In certain cases arguments of elementFromPoint can be negative,so prevent setting targetElement to null targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset,touch.pageY - window.pageYOffset) || targetElement;
	targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
}
targetTagName = targetElement.tagName.toLowerCase();
	if (targetTagName === 'label'){
	forElement = this.findControl(targetElement);
	if (forElement){
	this.focus(targetElement);
	if (deviceIsAndroid){
	return false;
}
targetElement = forElement;
}
}
else if (this.needsFocus(targetElement)){
	// Case 1:If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. // Case 2:Without this exception for input elements tapped when the document is contained in an iframe,then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')){
	this.targetElement = null;
	return false;
}
this.focus(targetElement);
	this.sendClick(targetElement,event);
	// Select elements need the event to go through on iOS 4,otherwise the selector menu won't open. if (!deviceIsIOS4 || targetTagName !== 'select'){
	this.targetElement = null;
	event.preventDefault();
}
return false;
}
if (deviceIsIOS && !deviceIsIOS4){
	// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). scrollParent = targetElement.fastClickScrollParent;
	if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop){
	return true;
}
}
// Prevent the actual click from going though - unless the target node is marked as requiring // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. if (!this.needsClick(targetElement)){
	event.preventDefault();
	this.sendClick(targetElement,event);
}
return false;
}
;
	/** * On touch cancel,stop tracking the click. * * @returns{
	void}
*/
FastClick.prototype.onTouchCancel = function(){
	'use strict';
	this.trackingClick = false;
	this.targetElement = null;
}
;
	/** * Determine mouse events which should be permitted. * * @param{
	Event}
event * @returns{
	boolean}
*/
FastClick.prototype.onMouse = function(event){
	'use strict';
	// If a target element was never set (because a touch event was never fired) allow the event if (!this.targetElement){
	return true;
}
if (event.forwardedTouchEvent){
	return true;
}
// Programmatically generated events targeting a specific element should be permitted if (!event.cancelable){
	return true;
}
// Derive and check the target element to see whether the mouse event needs to be permitted;
	// unless explicitly enabled,prevent non-touch click events from triggering actions,// to prevent ghost/doubleclicks. if (!this.needsClick(this.targetElement) || this.cancelNextClick){
	// Prevent any user-added listeners declared on FastClick element from being fired. if (event.stopImmediatePropagation){
	event.stopImmediatePropagation();
}
else{
	// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) event.propagationStopped = true;
}
// Cancel the event event.stopPropagation();
	event.preventDefault();
	return false;
}
// If the mouse event is permitted,return true for the action to go through. return true;
}
;
	/** * On actual clicks,determine whether this is a touch-generated click,a click action occurring * naturally after a delay after a touch (which needs to be cancelled to avoid duplication),or * an actual click which should be permitted. * * @param{
	Event}
event * @returns{
	boolean}
*/
FastClick.prototype.onClick = function(event){
	'use strict';
	var permitted;
	// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case,set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. if (this.trackingClick){
	this.targetElement = null;
	this.trackingClick = false;
	return true;
}
// Very odd behaviour on iOS (issue #18):if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. if (event.target.type === 'submit' && event.detail === 0){
	return true;
}
permitted = this.onMouse(event);
	// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. if (!permitted){
	this.targetElement = null;
}
// If clicks are permitted,return true for the action to go through. return permitted;
}
;
	/** * Remove all FastClick's event listeners. * * @returns{
	void}
*/
FastClick.prototype.destroy = function(){
	'use strict';
	var layer = this.layer;
	if (deviceIsAndroid){
	layer.removeEventListener('mouseover',this.onMouse,true);
	layer.removeEventListener('mousedown',this.onMouse,true);
	layer.removeEventListener('mouseup',this.onMouse,true);
}
layer.removeEventListener('click',this.onClick,true);
	layer.removeEventListener('touchstart',this.onTouchStart,false);
	layer.removeEventListener('touchmove',this.onTouchMove,false);
	layer.removeEventListener('touchend',this.onTouchEnd,false);
	layer.removeEventListener('touchcancel',this.onTouchCancel,false);
}
;
	/** * Check whether FastClick is needed. * * @param{
	Element}
layer The layer to listen on */
FastClick.notNeeded = function(layer){
	'use strict';
	var metaViewport;
	var chromeVersion;
	// Devices that don't support touch don't need FastClick if (typeof window.ontouchstart === 'undefined'){
	return true;
}
// Chrome version - zero for other browsers chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
	if (chromeVersion){
	if (deviceIsAndroid){
	metaViewport = document.querySelector('meta[name=viewport]');
	if (metaViewport){
	// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) if (metaViewport.content.indexOf('user-scalable=no') !== -1){
	return true;
}
// Chrome 32 and above with width=device-width or less don't need FastClick if (chromeVersion > 31 && window.innerWidth <= window.screen.width){
	return true;
}
}
// Chrome desktop doesn't need FastClick (issue #15)}
else{
	return true;
}
}
// IE10 with -ms-touch-action:none,which disables double-tap-to-zoom (issue #97) if (layer.style.msTouchAction === 'none'){
	return true;
}
return false;
}
;
	/** * Factory method for creating a FastClick object * * @param{
	Element}
layer The layer to listen on */
FastClick.attach = function(layer){
	'use strict';
	return new FastClick(layer);
}
;
	if (typeof define !== 'undefined' && define.amd){
	// AMD. Register as an anonymous module. define(function(){
	'use strict';
	return FastClick;
}
);
}
else if (typeof module !== 'undefined' && module.exports){
	module.exports = FastClick.attach;
	module.exports.FastClick = FastClick;
}
else{
	window.FastClick = FastClick;
}

CSS代码(styles.css):

body,div,h1,h2,h3,h4,h5,h6,p,blockquote,pre,dl,dt,dd,ol,ul,li,hr,fieldset,form,label,legend,th,td,article,aside,figure,footer,header,hgroup,menu,nav,section,summary,hgroup{margin:0;padding:0;border:0;}
a:active,a:hover{outline:0;}
@-webkit-viewport{width:device-width;}
@-moz-viewport{width:device-width;}
@-ms-viewport{width:device-width;}
@-o-viewport{width:device-width;}
@viewport{width:device-width;}
/* ------------------------------------------ RESPONSIVE NAV STYLES--------------------------------------------- */
.nav-collapse ul{margin:0;padding:0;width:100%;display:block;list-style:none;}
.nav-collapse li{width:100%;display:block;}
.js .nav-collapse{clip:rect(0 0 0 0);max-height:0;position:absolute;display:block;overflow:hidden;zoom:1;}
.nav-collapse.opened{max-height:9999px;}
.disable-pointer-events{pointer-events:none !important;}
.nav-toggle{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;}
@media screen and (min-width:40em){.js .nav-collapse{position:relative;}
.js .nav-collapse.closed{max-height:none;}
.nav-toggle{display:none;}
}
/* ------------------------------------------ DEMO STYLES--------------------------------------------- */
body{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%;color:#37302a;background:#fff;font:normal 100%/1.4 sans-serif;}
section{border-bottom:1px solid #999;text-align:center;padding:100px 0 0;height:800px;width:100%;}
h1{margin-bottom:.5em;}
p{width:90%;margin:0 auto;}
/* ------------------------------------------ FIXED HEADER--------------------------------------------- */
header{background:#f4421a;position:fixed;z-index:3;width:100%;left:0;top:0;}
.logo{-webkit-tap-highlight-color:rgba(0,0,0,0);text-decoration:none;font-weight:bold;line-height:55px;padding:0 20px;color:#fff;float:left;}
/* ------------------------------------------ MASK--------------------------------------------- */
.mask{-webkit-transition:opacity 300ms;-moz-transition:opacity 300ms;transition:opacity 300ms;background:rgba(0,0,0,.5);visibility:hidden;position:fixed;opacity:0;z-index:2;bottom:0;right:0;left:0;top:0;}
.android .mask{-webkit-transition:none;transition:none;}
.js-nav-active .mask{visibility:visible;opacity:1;}
@media screen and (min-width:40em){.mask{display:none !important;opacity:0 !important;}
}
/* ------------------------------------------ NAVIGATION STYLES--------------------------------------------- */
.fixed{position:fixed;width:100%;left:0;top:0;}
.nav-collapse,.nav-collapse *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
.nav-collapse,.nav-collapse ul{list-style:none;width:100%;float:left;}
@media screen and (min-width:40em){.nav-collapse{float:right;width:auto;}
}
.nav-collapse li{float:left;width:100%;}
@media screen and (min-width:40em){.nav-collapse li{width:auto;}
}
.nav-collapse a{-webkit-tap-highlight-color:rgba(0,0,0,0);border-top:1px solid white;text-decoration:none;background:#f4421a;padding:0.7em 1em;color:#fff;width:100%;float:left;}
.nav-collapse a:active,.nav-collapse .active a{background:#b73214;}
@media screen and (min-width:40em){.nav-collapse a{border-left:1px solid white;padding:1.02em 2em;text-align:center;border-top:0;float:left;margin:0;}
}
.nav-collapse ul ul a{background:#ca3716;padding-left:2em;}
@media screen and (min-width:40em){.nav-collapse ul ul a{display:none;}
}
/* ------------------------------------------ NAV TOGGLE STYLES--------------------------------------------- */
@font-face{font-family:"responsivenav";src:url("../icons/responsivenav.eot");src:url("../icons/responsivenav.eot?#iefix") format("embedded-opentype"),url("../icons/responsivenav.ttf") format("truetype"),url("../icons/responsivenav.woff") format("woff"),url("../icons/responsivenav.svg#responsivenav") format("svg");font-weight:normal;font-style:normal;}
.nav-toggle{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;text-indent:-300px;position:relative;overflow:hidden;width:60px;height:55px;float:right;}
.nav-toggle:before{color:#fff;/* Edit this to change the icon color */
 font:normal 28px/55px "responsivenav";/* Edit font-size (28px) to change the icon size */
 text-transform:none;text-align:center;position:absolute;content:"\2261";/* Hamburger icon */
 text-indent:0;speak:none;width:100%;left:0;top:0;}
.nav-toggle.active:before{font-size:24px;content:"\78";/* Close icon */
}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
20.66 KB
Html CSS3特效
最新结算
股权转让协议意向书模板
类型: .docx 金额: CNY 2.23¥ 状态: 待结算 详细>
股权转让协议意向书模板
类型: .docx 金额: CNY 0.28¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 2.39¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 0.3¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章