注册 登录
编程论坛 WEB前端(UI)

画布没有全屏??

无名字 发布于 2021-08-08 19:29, 5735 次点击
HTML代码
<view class="page_two hide" hidden="true" id="view">
    <div class="type_words"></div>
    <canvas id="canvas" ></canvas>
</view>

CSS代码
html{
    margin:0px;
    width:100%;
    height:100%;
    padding: 0px;
    overflow: hidden;
}
body{
    width:100%;
    height:100%;
    padding:0px;
    margin: 0px;
}

#canvas,#view{
    width:100%;
    height:100%;
}

.hide{ display: none!important; background-image:none!important;}


[此贴子已经被作者于2021-8-9 20:22编辑过]

1 回复
#2
cccool2021-10-11 11:25
用js实现全屏
1