锘?**杩欓噷鏄娊灞夋牱寮?/ .page { overflow: auto; } .page-open { overflow-y: hidden; } /**鎶藉眽鍏抽棴鏃讹紝鎶藉眽鎸夐挳鐨勬牱寮?/ .trigger { width: 25px; height: 30px; right: 24px; top: 35px; position: absolute; } /**鎶藉眽鎵撳紑鏃讹紝鎶藉眽鎸夐挳鐨勬牱寮?/ .trigger-open { display: none; /*right: 230px;*/ transition: all 0.5s ease-in-out; } /**鎶藉眽鍏抽棴鏃讹紝鎶藉眽鐨勬牱寮?/ .drawer { position: fixed; top: 0; right: -200px; width: 160px; height: 100%; padding: 15px 20px; background: #FFF; z-index: 1000; transition: all 0.5s ease-in-out; } /**鎶藉眽鍐呰彍鍗曟牱寮?/ .drawer .close { position: relative; right: 0; float: right; top: 10px; } .drawer ul li { height: 40px; line-height: 40px; } .drawer ul li a { color: #1F55B1; } /**鎶藉眽鎵撳紑鏃讹紝鎶藉眽鐨勬牱寮?/ .open { right: 0; } /**鎶藉眽鍏抽棴鏃讹紝span鐨勬牱寮忥紝鎶藉眽鎸夐挳鍥炬爣鏄€氳繃span鏍囩鐢诲嚭鏉ョ殑*/ .trigger span { display: block; left: 0; width: 100%; height: 3px; background: #494949; position: absolute; opacity: 1; transform: rotate(0,0); transition: all 0.1s ease-in-out; } .trigger span:nth-child(1) { top: 0px; } .trigger span:nth-child(2) { top: 6px; } .trigger span:nth-child(3) { top: 12px; } /**鎶藉眽鎵撳紑鏃讹紝span鐨勬牱寮?/ .trigger-open span:nth-child(1) { transform: rotate(45deg); top: 6px; z-index: 1000; } .trigger-open span:nth-child(2) { width: 0; } .trigger-open span:nth-child(3) { transform: rotate(-45deg); top: 6px; z-index: 1000; } /**钂欏眰鏍峰紡*/ .mask { position: fixed; width: 100%; height: 100%; top: 0; background-color: #000; opacity: 0.4; z-index: 900; display: none; } .mask-open { display: block; }