当前位置: 首页 > news >正文

建网站义乌唯尚广告联盟app下载

建网站义乌,唯尚广告联盟app下载,网站建设哪个公司做得好,西宁做网站公司电话需求: 如下图,要实现左图的样式,先实现框架,文字到时候 往里填就行了,原来的解决方案是想用css,html来实现,发现实现起来蛮麻烦的。我也没找到合适的实现方法,最后换使用canvas来实现&#xff…

需求:

如下图,要实现左图的样式,先实现框架,文字到时候 往里填就行了,原来的解决方案是想用css,html来实现,发现实现起来蛮麻烦的。我也没找到合适的实现方法,最后换使用canvas来实现,使用的js库是leaferui

1.安装:用game是因为有一些交互,反正体积也不大

npm install leafer-game

2.wxml

    <canvas:style="'width:'+cabox.width+'px;height:'+cabox.height+'px;'"id="leafer"type="2d":width="cabox.width":height="cabox.height"catchtouchstart="receiveEvent"catchtouchmove="receiveEvent"catchtouchend="receiveEvent"catchtouchcancel="receiveEvent"></canvas>

3.javascript

  lf = new Leafer({view: window, width: that.cabox.width, height: that.cabox.height})lf.add(Rect.one(0,0,that.cabox.width,that.cabox.height));lf.add(Rect.one({width: that.cabox.width, height: that.cabox.height, strokeWidth: 2, stroke: "black",}));lf.add(Rect.one({strokeWidth: 2,stroke: "black",width: (that.cabox.perBox * 11.5),height: (that.cabox.perBox * 11.5),x: that.cabox.perBox * 1.75,y: that.cabox.perBox * 1.75}));lf.add(Rect.one({strokeWidth: 2,stroke: "black",width: (that.cabox.perBox * 9),height: (that.cabox.perBox * 9),x: that.cabox.perBox * 3,y: that.cabox.perBox * 3}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, 0, that.cabox.perBox * 3, that.cabox.perBox * 3]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.width, 0, that.cabox.perBox * 12, that.cabox.perBox * 3]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.width, that.cabox.height, that.cabox.perBox * 12, that.cabox.perBox * 12]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, that.cabox.height, that.cabox.perBox * 3, that.cabox.perBox * 12]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.perBox*6, 0, that.cabox.perBox*6, that.cabox.height]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [that.cabox.perBox*9, 0, that.cabox.perBox*9, that.cabox.height]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, that.cabox.perBox*6, that.cabox.width, that.cabox.perBox*6]}));lf.add(Line.one({stroke: "black",strokeWidth: 2,points: [0, that.cabox.perBox*9, that.cabox.width, that.cabox.perBox*9]}));

http://www.hengruixuexiao.com/news/46572.html

相关文章:

  • 服务品牌策划方案廊坊seo网站管理
  • 优购物官方网站直播成都网站建设企业
  • 网站正在建设中php百度推广托管公司
  • 北辰网站开发seo推广软件费用
  • 顺德微网站建设河北seo基础
  • 中建招聘2022社会招聘信息优化网站的步骤
  • 阳江网站建设推广公司电话奶茶网络营销策划方案
  • 南昌网站建设赣icp南昌深圳优化公司样高粱seo
  • 陕西企业营销型网站建设论坛如何做seo
  • 做网站可以用微软雅黑字体么百度收录入口在哪里
  • 中国建设银行网站运营模式seo用什么论坛引流
  • 天河区网站建设整站多关键词优化
  • 嘉兴网络公司变更杭州seo靠谱
  • 网页制作分工明细武汉seo搜索引擎优化
  • 潍坊做网站建设的公司现在推广什么app最挣钱
  • 江西锐安建设工程有限公司网站营销型网站建站
  • 专门做二维码的网站今日疫情最新数据
  • 海南网站建设粤icp备乐云seo
  • 阿里云备案网站是空的window优化大师官网
  • icp备案网站名称新网店怎么免费推广
  • 绍兴专业网站建设sem竞价代运营
  • wordpress 双语言保定seo建站
  • 直播系统开发公司seo搜索引擎优化薪资水平
  • 大连建网站短视频矩阵seo系统源码
  • 新手怎么做电商在哪个网站永久观看不收费的直播
  • 网站建设公司创业计划书百度公司电话热线电话
  • 竖排导航网站爱站网为什么不能用了
  • 自助建站广告发布百度seo视频教程
  • 游戏网站的监管由谁来做优化推广什么意思
  • 做本地分类信息网站赚钱吗百度怎么投放自己的广告