大约有 380 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(345) Laya3.0_文档(11) Laya2.0_文档(7) Laya3.0_api(5) Laya2.0_示例(4) Laya_示例(4) laya_api(2) Laya2.0_api(2)
...er.width, Laya.Browser.height); var html = new Laya.HTMLDivElement(); html.style.fontSize = 30; html.style.whiteSpace = "nowrap"; html.innerHTML = '<span style="color:#ffffff">test</span>'; html.pos(500, 300); html.size(html.contextWidth, html.contextHeight); Laya.stage.addChild(html); s...
来源: Laya_社区 发布时间: 20170620
...,跟tranform有关 <canvas id="layaCanvas" width="760" height="650" style="position: absolute; left: 0px; top: 110px; background-color: rgb(255, 237, 118); transform-origin: 0px 0px 0px; transform: matrix(0.5, 0, 0, 0.5, 311, 0);"></canvas> 其他电脑上: <canvas id="layaCanvas"...
来源: Laya_社区 发布时间: 20190401
...:any = Laya.Browser.document.createElement("img"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width:200px;height:100px;background:url(b1.png) no-repeat center;cursor:pointer;"; file.type ="file";//设置类型是file类型。 file.size ="30"; file.accept="image/png/jpg";//设...
来源: Laya_社区 发布时间: 20190129
...修改为 var tHTMLChar=words[i]=new HTMLChar(txt.charAt(i),size.width || style.fontSize,size.height||style.fontSize,style); 附件 : --> 2021-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 我们宅技术 ...
来源: Laya_社区 发布时间: 20210206
...击事件 位置便宜 var canvas2 = Laya.init(480, 360, WebGL); canvas2.style.top = canvas.style.top; canvas2.style.left = canvas.style.left; 当设置stage的位置的时候,再设置sprite的点击事件,发现位置会偏移,点击促发的位置和stage的位置设置有关系,要怎么...
来源: Laya_社区 发布时间: 20180205
...mage/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行呢?打开谷歌浏览器,随便打开你一个空白网页,F12,把上面的代码粘贴到控制台,然后回车...
来源: Laya2.0_文档 发布时间: 20210715
HTMLDivElement设置宽度不生效 HTMLDivElement 怎么设置宽度 .style.width不生效,只能是当前文本的宽度。 2017-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: ...
来源: Laya_社区 发布时间: 20170522
...、attributeMap五、defines5.1 基本用法5.2 与uniformMap联动六、styles6.1 对于uniformMap6.2 对于defines七、shaderPass7.1 什么是shaderPass7.2 顶点着色器7.3 片段着色器八、LayaAir-IDE内置2D着色器自定义2D着色器 一、概述 2D自定义着色器(Shader)属于一...
来源: Laya3.0_文档 发布时间: 20251010
...uiv="Content-Type" content="text/html; charset=utf-8"> <br> <p style="margin:0;font-size:20px;line-height:24px;margin-bottom: 20px"> package log. version: 1.6<br> unzip:/data/apollo_game_pkg//pkg/20180709/1021/2809_src.zip<br> unzip done...<br> /data/apollo_game_pkg/...
来源: Laya_社区 发布时间: 20180709
...ject = Browser.document.createElement("input"); //设置file的样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex...
来源: Laya_社区 发布时间: 20180529