收藏
回答

cover-view想要溢出父元素,怎么操作

<canvas id = 'mengban' canvas-id='mengban' wx:if="{{iphoneShow}}" style='height:{{window_width}}px; width:{{window_width}}px; position: absolute; top:0; z-index: 10000' catchtouchstart='getTouchStart' catchtouchend='getTouchEnd' catchtouchmove='getTouchMove'>

<cover-view class = 'intro'></cover-view>

</canvas>


想让   cover-view  将整个手机屏幕挡住,求助,怎么办?


  1. tip: 建议子节点不要溢出父节点

tip里有不建议溢出,意思应该是可以溢出。


回答关注问题邀请回答
收藏

1 个回答

  • 止止.
    止止.
    2017-12-08

    .intro{

    width: 100%;

    height: 200%;

    background-color: rgb(0, 192, 253);

    }


    2017-12-08
    有用
    回复
登录 后发表内容