jquery学习记录

i{margin:21px 0}#header-wrapper .Menu-indicator>i,.wrapper-embed .Menu-indicator>i{margin:13px 0}.Menu-popover{background-color:#f7f7f7;display:none;border:1px solid #b5b5b5;position:absolute;z-index:9998}.Menu-popover.is-active{display:block}.Menu_userNav-popover{border-width:0 0 1px 1px;top:49px;right:0;-webkit-border-bottom-left-radius:4px;-moz-border-bottom-left-radius:4px;border-bottom-left-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.2);-moz-box-shadow:0 1px 2px rgba(0,0,0,.2);box-shadow:0 1px 2px rgba(0,0,0,.2)}#header-wrapper .Menu_userNav-popover,.wrapper-embed .Menu_userNav-popover{top:33px}.User{color:#fff;font-size:14px;font-family:caecilia-bold,helvetica,arial,sans-serif;font-weight:400;line-height:48px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:100%;border-right:0;border-left:0;vertical-align:top}#header-wrapper .User,.wrapper-embed .User{line-height:32px;width:auto;padding:0;max-width:440px}.is-active:hover .User{background-image:none}.User-icon{margin-right:4px;margin-left:12px;vertical-align:middle}.User-name{max-width:300px;vertical-align:top;overflow:hidden}.ie8 .User-name,.ie9 .User-name{width:auto}.User-nameText{overflow:hidden;-o-text-overflow:ellipsis;-webkit-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;max-width:300px;width:100%;padding:6px 12px 6px 0;border-right:1px solid #18a269;display:inline;vertical-align:top}.Nav{list-style:none;padding-left:0;margin:0}.Nav-anchor{text-decoration:none;white-space:nowrap;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:block}.ie7 .Nav-anchor{zoom:1}.Nav-anchor:hover,.Nav-anchor:focus{text-decoration:none}.Nav_userNav-left{vertical-align:top;padding-left:1.84615385em;padding-left:2rem;padding-right:1.84615385em;padding-right:2rem;padding-bottom:3.07692308em;padding-bottom:3.33333333rem}@media all{.Nav_userNav-left{background:url(/redesign/global/img/header-dropdown-splitter.png) right top transparent scroll no-repeat;-webkit-background-size:24px 141px;-moz-background-size:24px 141px;-o-background-size:24px 141px;background-size:24px 141px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .Nav_userNav-left{background:url(/redesign/global/img/header-dropdown-splitter@2x.png) right top transparent scroll no-repeat;-webkit-background-size:24px 141px;-moz-background-size:24px 141px;-o-background-size:24px 141px;background-size:24px 141px}}.Nav_userNav-right{padding-left:1.46153846em;padding-left:1.58333333rem;padding-right:1.84615385em;padding-right:2rem;padding-bottom:3.07692308em;padding-bottom:3.33333333rem}.Nav_userNav-item{padding-top:.76923077em;padding-top:.83333333rem}.ie7 .Nav_userNav-item{zoom:1}.Nav_userNav-anchor-right .Nav_userNav-anchor{text-transform:uppercase}.Nav_userNav-anchor,.Nav_userNav-anchor:visited{color:#646e71;font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:400;font-size:1.16666667em;font-size:1.16666667rem;line-height:2;padding:0 .61538462em;padding:0 .66666667rem;border-width:0;border-radius:1.92307692em;border-radius:2.08333333rem;-webkit-transition:all .1s ease-in;-moz-transition:all .1s ease-in;-ms-transition:all .1s ease-in;-o-transition:all .1s ease-in;transition:all .1s ease-in}:lang(zh-cn) .Nav_userNav-anchor,:lang(zh-cn) .Nav_userNav-anchor:visited{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .Nav_userNav-anchor,.ie8 .Nav_userNav-anchor:visited{font-family:gotham-400-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .Nav_userNav-anchor,.ie8 :lang(zh-cn) .Nav_userNav-anchor:visited{font-family:gotham-400-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.Nav_userNav-anchor:hover,.Nav_userNav-anchor:focus{outline:0;border:1px;border-color:#C4CBCF;background-color:#c9d1d7}.Nav_userNav-anchor:active{background-color:#BCC4C9}.MenuBanner{padding:12px 30px}.MenuBanner_goPremium{border-top:1px solid #dfe8eb;-webkit-border-bottom-left-radius:4px;-moz-border-bottom-left-radius:4px;border-bottom-left-radius:4px}@media all{.MenuBanner_goPremium{background:url(/redesign/global/img/chevron-blue-bg.png) left top scroll repeat;-webkit-background-size:50px 30px;-moz-background-size:50px 30px;-o-background-size:50px 30px;background-size:50px 30px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .MenuBanner_goPremium{background:url(/redesign/global/img/chevron-blue-bg@2x.png) left top scroll repeat;-webkit-background-size:50px 30px;-moz-background-size:50px 30px;-o-background-size:50px 30px;background-size:50px 30px}}.MenuBanner_goPremium-message{display:inline-block;margin-left:18px}.MenuBanner_goPremium-title{color:#039924;font-family:caecilia,Times,serif;font-style:normal;font-weight:700;font-size:14px;width:215px;line-height:18px}:lang(zh-cn) .MenuBanner_goPremium-title{font-family:caecilia,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,serif}.ie8 .MenuBanner_goPremium-title{font-family:caecilia-700-normal,Times,serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .MenuBanner_goPremium-title{font-family:caecilia-700-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,serif}.MenuBanner_goPremium-anchor{color:#747474;font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:700;font-size:12px;line-height:16px;text-decoration:none;width:auto;padding:0}:lang(zh-cn) .MenuBanner_goPremium-anchor{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .MenuBanner_goPremium-anchor{font-family:gotham-700-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .MenuBanner_goPremium-anchor{font-family:gotham-700-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.MenuBanner_goPremium-anchor,.MenuBanner_goPremium-anchor:visited{color:#747474}.MenuBanner_goPremium-anchor:hover,.MenuBanner_goPremium-anchor:active{border:none;background-color:#f7f7f7}.MenuBanner_paymentDue-anchor,.MenuBanner_paymentDue-anchor:link,.MenuBanner_paymentDue-anchor:visited{font-family:caecilia,Times,serif;font-style:italic;font-weight:300;font-size:14px}:lang(zh-cn) .MenuBanner_paymentDue-anchor,:lang(zh-cn) .MenuBanner_paymentDue-anchor:link,:lang(zh-cn) .MenuBanner_paymentDue-anchor:visited{font-family:caecilia,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,serif}.ie8 .MenuBanner_paymentDue-anchor,.ie8 .MenuBanner_paymentDue-anchor:link,.ie8 .MenuBanner_paymentDue-anchor:visited{font-family:caecilia-300-italic,Times,serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .MenuBanner_paymentDue-anchor,.ie8 :lang(zh-cn) .MenuBanner_paymentDue-anchor:link,.ie8 :lang(zh-cn) .MenuBanner_paymentDue-anchor:visited{font-family:caecilia-300-italic,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,serif}.MenuBanner_paymentDue-anchor:hover{border:none;background-color:#f7f7f7}.MenuBanner_paymentDue-anchor:active{background-color:#f7f7f7}.Banner-title{line-height:48px;height:100%;vertical-align:top;font-family:caecilia-bold,Times,serif;font-size:18px;color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;-o-text-overflow:ellipsis;-webkit-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;padding-left:15px}.header .left{height:48px}.Banner-divider{width:0;height:100%;vertical-align:top;border-right:1px solid rgba(17,118,4,.4);border-left:1px solid rgba(255,255,255,.3)}.ie7 .Banner-divider,.ie8 .Banner-divider{border-right:1px solid #2e8f25;border-left:1px solid #55bd49}.logo-bar .Banner-divider,.Banner-divider.short{height:23px;margin-top:13px}.header{background-color:#2dbe60;width:100%;height:48px;border-bottom:1px solid #259d4f}#header-wrapper .header,.wrapper-embed .header{display:block;height:32px}.ie8 .header{z-index:auto}.header-inner{height:48px}.header-inner:before,.header-inner:after{display:table;content:""}.header-inner:after{clear:both}.ie8 .header-inner{zoom:1}.header-inner .referral-promo:link,.header-inner .referral-promo:hover,.header-inner .referral-promo:active,.header-inner .referral-promo:visited{display:inline-block;font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:700;font-size:12px;color:#fff;height:27px;line-height:1em;padding:5px 0 0;text-decoration:none}:lang(zh-cn) .header-inner .referral-promo:link,:lang(zh-cn) .header-inner .referral-promo:hover,:lang(zh-cn) .header-inner .referral-promo:active,:lang(zh-cn) .header-inner .referral-promo:visited{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .header-inner .referral-promo:link,.ie8 .header-inner .referral-promo:hover,.ie8 .header-inner .referral-promo:active,.ie8 .header-inner .referral-promo:visited{font-family:gotham-700-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .header-inner .referral-promo:link,.ie8 :lang(zh-cn) .header-inner .referral-promo:hover,.ie8 :lang(zh-cn) .header-inner .referral-promo:active,.ie8 :lang(zh-cn) .header-inner .referral-promo:visited{font-family:gotham-700-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}@media all{.header-inner .referral-promo:hover,.header-inner .referral-promo:active{background:url(/redesign/global/img/header-highlight.png) bottom transparent no-repeat;-webkit-background-size:100% 25px;-moz-background-size:100% 25px;-o-background-size:100% 25px;background-size:100% 25px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .header-inner .referral-promo:hover,html:not(.ie8) .header-inner .referral-promo:active{background:url(/redesign/global/img/header-highlight@2x.png) bottom transparent no-repeat;-webkit-background-size:100% 25px;-moz-background-size:100% 25px;-o-background-size:100% 25px;background-size:100% 25px}}.header-inner .referral-promo .referral-promo-icon{display:inline-block;position:relative;top:4px;margin:0 4px 0 10px;width:13px;height:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media all{.header-inner .referral-promo .referral-promo-icon{background:url(/redesign/global/img/header-referral-promo.png) no-repeat bottom;-webkit-background-size:13px 16px;-moz-background-size:13px 16px;-o-background-size:13px 16px;background-size:13px 16px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .header-inner .referral-promo .referral-promo-icon{background:url(/redesign/global/img/header-referral-promo@2x.png) no-repeat bottom;-webkit-background-size:13px 16px;-moz-background-size:13px 16px;-o-background-size:13px 16px;background-size:13px 16px}}.header-inner .go-premium-promo{display:none}.header-inner .go-premium-promo:link,.header-inner .go-premium-promo:hover,.header-inner .go-premium-promo:active,.header-inner .go-premium-promo:visited{color:#fff;font-weight:700;font-size:12px;line-height:32px;text-decoration:none;height:32px;vertical-align:top;margin-right:32px}#header-wrapper .header-inner .go-premium-promo{display:inline-block}.header-inner .go-premium-promo .Icon{vertical-align:top}#header-wrapper .header-inner,.wrapper-embed .header-inner{height:32px}.header-inner .Btn{font-size:1em;font-size:1rem;line-height:2.08333333;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;background-color:#14aa57;border-color:#18a269;min-height:2.08333333em;min-height:2.08333333rem;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin:11px 8px 10px 11px}.header-inner .Btn:hover{color:#fff;background-color:#129c50;border-color:#169560}.header-inner .Btn:active{color:#fff;background-color:#118f49;border-color:#169560}.header-inner .Btn:focus,.header-inner .Btn:visited{color:#fff}.header-inner .Btn:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#header-wrapper .header-inner .Btn,.wrapper-embed .header-inner .Btn{display:none}.header-inner .right{display:table-cell;vertical-align:middle;height:48px}#header-wrapper .header-inner .right,.wrapper-embed .header-inner .right{height:32px}@media only screen and (max-width:709px){#header-wrapper .header-inner .right,.wrapper-embed .header-inner .right{display:inline-block;float:right}}@media only screen and (max-width:709px){.header-inner .right{display:none}}@media only screen and (max-width:827px){.user-wrapper .header-inner .right{display:none}}.evernote-logo,.evernote-logo:visited{text-indent:-9999px;display:inline-block;padding:0;width:175px;height:48px;margin-left:0;margin-top:0}@media all{.evernote-logo,.evernote-logo:visited{background:url(/redesign/global/img/evernote-logo.png) no-repeat 13px 8px;-webkit-background-size:159px 35px;-moz-background-size:159px 35px;-o-background-size:159px 35px;background-size:159px 35px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .evernote-logo,html:not(.ie8) .evernote-logo:visited{background:url(/redesign/global/img/evernote-logo@2x.png) no-repeat 13px 8px;-webkit-background-size:159px 35px;-moz-background-size:159px 35px;-o-background-size:159px 35px;background-size:159px 35px}}.business-layout .evernote-logo,.business-layout .evernote-logo:visited{width:263px}@media all{.business-layout .evernote-logo,.business-layout .evernote-logo:visited{background:url(/redesign/global/img/evernote-business-logo.png) no-repeat 13px 8px;-webkit-background-size:250px 35px;-moz-background-size:250px 35px;-o-background-size:250px 35px;background-size:250px 35px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .business-layout .evernote-logo,html:not(.ie8) .business-layout .evernote-logo:visited{background:url(/redesign/global/img/evernote-business-logo@2x.png) no-repeat 13px 8px;-webkit-background-size:250px 35px;-moz-background-size:250px 35px;-o-background-size:250px 35px;background-size:250px 35px}}@media all{.evernote-logo:hover,.evernote-logo:visited:hover,.evernote-logo:focus,.evernote-logo:visited:focus{background:url(/redesign/global/img/evernote-logo.png) no-repeat 13px 8px;-webkit-background-size:159px 35px;-moz-background-size:159px 35px;-o-background-size:159px 35px;background-size:159px 35px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .evernote-logo:hover,html:not(.ie8) .evernote-logo:visited:hover,html:not(.ie8) .evernote-logo:focus,html:not(.ie8) .evernote-logo:visited:focus{background:url(/redesign/global/img/evernote-logo@2x.png) no-repeat 13px 8px;-webkit-background-size:159px 35px;-moz-background-size:159px 35px;-o-background-size:159px 35px;background-size:159px 35px}}@media all{.business-layout .evernote-logo:hover,.business-layout .evernote-logo:visited:hover,.business-layout .evernote-logo:focus,.business-layout .evernote-logo:visited:focus{background:url(/redesign/global/img/evernote-business-logo.png) no-repeat 13px 8px;-webkit-background-size:250px 35px;-moz-background-size:250px 35px;-o-background-size:250px 35px;background-size:250px 35px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .business-layout .evernote-logo:hover,html:not(.ie8) .business-layout .evernote-logo:visited:hover,html:not(.ie8) .business-layout .evernote-logo:focus,html:not(.ie8) .business-layout .evernote-logo:visited:focus{background:url(/redesign/global/img/evernote-business-logo@2x.png) no-repeat 13px 8px;-webkit-background-size:250px 35px;-moz-background-size:250px 35px;-o-background-size:250px 35px;background-size:250px 35px}}.evernote-logo span,.evernote-logo:visited span{position:absolute;top:-45px}.ie7 .evernote-logo,.ie7 .evernote-logo:visited{display:block;float:left}.warning-container{float:right;line-height:1em;display:inline-block}.user-wrapper .warning{display:inline-block;vertical-align:top}.warning a{color:#0b4906;font-family:helvetica;font-size:11px;display:inline-block;height:24px;padding:7px 0 0;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.user-wrapper .warning a{line-height:1;height:11px;padding:20px 0 21px}.warning a:hover{color:#052903}#warningIcon{height:32px;width:16px;display:inline-block;margin:0 4px}@media all{#warningIcon{background:url(/redesign/global/img/payment-warning-icon.png) no-repeat 0 center;-webkit-background-size:17px 16px;-moz-background-size:17px 16px;-o-background-size:17px 16px;background-size:17px 16px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) #warningIcon{background:url(/redesign/global/img/payment-warning-icon@2x.png) no-repeat 0 center;-webkit-background-size:17px 16px;-moz-background-size:17px 16px;-o-background-size:17px 16px;background-size:17px 16px}}.user-wrapper #warningIcon{height:52px}#warningLinkIcon{height:32px;width:11px;display:inline-block;margin:0 4px}@media all{#warningLinkIcon{background:url(/redesign/global/img/link-arrow.png) no-repeat 0 center;-webkit-background-size:8px 11px;-moz-background-size:8px 11px;-o-background-size:8px 11px;background-size:8px 11px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) #warningLinkIcon{background:url(/redesign/global/img/link-arrow@2x.png) no-repeat 0 center;-webkit-background-size:8px 11px;-moz-background-size:8px 11px;-o-background-size:8px 11px;background-size:8px 11px}}.user-wrapper #warningLinkIcon{height:52px}.logo-bar{filter:none;height:48px;border-bottom-width:0;background-color:#2dbe60}.logo-bar .evernote-logo{width:175px;margin-left:0;margin-top:0;height:48px}@media all{.logo-bar .evernote-logo{background:url(/redesign/global/img/evernote-logo.png) no-repeat 13px 8px;-webkit-background-size:157px 35px;-moz-background-size:157px 35px;-o-background-size:157px 35px;background-size:157px 35px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .logo-bar .evernote-logo{background:url(/redesign/global/img/evernote-logo@2x.png) no-repeat 13px 8px;-webkit-background-size:157px 35px;-moz-background-size:157px 35px;-o-background-size:157px 35px;background-size:157px 35px}}@media all{body{background:url(/redesign/global/img/page-bg-tile.jpg) center;-webkit-background-size:50px 50px;-moz-background-size:50px 50px;-o-background-size:50px 50px;background-size:50px 50px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) body{background:url(/redesign/global/img/page-bg-tile@2x.png) center;-webkit-background-size:50px 50px;-moz-background-size:50px 50px;-o-background-size:50px 50px;background-size:50px 50px}}body.rtl .logo-bar .evernote-logo{float:right;margin-left:0;margin-right:20px}.Btn{line-height:2.28571429;font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:400;font-size:1.16666667em;font-size:1.16666667rem;text-align:center;white-space:normal;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;min-height:2.28571429em;min-height:2.66666667rem;width:100%;padding:0 1.14285714em;padding:0 1.33333333rem;border-width:1px;border-style:solid;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;float:none;cursor:pointer;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-ms-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:lang(zh-cn) .Btn{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .Btn{font-family:gotham-400-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .Btn{font-family:gotham-400-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}@media only screen and (min-width:30em){.Btn{display:inline-block;width:auto}}.lt-ie8 .Btn{vertical-align:middle}.Btn:hover,.Btn:focus{text-decoration:none}.Btn+.Btn{margin-top:.57142857em;margin-top:.66666667rem}@media only screen and (min-width:30em){.Btn+.Btn{margin-top:0;margin-left:.85714286em;margin-left:1rem}}.Btn_deemph{font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:400;color:#505e69;background-color:#ebebeb;border-color:#e1e1e1}:lang(zh-cn) .Btn_deemph{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .Btn_deemph{font-family:gotham-400-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .Btn_deemph{font-family:gotham-400-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.Btn_deemph:hover{color:#4e4e51;background-color:#ddd;border-color:#d4d4d4}.Btn_deemph:active{color:#414244;background-color:#d1d1d1;border-color:#c8c8c8}.Btn_deemph:focus,.Btn_deemph:visited{color:#4e4e51}.Btn_deemph:focus{border-color:#3d96e3;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;outline:0;-webkit-box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7);-moz-box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7);box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7)}@media only screen and (min-width:51.75em){.Btn_deemph:focus{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}}.Btn_deemph:active{-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.Btn_emph{font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:500;color:#fff;background-color:#2dbe60;border-color:#1fae52}:lang(zh-cn) .Btn_emph{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .Btn_emph{font-family:gotham-500-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .Btn_emph{font-family:gotham-500-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.Btn_emph:hover{color:#fff;background-color:#28a956;border-color:#1b9848}.Btn_emph:active{color:#fff;background-color:#23954b;border-color:#17833e}.Btn_emph:focus,.Btn_emph:visited{color:#fff}.Btn_emph:focus{border-color:#3d96e3;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;outline:0;-webkit-box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7);-moz-box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7);box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7)}@media only screen and (min-width:51.75em){.Btn_emph:focus{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}}.Btn_emph:active{-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.Btn_dark{color:#fff;background-color:#626f78;border-color:#505e69;background-color:#6f7c86;background-image:-moz-linear-gradient(top,#778590,#626f78);background-image:-ms-linear-gradient(top,#778590,#626f78);background-image:-webkit-gradient(linear,0 0,0 100%,from(#778590),to(#626f78));background-image:-webkit-linear-gradient(top,#778590,#626f78);background-image:-o-linear-gradient(top,#778590,#626f78);background-image:linear-gradient(top,#778590,#626f78);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=‘#ff778590‘, endColorstr=‘#ff626f78‘, GradientType=0)}.Btn_dark:hover{color:#fff;background-color:#626f78;border-color:#505e69;background-color:#6f7c86;background-image:-moz-linear-gradient(top,#778590,#626f78);background-image:-ms-linear-gradient(top,#778590,#626f78);background-image:-webkit-gradient(linear,0 0,0 100%,from(#778590),to(#626f78));background-image:-webkit-linear-gradient(top,#778590,#626f78);background-image:-o-linear-gradient(top,#778590,#626f78);background-image:linear-gradient(top,#778590,#626f78);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=‘#ff778590‘, endColorstr=‘#ff626f78‘, GradientType=0)}.Btn_dark:active{color:#fff;background-color:#626f78;border-color:#505e69;background-color:#6f7c86;background-image:-moz-linear-gradient(top,#778590,#626f78);background-image:-ms-linear-gradient(top,#778590,#626f78);background-image:-webkit-gradient(linear,0 0,0 100%,from(#778590),to(#626f78));background-image:-webkit-linear-gradient(top,#778590,#626f78);background-image:-o-linear-gradient(top,#778590,#626f78);background-image:linear-gradient(top,#778590,#626f78);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=‘#ff778590‘, endColorstr=‘#ff626f78‘, GradientType=0)}.Btn_dark:focus,.Btn_dark:visited{color:#fff}.Btn_dark:focus{border-color:#3d96e3;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;outline:0;-webkit-box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7);-moz-box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7);box-shadow:0 0 0 1px #3d96e3,0 0 7px 0 rgba(61,150,227,.7)}@media only screen and (min-width:51.75em){.Btn_dark:focus{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}}@media only screen and (min-width:30em){.Btn_super{line-height:2.75;font-size:1.33333333em;font-size:1.33333333rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:9.625em;min-width:12.83333333rem;min-height:2.75em;min-height:3.66666667rem;padding:0 1em;padding:0 1.33333333em}.Btn_super+.Btn_super{margin-left:.75em;margin-left:1rem}}.Btn_inline{line-height:1.75;font-size:1em;font-size:1rem;display:inline-block;width:auto;min-height:1.75em;min-height:1.75rem}.Btn:disabled,.Btn[disabled],.Btn.is-disabled{opacity:.5;-ms-filter:alpha(Opacity=50);filter:alpha(opacity=50);cursor:not-allowed}.BtnPanel:before,.BtnPanel:after{display:table;content:""}.BtnPanel:after{clear:both}.ie8 .BtnPanel{zoom:1}@media only screen and (min-width:30em){.BtnPanel-btn{float:right}.BtnPanel-btn+.BtnPanel-btn{margin:0 1em 0 0;margin:0 1rem 0 0}}html,body,div{margin:0;padding:0}.ext-padding{padding:16px}.ext-padding .image-content{padding:0 8px}.ext-padding .image-content .welcome-entry{margin:0 8px;width:128px;height:140px;float:left;font-size:13px;line-height:18px;font-family:helvetica,arial,sans-serif;color:#747474;text-align:center}@media all{.ext-padding .image-content .welcome-entry .welcome-access{background:url(/redesign/sharing/SharedNoteViewAction/share-reg-access.png) no-repeat center;-webkit-background-size:78px 78px;-moz-background-size:78px 78px;-o-background-size:78px 78px;background-size:78px 78px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .ext-padding .image-content .welcome-entry .welcome-access{background:url(/redesign/sharing/SharedNoteViewAction/share-reg-access@2x.png) no-repeat center;-webkit-background-size:78px 78px;-moz-background-size:78px 78px;-o-background-size:78px 78px;background-size:78px 78px}}@media all{.ext-padding .image-content .welcome-entry .welcome-capture{background:url(/redesign/sharing/SharedNoteViewAction/share-reg-capture.png) no-repeat center;-webkit-background-size:78px 78px;-moz-background-size:78px 78px;-o-background-size:78px 78px;background-size:78px 78px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .ext-padding .image-content .welcome-entry .welcome-capture{background:url(/redesign/sharing/SharedNoteViewAction/share-reg-capture@2x.png) no-repeat center;-webkit-background-size:78px 78px;-moz-background-size:78px 78px;-o-background-size:78px 78px;background-size:78px 78px}}@media all{.ext-padding .image-content .welcome-entry .welcome-find{background:url(/redesign/sharing/SharedNoteViewAction/share-reg-find.png) no-repeat center;-webkit-background-size:78px 78px;-moz-background-size:78px 78px;-o-background-size:78px 78px;background-size:78px 78px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .ext-padding .image-content .welcome-entry .welcome-find{background:url(/redesign/sharing/SharedNoteViewAction/share-reg-find@2x.png) no-repeat center;-webkit-background-size:78px 78px;-moz-background-size:78px 78px;-o-background-size:78px 78px;background-size:78px 78px}}.ext-padding .image-content .welcome-entry .welcome-image{width:128px;height:78px;margin-bottom:10px}.ext-padding .submission-options{clear:both;padding-bottom:16px;text-align:center;border-bottom:1px solid #bdbdbd}.ext-padding .submission-options .emphasize{margin-bottom:20px}.ext-padding .submission-options .existing{text-align:center;font-family:helvetica,arial,sans-serif;font-size:13px;color:#4a8db8;cursor:pointer}.ext-padding .skip-link{margin-top:16px;text-align:right;font-family:helvetica,arial,sans-serif;font-size:13px;color:#4a8db8;cursor:pointer}#note-frame-body{background:#FFF}.wrapper#container-boundingbox{margin:0;width:100%}a.save-button:link,a.general-button:link,a.get-app-button:link,a.view-button:link,a.save-button:visited,a.general-button:visited,a.get-app-button:visited,a.view-button:visited,a.save-button:hover,a.general-button:hover,a.get-app-button:hover,a.view-button:hover,a.save-button:active,a.general-button:active,a.get-app-button:active,a.view-button:active{font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:400;text-decoration:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}:lang(zh-cn) a.save-button:link,:lang(zh-cn) a.general-button:link,:lang(zh-cn) a.get-app-button:link,:lang(zh-cn) a.view-button:link,:lang(zh-cn) a.save-button:visited,:lang(zh-cn) a.general-button:visited,:lang(zh-cn) a.get-app-button:visited,:lang(zh-cn) a.view-button:visited,:lang(zh-cn) a.save-button:hover,:lang(zh-cn) a.general-button:hover,:lang(zh-cn) a.get-app-button:hover,:lang(zh-cn) a.view-button:hover,:lang(zh-cn) a.save-button:active,:lang(zh-cn) a.general-button:active,:lang(zh-cn) a.get-app-button:active,:lang(zh-cn) a.view-button:active{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 a.save-button:link,.ie8 a.general-button:link,.ie8 a.get-app-button:link,.ie8 a.view-button:link,.ie8 a.save-button:visited,.ie8 a.general-button:visited,.ie8 a.get-app-button:visited,.ie8 a.view-button:visited,.ie8 a.save-button:hover,.ie8 a.general-button:hover,.ie8 a.get-app-button:hover,.ie8 a.view-button:hover,.ie8 a.save-button:active,.ie8 a.general-button:active,.ie8 a.get-app-button:active,.ie8 a.view-button:active{font-family:gotham-400-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) a.save-button:link,.ie8 :lang(zh-cn) a.general-button:link,.ie8 :lang(zh-cn) a.get-app-button:link,.ie8 :lang(zh-cn) a.view-button:link,.ie8 :lang(zh-cn) a.save-button:visited,.ie8 :lang(zh-cn) a.general-button:visited,.ie8 :lang(zh-cn) a.get-app-button:visited,.ie8 :lang(zh-cn) a.view-button:visited,.ie8 :lang(zh-cn) a.save-button:hover,.ie8 :lang(zh-cn) a.general-button:hover,.ie8 :lang(zh-cn) a.get-app-button:hover,.ie8 :lang(zh-cn) a.view-button:hover,.ie8 :lang(zh-cn) a.save-button:active,.ie8 :lang(zh-cn) a.general-button:active,.ie8 :lang(zh-cn) a.get-app-button:active,.ie8 :lang(zh-cn) a.view-button:active{font-family:gotham-400-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}a.get-app-button{display:none}.wrapper#container{background-color:#fff;border-style:hidden;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;margin:0 auto;width:672px;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.2);-moz-box-shadow:0 1px 5px rgba(0,0,0,.2);box-shadow:0 1px 5px rgba(0,0,0,.2);padding:20px 20px 20px 30px}@media only screen and (min-width:930px){.wrapper#container{width:672px}}@media only screen and (min-width:710px) and (max-width:929px){.wrapper#container{width:608px}}@media only screen and (min-width:480px) and (max-width:709px){.wrapper#container{width:352px}}@media only screen and (max-width:479px){.wrapper#container{width:288px}}@media only screen and (max-width:709px){.wrapper#container{padding:20px 18px 18px;width:auto;margin:0 10px}}@media print{.wrapper#container{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}}.footer{background:0 0;border:0;margin:0 auto 10px;padding:10px 0 0;text-align:center;width:736px}@media only screen and (max-width:479px){.footer{width:100%}}@media only screen and (min-width:480px) and (max-width:709px){.footer{width:100%}}@media only screen and (min-width:710px) and (max-width:929px){.footer{width:100%}}.footer .footer-entry{color:#747474;line-height:1.41666667;font-family:helvetica,arial,sans-serif;font-size:1em;font-size:1rem;font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:400;text-align:left;text-decoration:none;text-indent:0;text-justify:auto;text-outline:0;text-overflow:clip;text-shadow:none;text-transform:none;text-wrap:normal;color:#ababab;font-size:11px;text-align:center;border-right:1px solid #ababab;padding:0 15px}:lang(zh-cn) .footer .footer-entry{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .footer .footer-entry{font-family:gotham-400-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .footer .footer-entry{font-family:gotham-400-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.footer .footer-entry.last{border:0}@media only screen and (max-width:479px){.footer .footer-entry{border:0;display:block}}@media only screen and (min-width:480px) and (max-width:709px){.footer .footer-entry{border:0;display:block}}.footer a.footer-entry:hover{color:#4a8db8}.wrapper-menu>.footer{text-align:center;height:40px;padding:0;margin-bottom:0;clear:both;float:right;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;z-index:1;position:relative}@media only screen and (min-width:51.75em){.wrapper-menu>.footer{padding:0 32px}}@media only screen and (min-width:51.75em) and (max-width:60.8125em){.wrapper-menu>.footer{width:546px}}@media only screen and (min-width:60.875em){.wrapper-menu>.footer{width:738px}}.ie8 .wrapper-menu>.footer{float:none}@media only screen and (min-width:51.75em){.ie8 .wrapper-menu>.footer{margin-left:216px}}.note-footer{width:672px;margin:30px auto 10px;font-family:Georgia,"Times New Roman",Times,serif;font-style:italic;font-size:14px;line-height:18px;color:#7d8184}@media only screen and (min-width:930px){.note-footer{width:672px}}@media only screen and (min-width:710px) and (max-width:929px){.note-footer{width:608px}}@media only screen and (min-width:480px) and (max-width:709px){.note-footer{width:352px}}@media only screen and (max-width:479px){.note-footer{width:288px}}.note-footer .footer-logo{width:26px;height:30px;margin-top:15px;display:inline-block}@media all{.note-footer .footer-logo{background:url(/redesign/sharing/SharedNoteViewAction/logo-footer.png) no-repeat;-webkit-background-size:26px 30px;-moz-background-size:26px 30px;-o-background-size:26px 30px;background-size:26px 30px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .note-footer .footer-logo{background:url(/redesign/sharing/SharedNoteViewAction/logo-footer@2x.png) no-repeat;-webkit-background-size:26px 30px;-moz-background-size:26px 30px;-o-background-size:26px 30px;background-size:26px 30px}}#message-container{margin:10px auto 5px;height:20px}#message-container #message{font-family:helvetica,arial,sans-serif;font-size:13px;color:#444746;display:none;text-align:center;overflow:hidden;-o-text-overflow:ellipsis;-webkit-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}#message-container #message #message-checkmark{position:relative;top:2px;left:-4px;display:inline-block;width:18px;height:14px}@media all{#message-container #message #message-checkmark{background:url(/redesign/sharing/SharedNoteViewAction/success-checkmark.png) no-repeat;-webkit-background-size:18px 14px;-moz-background-size:18px 14px;-o-background-size:18px 14px;background-size:18px 14px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) #message-container #message #message-checkmark{background:url(/redesign/sharing/SharedNoteViewAction/success-checkmark@2x.png) no-repeat;-webkit-background-size:18px 14px;-moz-background-size:18px 14px;-o-background-size:18px 14px;background-size:18px 14px}}@media only screen and (max-width:709px){#message-container #message{padding:8px;text-align:left;margin:0 20px;z-index:999;position:relative;background-color:#f5f5f5;border:4px solid rgba(0,0,0,.3);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}}.switch-account-div{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;display:none;float:right;height:48px;z-index:9999;margin-right:15px;position:relative;max-width:208px}@media only screen and (max-width:479px){.switch-account-div{margin-right:4px}}.switch-account-div.active{cursor:pointer}.switch-account-arrow{display:none;height:5px;margin-left:6px;width:9px}@media all{.switch-account-arrow{background:url(/redesign/sharing/SharedNoteViewAction/user-arrow-icon.png) no-repeat;-webkit-background-size:9px 5px;-moz-background-size:9px 5px;-o-background-size:9px 5px;background-size:9px 5px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .switch-account-arrow{background:url(/redesign/sharing/SharedNoteViewAction/user-arrow-icon@2x.png) no-repeat;-webkit-background-size:9px 5px;-moz-background-size:9px 5px;-o-background-size:9px 5px;background-size:9px 5px}}.active .switch-account-arrow{display:inline-block}.switch-account-name{vertical-align:top;padding-top:15px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;font-family:caecilia-bold,helvetica,arial,sans-serif;font-size:13px;display:inline-block;max-width:150px;overflow:hidden;-o-text-overflow:ellipsis;-webkit-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}@media only screen and (max-width:479px){.switch-account-name{max-width:78px}}.switch-account-icon{display:inline-block;height:24px;position:relative;top:12px;width:33px}@media all{.switch-account-icon-premium{background:url(/redesign/global/img/badge-premium.png) no-repeat center center;-webkit-background-size:16px 18px;-moz-background-size:16px 18px;-o-background-size:16px 18px;background-size:16px 18px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .switch-account-icon-premium{background:url(/redesign/global/img/badge-premium@2x.png) no-repeat center center;-webkit-background-size:16px 18px;-moz-background-size:16px 18px;-o-background-size:16px 18px;background-size:16px 18px}}@media all{.switch-account-icon-free{background:url(/redesign/global/img/badge-free.png) no-repeat center center;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .switch-account-icon-free{background:url(/redesign/global/img/badge-free@2x.png) no-repeat center center;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}.switch-account-dropdown{display:none;background-color:#f4f6f7;font-family:helvetica,arial,sans-serif;font-size:13px;font-weight:700;position:absolute;right:-3px;top:49px;z-index:9999;width:190px;border:1px solid rgba(153,158,161,.9);border-top:0;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.25);-moz-box-shadow:0 1px 3px rgba(0,0,0,.25);box-shadow:0 1px 3px rgba(0,0,0,.25)}@media print{.switch-account-dropdown{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}}.switch-dropdown-arrow{width:16px;height:9px;position:absolute;top:-9px;left:166px}@media all{.switch-dropdown-arrow{background:url(/redesign/sharing/SharedNoteViewAction/user-dropdown-arrow.png) no-repeat;-webkit-background-size:16px 9px;-moz-background-size:16px 9px;-o-background-size:16px 9px;background-size:16px 9px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .switch-dropdown-arrow{background:url(/redesign/sharing/SharedNoteViewAction/user-dropdown-arrow@2x.png) no-repeat;-webkit-background-size:16px 9px;-moz-background-size:16px 9px;-o-background-size:16px 9px;background-size:16px 9px}}.switch-account-menuitem{text-decoration:none;display:block;padding:12px 20px;color:#646e71;border-bottom:1px solid #dadddf}.switch-account-menuitem:hover{background-color:#ced2d6}.switch-account-logout{padding:12px 20px;color:#566265;background-color:#eaecee;border-top:1px solid #fefefe}.switch-account-logout:hover{background-color:#ced2d6}#logoutSignInLink{text-decoration:underline;cursor:pointer;margin:0 0 0 10px}a.save-button,a.view-button{font-size:1em;font-size:1rem;line-height:2.08333333;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;background-color:#14aa57;border-color:#18a269;min-height:2.08333333em;min-height:2.08333333rem;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}a.save-button:hover,a.view-button:hover{color:#fff;background-color:#129c50;border-color:#169560}a.save-button:active,a.view-button:active{color:#fff;background-color:#118f49;border-color:#169560}a.save-button:focus,a.view-button:focus,a.save-button:visited,a.view-button:visited{color:#fff}.logo-bar a.save-button,.logo-bar a.view-button{margin:8px 8px 10px 11px}.save-button-desktop:link,.view-button-desktop:link,.save-button-desktop:visited,.view-button-desktop:visited,.save-button-desktop:hover,.view-button-desktop:hover{margin-left:0;font-size:14px;float:right;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}@media only screen and (max-width:709px){.save-button-desktop:link,.view-button-desktop:link,.save-button-desktop:visited,.view-button-desktop:visited,.save-button-desktop:hover,.view-button-desktop:hover{display:none!important}}@media print{.save-button-desktop:link,.view-button-desktop:link,.save-button-desktop:visited,.view-button-desktop:visited,.save-button-desktop:hover,.view-button-desktop:hover{display:none!important}}.save-button-mobile:link,.view-button-mobile:link,.save-button-mobile:visited,.view-button-mobile:visited,.save-button-mobile:hover,.view-button-mobile:hover{text-align:center;font-size:14px;display:block;margin:35px 0 0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}@media only screen and (min-width:930px){.save-button-mobile:link,.view-button-mobile:link,.save-button-mobile:visited,.view-button-mobile:visited,.save-button-mobile:hover,.view-button-mobile:hover{display:none!important}}@media only screen and (min-width:710px) and (max-width:929px){.save-button-mobile:link,.view-button-mobile:link,.save-button-mobile:visited,.view-button-mobile:visited,.save-button-mobile:hover,.view-button-mobile:hover{display:none!important}}.sharing-imagegallery{float:right;margin-top:5px;z-index:1}.sharing-imagegallery .SharingMenu{display:inline-block}@media only screen and (max-width:709px){.sharing-imagegallery .menu-bar{left:-76px}}@media only screen and (max-width:709px){.sharing-imagegallery{position:absolute;top:53px;right:25px}}.sharing-reportspam{float:right;height:22px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;font-size:11px;font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:400;line-height:22px;color:#747474;background:#f4f4f4;padding:0 8px;margin:5px 12px 0 0;cursor:pointer}:lang(zh-cn) .sharing-reportspam{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .sharing-reportspam{font-family:gotham-400-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .sharing-reportspam{font-family:gotham-400-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.sharing-reportspam:hover{background:#d7d7d7}@media only screen and (max-width:709px){.sharing-reportspam{position:absolute;top:50px;right:40px}}.ie7 .sharing-reportspam{margin-right:30px}.image-gallery-button{display:inline-block;width:18px;height:18px;margin-left:20px}@media all{.image-gallery-button:link,.image-gallery-button:visited{background:url(/redesign/sharing/SharedNoteViewAction/gallery.png) no-repeat;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .image-gallery-button:link,html:not(.ie8) .image-gallery-button:visited{background:url(/redesign/sharing/SharedNoteViewAction/gallery@2x.png) no-repeat;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}.image-gallery-button:hover{opacity:.5;-ms-filter:alpha(Opacity=50);filter:alpha(opacity=50)}@media all{.image-gallery-button:active{background:url(/redesign/sharing/SharedNoteViewAction/gallery-active.png) no-repeat;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .image-gallery-button:active{background:url(/redesign/sharing/SharedNoteViewAction/gallery-active@2x.png) no-repeat;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}@media only screen and (max-width:709px){.image-gallery-button{display:none!important}}@media print{.image-gallery-button{display:none!important}}html.ie7 .sharing-imagegallery{position:relative;left:-20px}html.ie7 .image-gallery-button{position:relative;top:-16px;left:40px}.image-and-hover{display:inline-block;max-width:100%;position:relative}.image-and-hover .image-hover-container{position:absolute;display:inline;top:10px;right:10px;width:60px;height:25px;opacity:0;-ms-filter:alpha(Opacity=0);filter:alpha(opacity=0);pointer-events:none;z-index:100;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#f7f7f7;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.5);-moz-box-shadow:0 1px 3px rgba(0,0,0,.5);box-shadow:0 1px 3px rgba(0,0,0,.5)}.image-and-hover .image-hover-container a.hover-download,.image-and-hover .image-hover-container a.hover-gallery,.image-and-hover .image-hover-container a.hover-download:active,.image-and-hover .image-hover-container a.hover-gallery:active{display:inline-block;z-index:101;width:29px;height:25px}.image-and-hover .image-hover-container .hover-download{padding-right:1px;border-right:1px solid #bdbdbd}@media all{.image-and-hover .image-hover-container .hover-download{background:url(/redesign/sharing/SharedNoteViewAction/download.png) no-repeat center center;-webkit-background-size:16px 17px;-moz-background-size:16px 17px;-o-background-size:16px 17px;background-size:16px 17px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .image-and-hover .image-hover-container .hover-download{background:url(/redesign/sharing/SharedNoteViewAction/download@2x.png) no-repeat center center;-webkit-background-size:16px 17px;-moz-background-size:16px 17px;-o-background-size:16px 17px;background-size:16px 17px}}.image-and-hover .image-hover-container .hover-download:hover{opacity:.5;-ms-filter:alpha(Opacity=50);filter:alpha(opacity=50)}@media all{.image-and-hover .image-hover-container .hover-download:active{background:url(/redesign/sharing/SharedNoteViewAction/download-active.png) no-repeat center center;-webkit-background-size:16px 17px;-moz-background-size:16px 17px;-o-background-size:16px 17px;background-size:16px 17px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .image-and-hover .image-hover-container .hover-download:active{background:url(/redesign/sharing/SharedNoteViewAction/download-active@2x.png) no-repeat center center;-webkit-background-size:16px 17px;-moz-background-size:16px 17px;-o-background-size:16px 17px;background-size:16px 17px}}@media all{.image-and-hover .image-hover-container .hover-gallery{background:url(/redesign/sharing/SharedNoteViewAction/gallery.png) no-repeat center center;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .image-and-hover .image-hover-container .hover-gallery{background:url(/redesign/sharing/SharedNoteViewAction/gallery@2x.png) no-repeat center center;-webkit-background-size:18px 18px;-moz-background-size:18px 18px;-o-background-size:18px 18px;background-size:18px 18px}}.image-and-hover .image-hover-container .hover-gallery:hover{opacity:.5;-ms-filter:alpha(Opacity=50);filter:alpha(opacity=50)}@media all{.image-and-hover .image-hover-container .hover-gallery:active{background:url(/redesign/sharing/SharedNoteViewAction/gallery-active.png) no-repeat center center;-webkit-background-size:16px 17px;-moz-background-size:16px 17px;-o-background-size:16px 17px;background-size:16px 17px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .image-and-hover .image-hover-container .hover-gallery:active{background:url(/redesign/sharing/SharedNoteViewAction/gallery-active@2x.png) no-repeat center center;-webkit-background-size:16px 17px;-moz-background-size:16px 17px;-o-background-size:16px 17px;background-size:16px 17px}}.image-and-hover:hover .image-hover-container,.image-and-hover.emulate-hover .image-hover-container{pointer-events:auto;opacity:.9;-ms-filter:alpha(Opacity=90);filter:alpha(opacity=90)}.note-content{padding-right:10px;position:relative;overflow-x:auto;background:#FFF;overflow-wrap:break-word;word-wrap:break-word}.note-content html,.note-content body,.note-content div,.note-content iframe,.note-content h1,.note-content h2,.note-content h3,.note-content h4,.note-content h5,.note-content h6,.note-content p,.note-content blockquote,.note-content pre,.note-content a,.note-content code,.note-content del,.note-content dfn,.note-content em,.note-content img,.note-content q,.note-content dl,.note-content dt,.note-content dd,.note-content ol,.note-content ul,.note-content li{margin:0;padding:0;border:0}.note-content a,.note-content abbr,.note-content acronym,.note-content address,.note-content area,.note-content b,.note-content bdo,.note-content big,.note-content blockquote,.note-content caption,.note-content center,.note-content cite,.note-content code,.note-content col,.note-content colgroup,.note-content dd,.note-content del,.note-content dfn,.note-content div,.note-content dl,.note-content dt,.note-content em,.note-content font,.note-content h3,.note-content h4,.note-content h5,.note-content h6,.note-content hr,.note-content i,.note-content ins,.note-content kbd,.note-content li,.note-content map,.note-content ol,.note-content p,.note-content pre,.note-content q,.note-content s,.note-content samp,.note-content small,.note-content span,.note-content strike,.note-content strong,.note-content sub,.note-content sup,.note-content table,.note-content tbody,.note-content td,.note-content tfoot,.note-content th,.note-content thead,.note-content tr,.note-content tt,.note-content u,.note-content ul{line-height:1.428571em}.note-content body{font-family:Helvetica,Arial,"Droid Sans",sans-serif;font-size:14px;margin:1.428571em}.note-content a:link,.note-content a:visited{color:#047ac6}.note-content a:hover,.note-content a:active{color:#2596de}.note-content h1,.note-content h2,.note-content h3,.note-content h4,.note-content h5,.note-content h6{font-family:Helvetica,Arial,"Droid Sans",sans-serif;font-weight:700}.note-content h1{font-size:1.5em;line-height:.9523em;margin-bottom:.4761em;margin-top:.9523em}.note-content h2{font-size:1.286em;line-height:1.111em;margin-bottom:.5556em;margin-top:1.111em}.note-content h3{font-size:1em;margin-bottom:.714285em;margin-top:1.4285em}.note-content h4,.note-content h5,.note-content h6{font-size:1em;font-weight:700}.note-content div{font-family:Helvetica,Arial,"Droid Sans",sans-serif;font-size:14px}.note-content a{word-break:break-all}.note-content p{margin-bottom:.714285em}.note-content img.en-media{margin-bottom:1.286em;max-width:100%;height:auto}.note-content img.en-media[height="1"]{height:1px}.note-content p+img,.note-content p+div img{margin-top:.714285em}.note-content div+img,.note-content div+div img{margin-top:.857412em}.note-content img+img,.note-content div+div img+img{margin-top:0}.note-content ul,.note-content ol{list-style-position:outside;margin-top:.2857em;margin-bottom:.714285em;margin-left:2em;padding-left:0}.note-content li ul,.note-content li ol{margin-bottom:0;margin-top:0}.note-content p+ul,.note-content p+ol,.note-content h1+ul,.note-content h1+ol,.note-content h2+ul,.note-content h2+ol{margin-top:-.428571em}.note-content blockquote{border-left-color:#bfbfbf;border-left-style:solid;border-left-width:2px;margin-left:1.4285em;padding-left:.714285em;margin-top:1.4285em;margin-bottom:1.4285em}.note-content pre,.note-content code{font-family:Monaco,Courier,monospace}.note-content del{text-decoration:line-through}.note-content dfn,.note-content cite{font-style:italic}.note-content table{font-size:1em}.note-content th,.note-content td{padding:.2em 2em .2em 0;text-align:left}.note-content button.en-ignore{margin-bottom:1em}.note-content .highlight{border:1px solid #d4cd7e;background:#F6EE96}.note-content .Decrypted{background-color:#F7F7F7;padding:5px}.note-content .Decrypted .Header{font-family:Helvetica,Arial,sans-serif;font-size:11px;padding-bottom:5px;color:#404040}.note-content .Decrypted .Body{background-color:#fff;padding:5px}.note-content .canvas-container{margin-bottom:10px;border:1px solid #cacaca}@media all{.note-content .canvas-container{background:url(/redesign/global/img/loading-spinner.gif) no-repeat center;-webkit-background-size:150px 150px;-moz-background-size:150px 150px;-o-background-size:150px 150px;background-size:150px 150px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .note-content .canvas-container{background:url(/redesign/global/img/loading-spinner.gif) no-repeat center;-webkit-background-size:150px 150px;-moz-background-size:150px 150px;-o-background-size:150px 150px;background-size:150px 150px}}.note-content .image-and-hover img.en-media:hover,.note-content .SharedNoteSkitch img.en-media:hover{cursor:url(/images/magnify.cur),default;cursor:zoom-in;cursor:-webkit-zoom-in;cursor:-moz-zoom-in}.note-content img[name=en-crypt]{cursor:pointer}.note-title{font-family:caecilia,helvetica,arial,sans-serif;font-weight:400;font-size:21px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:24px;color:#005c78;margin-top:5px;margin-bottom:3px;overflow:hidden;text-overflow:ellipsis;float:left;width:480px}@media only screen and (min-width:930px){.note-title{width:480px}}@media only screen and (min-width:710px) and (max-width:929px){.note-title{width:416px}}@media only screen and (min-width:480px) and (max-width:709px){.note-title{width:448px}}@media only screen and (max-width:479px){.note-title{width:352px}}@media only screen and (max-width:709px){.note-title{font-size:21px;line-height:26px;margin:0 0 3px;width:90%}}.divider{border-bottom:1px solid #e4e4e4;clear:both;margin:20px 10px 20px 0}.vtop{vertical-align:top;margin-top:5px}.source-url-container{display:inline-block;text-overflow:ellipsis;max-width:250px;height:22px;overflow:hidden;margin-right:8px;vertical-align:bottom}.source-url-container .source-url:link,.source-url-container .source-url:visited,.source-url-container .source-url:hover,.source-url-container .source-url:active{white-space:nowrap;letter-spacing:normal;font-family:helvetica,arial,sans-serif;text-decoration:underline;color:#4a8db8;font-weight:400;font-size:12px;vertical-align:top;line-height:1}@media only screen and (max-width:709px){.source-url-container{display:block;max-width:none}}.note-updated{white-space:nowrap;font-family:gotham,helvetica,arial,sans-serif;font-style:normal;font-weight:400;color:#a8aeb3;font-size:12px;display:inline-block;height:22px;vertical-align:bottom;line-height:1}:lang(zh-cn) .note-updated{font-family:gotham,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.ie8 .note-updated{font-family:gotham-400-normal,helvetica,arial,sans-serif;font-style:normal;font-weight:400}.ie8 :lang(zh-cn) .note-updated{font-family:gotham-400-normal,Hiragino Sans GB,STHeiti,Microsoft Yahei,helvetica,arial,sans-serif}.capitalize{text-transform:uppercase}.rtl .switch-account-div,.rtl .save-button-desktop,.rtl .sharing-imagegallery{float:left}@media only screen and (max-width:709px){.rtl .sharing-imagegallery{left:-18px}}.rtl .switch-account-dropdown,.rtl .save-button,.rtl .view-button,.rtl .note-title,.rtl .sharing-menu,.rtl .footer{direction:rtl}.rtl .vtop,.rtl .Decrypted .Header{text-align:right}.rtl .desktop-get-app.get-app-button{float:left}#note-content-iframe{display:none;width:100%;border:none}#registration-footer{display:none}.ie7 .register #registration-footer{background:0 0;-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC213442, endColorstr=#CC213442);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC213442, endColorstr=#CC213442)}.register #registration-footer{display:block;text-align:center;background-color:rgba(33,52,66,.8);padding-top:30px;padding-bottom:26px;border-top:1px solid #929ca3;position:fixed;bottom:0;width:100%}.register #registration-footer .text{font-size:20px;line-height:26px;font-family:Caecilia-italic,helvetica,arial,sans-serif;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3);display:inline-block;-webkit-font-smoothing:antialiased;width:400px;text-align:left;margin-right:40px;vertical-align:middle}@media only screen and (max-width:709px){.register #registration-footer .text{width:84%;margin:6px 16px 12px}}.register #registration-footer .button{background-color:#5bab34;background-image:-moz-linear-gradient(top,#5fb336,#55a030);background-image:-ms-linear-gradient(top,#5fb336,#55a030);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5fb336),to(#55a030));background-image:-webkit-linear-gradient(top,#5fb336,#55a030);background-image:-o-linear-gradient(top,#5fb336,#55a030);background-image:linear-gradient(top,#5fb336,#55a030);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=‘#ff5fb336‘, endColorstr=‘#ff55a030‘, GradientType=0);border:1px solid #4f9e29;height:31px;font-family:helvetica,arial,sans-serif;font-size:18px;color:#fff;display:inline-block;-webkit-font-smoothing:antialiased;padding:11px 16px 0;width:150px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;text-align:center;cursor:pointer}@media only screen and (max-width:709px){.register #registration-footer .button{padding:11px 64px 0}}.register #registration-footer .close{height:13px;width:13px;position:absolute;top:16px;right:16px;cursor:pointer}@media all{.register #registration-footer .close{background:url(/redesign/sharing/SharedNoteViewAction/close.png) no-repeat;-webkit-background-size:13px 13px;-moz-background-size:13px 13px;-o-background-size:13px 13px;background-size:13px 13px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) .register #registration-footer .close{background:url(/redesign/sharing/SharedNoteViewAction/close@2x.png) no-repeat;-webkit-background-size:13px 13px;-moz-background-size:13px 13px;-o-background-size:13px 13px;background-size:13px 13px}}.spam-dialog p{margin-bottom:1em}.spam-dialog p.last{margin-bottom:0}.spam-dialog p.anchor-url{font-weight:700;padding:0 1em}#loading-placeholder{height:150px;width:150px;margin:auto}@media all{#loading-placeholder{background:url(/redesign/global/img/loading-spinner.gif) no-repeat center;-webkit-background-size:150px 150px;-moz-background-size:150px 150px;-o-background-size:150px 150px;background-size:150px 150px}}@media all and (-moz-min-device-pixel-ratio:1.5),all and (-o-min-device-pixel-ratio:3/2),all and (-webkit-min-device-pixel-ratio:1.5),all and (min-device-pixel-ratio:1.5),all and (min-resolution:1.5dppx){html:not(.ie8) #loading-placeholder{background:url(/redesign/global/img/loading-spinner.gif) no-repeat center;-webkit-background-size:150px 150px;-moz-background-size:150px 150px;-o-background-size:150px 150px;background-size:150px 150px}}
-->

append的用法

//$(document).append是用来向元素内部的结尾处追加内容或标签的方法
// 如果是追加一个字符串来添加元素的话,就是追加元素,
// 如果追加的是现有元素的话,等同于移动
// 新增元素
var obj="<div>我是一个字符串</div>" ;
$ ("body"). append(obj );
//移动元素
var obj=$(".div1" )[0];
$ ("body"). append(obj );



on和live的用法区别

.on

$(父级元素).on("event","需要绑定这个事件的元素",function(){});

使用on的时候也可以像bind那样使用,当然,也无法绑定未来生成的元素

$("doc").bind("event",function(){}); = $("doc").on("event",function(){});

.on的参数 events,[selector],[data],fn

selector:一个选择器字符串用于过滤器的触发事件的选择器元素的后代。如果选择的< null或省略,当它到达选定的元素,事件总是触发。

这种用法就是bind的用法

.live

$("需要绑定事件的元素").live("事件",function(){})


jquery1.9移除了toggle()事件,只剩下了toggle()方法;

如需使用,则需要使用此插件:

;(function ($ ) {
$.fn.extend({
toggle : function ( fn) {
// Save reference to arguments for access in closure
var args = arguments,
guid = fn.guid||jQuery.guid++ ,
i = 0,
toggler = function (event) {
// Figure out which function to execute
var lastToggle = (jQuery._data(this,"lastToggle" + fn.guid) || 0 ) % i;
jQuery._data(this ,"lastToggle" + fn.guid, lastToggle + 1);

// Make sure that clicks stop
event.preventDefault();

// and execute the function
return args[lastToggle].apply(this,arguments) || false;
};

// link all the functions, so any of them can unbind this click handler
toggler.guid = guid;
while (i < args.length) {
args[ i++].guid = guid ;
}

return this.click(toggler);
}
});
})(jQuery);


$.fn.extend和$.extend的用法以及区别

$.fn.extend为jQuery类添加类方法,可以理解为添加静态方法。

$.fn是指jquery的命名空间,加上fn上的方法及属性,会对jquery实例每一个有效。

以下写法是符合AMD规范的写法,以后添加的插件都要符合AMD规范

$.fn.extend:

;(function (factory ) {
if (typeof define === "function" && define. amd) {
// AMD模式
define (["jquery"], factory);
} else {
// 全局模式
factory (jQuery);
}
}(function ($) {
$.fn.maxHeight= function () {

var max = 0 ;

this.each( function () {
max = Math.max(max ,$( this).height());
});

return max;
};
}));

//调用方法

//这里是添加了jQuery对象方法,可以对jQuery的实例对象使用

var hei = $(".btn").maxHeight();
console.log( hei);

$.extend:

;( function (factory ) {
if (typeof define === "function" && define. amd) {
// AMD模式
define (["jquery"], factory);
} else {
// 全局模式
factory (jQuery);
}
}(function ($) {
$.extend({
_pomin:function (a,b) {
return a < b ? a : b
},
_pomax:function (a,b) {
return a > b ? a : b
}
})
}));

//调用方法

//jQuery在调用的时候可以根据的你的参数写成其它的,比如$

//这里是添加了jQuery静态方法,注意不要和jQuery现有方法重名

jQuery._pomin( -5, 10);

jQuery._pomax( -55, -70);


jquery Hammer用法

<!doctype html>
<html>
<head>
<title >hammer jq</ title>
<script type="text/javascript" src="jquery-2.1.1.min.js"></script >
<script type="text/javascript" src="hammer.min.js" ></script>
<script type="text/javascript" src="jquery.hammer.js"></script >
<script type="text/javascript">
$ (function(){
$ (".ham").hammer().bind("tap", function(){
alert( "tap");
});
})
</ script>
</head >
<body style="width :300px ;height: 300px; ">
<div class="ham" style="width :50px ;height: 50px; background:#0ff ;"></ div>
</body >
</html >

jquery.hammer.zip
35.9 KB



.wrap和.wrapAll

//wrap是给每个匹配的元素包裹元素
//wrapAll是给匹配的元素的最上级包裹元素
//给body的每一个子元素包裹一层id=mask的div

$("body").children().wrap("<div id=\"mask\"></div>");
//给body加一个id=mask的div,使其包裹div下所有的元素
$("body").children().wrapAll("<div id=\"mask\"></div>");

//这里是可以用find()的,用children()是为了少选择一些元素,减少一些不必要的遍历



jquery attr和prop

jquery1.6引入了prop;

对于prop和attr的使用情况有些不清楚,特记录:

对于dom元素自有属性使用prop来操作,对于自定义属性使用attr来操作,

attr操作复选框元素的选中属性时,如果使用attr,第一次选中是正常的,

第二次选中虽然选中了,但是没有打勾的样式,使用prop正常;

prop使用prop可以设置自定义属性,但是第一次获取自定义属性的时候返回值为undefined;

prop不可以操作onclick 而使用attr是可以的 所以以上所述不是很合理 //遇到了再继续研究

以下是官方建议attr(),prop()的使用:

Attribute/Property .attr() .prop()
accesskey  
align  
async
autofocus
checked
class  
contenteditable  
draggable  
href  
id  
label  
location ( i.e. window.location )
multiple
readOnly
rel  
selected
src  
tabindex  
title  
type  
width ( if needed over .width() )  


jquery keydown

通过监视键盘的按键来执行一些事件,比如,回车键登陆这个就很常见;

$(window).keydown(function(e){//这个是用来回车键登陆的

var code=e.keyCode;

if(code==13){

alert("clickEnter")

}else{

//按了按键但不是回车键

}

});

这次绑定的是window对象,当然也可以绑定其他事件;通常,可以绑定事件的

只能是文本域,因为必须获取焦点才可以响应keydown事件,如果非要给div加

这个事件的话也是可以的,给div加一个tabindex="1"即可,不过不建议这样做,

因为会出现很难看的边框,当然边框还是可以去掉的outline:none,即可;

绑定keydown的时候,还是建议绑定过需要执行事件的文本域比较合适;


jquery hover mouseover+mouseout mouseenter+mouseleave

hover=mouseenter+mouseleave

mouseenter 只有鼠标进入被选元素才会触发;

mouseover 当鼠标进入被选元素以及被选元素的子元素是都会触发;

通常会使用mouseenter+mouseleave来做鼠标移动事件;


时间: 2024-08-08 02:54:48

jquery学习记录的相关文章

jQuery学习记录1

jquery 和 js css里面都是坑呀 this.style.backgroundColor 和 css {background:#8df;} 是冲突的,用了前者,再$(this).addClass("css class name");效果显示不出来. http://youchenglin.iteye.com/blog/685026 前他的一些内容参见下列代码 <!DOCTYPE html> <html> <head> <meta char

JQuery 学习记录

在没有接触jQuery之前,总是听到或看到别人讲原生的JS,感到很奇怪,怎么还有原生的JS,现在才明白原来是相对jQuery来讲的.jQuery是一个很好的框架,运用起来比JS简单很多.在学习他的过程中,也学习了AJAX,可以实现与后台交互,学习时间有点短,对AJAX还不是很熟悉,感觉有点难度. 也已经学习大概一周的时间了,学会了留言板.瀑布流及搜索框的制作.相对来说,前端我掌握的比后端好,不知道是不是自己潜意识排斥,呃,但是总归要学的,不要呆在舒适区,要好好的学习,遇到困难才能有收获. 大体来

jquery学习记录四(操作DOM元素)

jQuery 操作DOM元素主要有: 1.使用attr()方法控制元素的属性 2.操作元素的内容 3.操作元素的样式 4.移除属性和样式 5.使用append()方法向元素内追加内容 6.使用appendTo()方法向被选元素内容插入内容 7.使用before()和after()在元素前后插入内容 8.使用clone()方法复制元素 9.替换内容 10.使用wrap()和wrapinner()方法包裹元素和内容 11.使用each()方法遍历元素 12.使用remove()和empty()方法删

jquery学习记录二(过滤性选择器)

过滤性选择器包括: 1.:first过滤选择器 2.:eq(index)过滤选择器 3.:contains(text)过滤选择器 4.:has(selector)过滤选择器 5.:hidden过滤选择器 6.:visible过滤选择器 7.[attribute=value]属性选择器 8.[attribute!=value]属性选择器 9.[attribute*=value]属性选择器 10.:first-child子元素选择器 11.last-child子元素选择器 过滤性选择器,该类型的选择

jquery学习记录一:jquery动态添加html元素后设置其绑定事件

1. jquery动态添加html元素(例如:) <div id="testdiv"> <ul></ul> </div> 假设我们要给ul动态添加的<li>绑定click事件形成如下结果 <div id="devices_div"> <ul> <li name="apple">apple</li> <li name="pea

jQuery Moblile Demos学习记录Theming、Button、Icons图标,脑子真的不好使。

jQuery Moblile Demos学习记录Theming.Button.Icons图标,脑子真的不好使. 06. 二 / Jquery Mobile 前端 / 没有评论 本文来源于www.ifyao.com禁止转载!www.ifyao.com 一CSS Framework块 Theming 是一个整体了解默认主题和内置的A-E主题各个效果.待解决问题,自定义主题,下边是一个知识点. http://www.w3cschool.cc/jquerymobile/jquerymobile-them

jQuery Moblile Demos学习记录Panel

jQuery Moblile Demos学习记录Panel 11. 二 / Jquery Mobile / 没有评论 本文来源于www.ifyao.com禁止转载!www.ifyao.com 我就简短的总结一下: Panel位置:data-position属性控制:值:left,right, 显示方式:data-display属性   值:reveal默认在页面之下,overlay页面上,push和页面统一,将页面推开. Panel应该放在header,content,footer之前或者之后,

学习记录jQuery的animate函数

很久之前就对jQuery animate的实现非常感兴趣,不过前段时间很忙,直到前几天端午假期才有时间去研究. jQuery.animate的每种动画过渡效果都是通过easing函数实现的.jQuery1.4.2中就预置了两个这样的函数: easing: {linear: function( p, n, firstNum, diff ) {return firstNum + diff * p;},swing: function( p, n, firstNum, diff ) {return ((

jQuery学习之prop和attr的区别

http://blog.sina.com.cn/s/blog_655388ed01017cnc.html .prop() 1..prop( propertyName ) 获取匹配集合中第一个元素的Property的值 2. .prop( propertyName, value ) .prop( map ) .prop( propertyName, function(index, oldPropertyValue) ) 给匹配元素集合设定一个或多个属性 .prop()和 .attr()区别 下面是