css3书写三维空间立体式导航
1、新建html文档。

3、书写css代码。* { margin: 0; padding: 0; }html, body { he足毂忍珩ight: 100%; overflow: hidden; }body { background-color: #222; background-image: url(da ta:image/png;background-repeat: repeat; font-family: 'Lato', Helvetica, sans-serif; font-size: 16px; color: #222; }a { color: #c2575b; text-decoration: none; -we bkit-transition: 0.15s color ease; -moz-transition: 0.15s color ease; -ms-transition: 0.15s color ease; -o-transition: 0.15s color ease; transition: 0.15s color ease; }a:hover { color: #f76f76; }h1, h2 { font-size: 24px; }.meny { display: none; padding: 20px; overflow: auto; background: #333; color: #eee; -we bkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }.meny ul { margin-top: 10px; }.meny ul li { display: inline-block; width: 200px; list-style: none; font-size: 20px; padding: 3px 10px; }.meny ul li:before { content: '-'; margin-right: 5px; color: rgba( 255, 255, 255, 0.2 ); }.meny-arrow { position: absolute; z-index: 10; border: 10px solid transparent; -webkit-transition: opacity 0.4s ease 0.4s; -moz-transition: opacity 0.4s ease 0.4s; -ms-transition: opacity 0.4s ease 0.4s; -o-transition: opacity 0.4s ease 0.4s; transition: opacity 0.4s ease 0.4s; }.meny-left .meny-arrow { left: 14px; top: 50%; margin-top: -16px; border-left: 16px solid #333; }.meny-right .meny-arrow { right: 14px; top: 50%; margin-top: -16px; border-right: 16px solid #333; }.meny-top .meny-arrow { left: 50%; top: 14px; margin-left: -16px; border-top: 16px solid #333; }.meny-bottom .meny-arrow { left: 50%; bottom: 14px; margin-left: -16px; border-bottom: 16px solid #333; }.meny-active .meny-arrow { opacity: 0; -webkit-transition: opacity 0.2s ease; -moz-transition: opacity 0.2s ease; -ms-transition: opacity 0.2s ease; -o-transition: opacity 0.2s ease; transition: opacity 0.2s ease; }.contents { background: #eee; padding: 20px 40px; width: 100%; height: 100%; overflow-y: auto; -we bkit-overflow-scrolling: touch; -we bkit-transform-style: preserve-3d; -we bkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }.contents>article { max-width: 400px; }.contents p { margin: 10px 0 10px 0; font-size: 16px; line-height: 1.32; }.contents small { display: block; margin-top: 10px; padding-top: 10px; color: #333; font-size: 0.85em; border-top: 1px dashed #ccc; -we bkit-text-size-adjust: none; }.contents .sharing { position: absolute; bottom: 20px; }

5、代码整体结构。
