cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="lr_nb">  
        <div class="slider_wrap line">  
            <div class="wx_items">  
                <div class="item_cell current">  
                    <span>类型一</span>  
                </div>  
                <div class="item_cell">  
                    <span>类型二</span>  
                </div>  
                <div class="item_cell">  
                    <span>类型三</span>  
                </div>  
                <div class="item_cell">  
                    <span>类型四</span>  
                </div>  
                <div class="item_cell">  
                    <span>类型五</span>  
                </div>  
                <div class="item_cell">  
                    <span>类型六</span>  
                </div>  
                <div class="item_cell">  
                    <span>类型七</span>  
                </div>  
                <div class="item_cell">  
                    <span>类型八</span>  
                </div>  
            </div>  
         </div>  
    </div>  
    <div class="lr_nb_after"></div>  
            
          
!
            
              .lr_nb{border-bottom:1px solid #E8E8E8;border-top:1px solid #E8E8E8;height:40px;line-height:40px;width:100%;position:absolute;background:#fff;padding: 0px 10px;box-sizing:border-box;z-index:1;max-width:1080px;opacity:1;top:0;-webkit-transition:.3s all;transition:.3s all}  
        .lr_nb .slider_wrap.line{overflow:hidden;overflow-x:scroll;width:100%;-webkit-overflow-scrolling:touch;}  
        .lr_nb .slider_wrap.line .item_cell{display:inline-block;margin: 0px 10px;;overflow:hidden;position:relative;}  
        .lr_nb .slider_wrap.box{overflow:hidden;width:100%}  
        .lr_nb .slider_wrap::-webkit-scrollbar{display:none}  
        .lr_nb .wx_items{white-space:nowrap}  
        .lr_nb .wx_items span{color:#666;font-size: 15px; white-space:nowrap;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:center;cursor:pointer}  
        .lr_nb .wx_items .current span,.lr_nb .wx_items .current a:visited,.lr_nb .wx_items .current a:link,.lr_nb .wx_items .current a:hover,.lr_nb .wx_items .current a:focus{color:#4fbeab;}  
        .lr_nb_after{height:40px;display:block;clear:both;}  
        /*滚动水平导航栏 end*/ 
            
          
!
            
              $(function(){  
            $(".wx_items .item_cell").click(function(){  
                $(this).addClass('current').siblings().removeClass('current');  
            });  
        }); 
            
          
!
999px
Loading ..................

Console