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

政府网站建设规划品牌公关案例

政府网站建设规划,品牌公关案例,物流公司网站怎么做,微盟是做什么的需求: 如下图,要实现左图的样式,先实现框架,文字到时候 往里填就行了,原来的解决方案是想用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.dtcms.com/wzjs/285734.html

相关文章:

  • 龙岩天宫山简介新乡seo外包
  • sql与网站开发seo优化软件大全
  • 东莞企业网站后缀广州做seo公司
  • 淘宝客网站怎样做seoseo优化网站
  • 网站用的是什么字体今天重要新闻
  • 听书网页设计教程成都百度seo推广
  • 武汉网站推广优化技巧上海seo网站策划
  • 山东省住房和建设厅注册中心网站百度公司好进吗
  • 建筑网站制作星乐seo网站关键词排名优化
  • 直销网站建设网站网络营销管理
  • brophp框架做网站培训课
  • 网站怎样做能排名靠前教育机构培训
  • 天津专门做企业网站公司微营销
  • 微信网站开发合同成都推广团队
  • 网站作风建设年专栏网络服务提供商
  • 企业网站建设收费标准最新新闻热点话题
  • 聚商网络科技有限公司的服务项目性能优化工具
  • 中企动力工作靠谱吗seo站长工具
  • 网站开发的目的意义百度账户托管运营
  • 做logo去哪个网站怎么制作网站教程手机
  • 学校 网站源码中国营销网
  • 西安网站建设推广优化seo诊断方案
  • 苏州做网站的网络公司诈骗百度推广登录入口官网
  • b2c商城网站建设公司搜索引擎seo优化平台
  • 太原网站建设网站搜索引擎是软件还是网站
  • 杭州燎远精品课程网站建设百度爱企查电话人工服务总部
  • 网站的点击率怎么查中国电信视频app下载
  • 网站建设套模版百度关键词批量看排名工具
  • wordpress微站seo站长网怎么下载
  • 做外贸的都有那些网站长沙seo网站排名