• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,380 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

701. HtmlDivElement限制文本宽度无效? [ 58%]

...ment(); this.labaContent.style.fontSize = 22; this.labaContent.style.width=100; this.labaContent.style.wordWrap=false; this.labaContent.x = 60; this.labaContent.y = 5; 为什么还是不行呢?请问 我的文本是通过innerHTML <span>输出的 2017-09-15 添加评论 免费帖 --> 分享 ...

来源: Laya_社区 发布时间: 20170915

702. laya.ui.List [ 58%]

...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也...

来源: Laya2.0_api 发布时间: 20190513

703. Native类型下 启动动画如何关闭 [ 58%]

...; if(loadingView) { loadingView.loadingAutoClose=true; loadingView.loading(100); }构建的AndroidStudio项目 在config.js如上设置 可是启动时还有默认的动画 如何在启动时不显示这个动画呢? 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

来源: Laya_社区 发布时间: 20170613

704. HTMLDivElement怎么限制输入字数 [ 58%]

...ment(); this.labaContent.style.fontSize = 22; this.labaContent.style.width=100; this.labaContent.style.wordWrap=false; this.labaContent.x = 60; this.labaContent.y = 5; 为什么还是不行呢?请问 我的文本是通过innerHTML <span>输出的

来源: Laya_社区 发布时间: 20170914

705. toFixed(0)函数是什么作用? [ 58%]

...用? text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qi...

来源: Laya_社区 发布时间: 20180326

706. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 58%]

...  {             var ground1:* = Matter.Bodies.rectangle(500, 0, 1000, 20, {isStatic: true, render: {fillStyle: '#edc51e', strokeStyle: '#b5a91c'}});             var ground2:* = Matter.Bodies.rectangle(0, 500, 20, 1000, {isStatic: true, render: {fillStyle: '#edc51e', strokeStyle: '...

来源: Laya_社区 发布时间: 20170822

707. 关于panel橡皮筋效果的疑问 [ 58%]

...度为20,然后在代码运行的时候,某一个cell的高度增加到100,那么这时候,panel的橡皮筋效果就不好了,拉到最下边的时候还是能拉,但是回弹会以之前初始化的高度回弹,导致回弹完,看不见底下的内容 2019-06-28 添加评论 免费...

来源: Laya_社区 发布时间: 20190628

708. 某些机型drawToCanv绘图颜色变深 [ 58%]

..._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', "z-inde...

来源: Laya_社区 发布时间: 20180103

709. Tween 缓动过程有触发回调函数么 [ 58%]

... 赞同来自: 第二个参数:  props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。   update这个 数值改变就会触发回调,也就是过程中的回调 2018-01-09 0 1 分享 微博 QZONE 微...

来源: Laya_社区 发布时间: 20180109

710. 打地鼠游戏,手机端适配问题 [ 58%]

... 同时需要修改一下锤子移动的横坐标位置,我这里需要 - 100,因为是手指点击,x坐标会有点偏移,需要调整. 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自:...

来源: Laya_社区 发布时间: 20180131