Scrollable content elements with Angular Material dynamic-height tabs

后端 未结 3 820
北海茫月
北海茫月 2021-01-05 18:51

This question has come up several times during the evolution of Angular Material, but I\'m not able to make any of the suggestions work for v1.0.5. The entire page (or flex

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-05 19:35

    Try this:

    md-tabs-wrapper {
        position : fixed;
        width: 100%;
        z-index: 1;
        box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
    }
    
    md-tabs-content-wrapper {
        margin-top: 48px;
    }
    

提交回复
热议问题