大约有 162 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0034 秒)
...); //适配模式 宽度100% Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.bgColor = "#ffffff";我暂时就是上面这么干的 让高度多一些满足iphoneX 这样点击区域就没 问题...
来源: Laya_社区 发布时间: 20180718
...); //适配模式 宽度100% Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; 我推荐用这个模式 然后所有的view都继承一个父类 给UI里面有名字为BG的大背景重写他的宽高来自适应当前屏幕的大小 这BG这个图层就可以铺满了 例如竖屏为什么...
来源: Laya_社区 发布时间: 20180921
...ring); //_webframe.setAttribute('frameborder', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribute('align', "middle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style'...
来源: Laya_社区 发布时间: 20180103
...x.html这个有关系吗: <div style="position:absolute;top: 32%;width: 80%;left: 10%;text-align:center;"> <img src="loading_logo.png" style="width: 100%;max-width:500px;" /> </div> 梦太晚 • 2019-06-20 12:56 @qian:请问可否告知,android st...
来源: Laya_社区 发布时间: 20180307
...!DOCTYPE html> <html> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#000000"></body> <script type="text/javascript" language="javascript"> var arguments = window.location.search; var url = "http://119.29.138.145/bgame/in ... 3B%3B // http://1...
来源: Laya_社区 发布时间: 20161221
...t; document.getElementById('WebViewport').setAttribute('content', 'width=100%,initial-scale=' + 1 / devicePixelRatio + ',target-densitydpi=device-dpi,minimum-scale=0.1,maximum-scale=9,user-scalable=0'); </script> index.html最后有个这个 然后发布release 然后APP构建 ...
来源: Laya_社区 发布时间: 20180201
...lic static void loadImageViewLodingSize(Context mContext, String path, int width, int height, ImageView mImageView, int lodingImage, int errorImageView) { Glide.with(mContext).load(path).override(width, height).placeholder(lodingImage).error(errorImageView).into(mImageView); } 150*****705 • 2018-0...
来源: Laya_社区 发布时间: 20180205
...体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); var txt = new Laya.Text(); txt.text = "asdfghjk"; //设置宽度,高度自动匹配 txt.width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; ...
来源: Laya2.0_文档 发布时间: 20201114
...体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Text.registerBitmapFont(mFontName, mBitmapFont); var txt:Text = new Text(); txt.text = "这是测试"; //设置宽度,高度自动匹配 txt.width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; ...
来源: Laya2.0_文档 发布时间: 20201114
...形式定义开放数据域的样式和布局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文...
来源: Laya3.0_文档 发布时间: 20251010