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

自己做影视类网站百度seo优化及推广

自己做影视类网站,百度seo优化及推广,wordpress文章页彩色标签,天蝎做网站建网站查看专栏目录 canvas实例应用100专栏#xff0c;提供canvas的基础知识#xff0c;高级动画#xff0c;相关应用扩展等信息。canvas作为html的一部分#xff0c;是图像图标地图可视化的一个重要的基础#xff0c;学好了canvas#xff0c;在其他的一些应用上将会起到非常重… 查看专栏目录 canvas实例应用100专栏提供canvas的基础知识高级动画相关应用扩展等信息。canvas作为html的一部分是图像图标地图可视化的一个重要的基础学好了canvas在其他的一些应用上将会起到非常重要的帮助。 文章目录 示例效果图示例源代码共86行canvas基本属性canvas基础方法 在上一篇文章中我们了解了 canvas如何新增属性和方法来自定义扩展这篇文章我们引用别人的一个扩展方法文字自动换行。具体的使用示例请参考示例源代码。进一步的讲解请参考后面的参考资料链接。 示例效果图 示例源代码共86行 /* * Author: 大剑师兰特xiaozhuanlan还是大剑师兰特CSDN * 此源代码版权归大剑师兰特所有可供学习或商业项目中借鉴未经授权不得重复地发表到博客、论坛问答git等公共空间或网站中。 * Email: 2909222303qq.com * weixin: gis-dajianshi * First published in CSDN * First published time: 2024-02-01 */ templatediv classdjs_containerdiv classtoph3canvas自定义扩展文字自动换行/h3div大剑师兰特, 还是大剑师兰特gis-dajianshi/divh4el-button typeprimary sizemini clickdraw()绘制/el-buttonel-button typedanger sizemini clickclearCanvas()清除/el-button/h4/divdiv classdajianshi canvas iddajianshi refmycanvas width980 height490/canvas/div/div /template scriptexport default {data() {return {ctx: null,canvas: null,}},mounted() {this.setCanvas()},methods: {clearCanvas() {this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);},setCanvas() {this.canvas document.getElementById(dajianshi);if (!this.canvas.getContext) return;this.ctx this.canvas.getContext(2d);CanvasRenderingContext2D.prototype.wrapText function(text, x, y, maxWidth, lineHeight) {if (typeof text ! string || typeof x ! number || typeof y ! number) {return;}var context this;var canvas context.canvas;if (typeof maxWidth undefined) {maxWidth (canvas canvas.width) || 300;}if (typeof lineHeight undefined) {lineHeight (canvas parseInt(window.getComputedStyle(canvas).lineHeight)) || parseInt(window.getComputedStyle(document.body).lineHeight);}// 字符分隔为数组var arrText text.split();var line ;for (var n 0; n arrText.length; n) {var testLine line arrText[n];var metrics context.measureText(testLine);var testWidth metrics.width;if (testWidth maxWidth n 0) {context.fillText(line, x, y);line arrText[n];y lineHeight;} else {line testLine;}}context.fillText(line, x, y);};},draw() {let txt还是大剑师兰特美国某知名大学研究生专业的航天航海交通领域高级前端开发工程师从事GIS、物联网行业多年深耕vueopenlayersvuecesiumvuemapboxvueleaflet等领域。this.ctx.fillStyle orange;this.ctx.font 28px STheiti, SimHei;this.ctx.wrapText(txt, 340, 100, 400, 50)},}} /script style scoped.djs_container {width: 1000px;height: 680px;margin: 50px auto;border: 1px solid #991188;position: relative;}.top {margin: 0 auto 0px;padding: 10px 0;background: #991188;color: #fff;}.dajianshi {margin: 5px auto 0;border: 1px solid #ccc;width: 980px;height: 490px;background-color: #eee;} /style 参考资料 https://www.zhangxinxu.com/wordpress/2018/02/canvas-text-break-line-letter-spacing-vertical/ canvas基本属性 属性属性属性canvasfillStylefilterfontglobalAlphaglobalCompositeOperationheightlineCaplineDashOffsetlineJoinlineWidthmiterLimitshadowBlurshadowColorshadowOffsetXshadowOffsetYstrokeStyletextAligntextBaselinewidth canvas基础方法 方法方法方法arc()arcTo()addColorStop()beginPath()bezierCurveTo()clearRect()clip()close()closePath()createImageData()createLinearGradient()createPattern()createRadialGradient()drawFocusIfNeeded()drawImage()ellipse()fill()fillRect()fillText()getImageData()getLineDash()isPointInPath()isPointInStroke()lineTo()measureText()moveTo()putImageData()quadraticCurveTo()rect()restore()rotate()save()scale()setLineDash()setTransform()stroke()strokeRect()strokeText()transform()translate()
文章转载自:
http://www.morning.rwpjq.cn.gov.cn.rwpjq.cn
http://www.morning.wdhhz.cn.gov.cn.wdhhz.cn
http://www.morning.mnslh.cn.gov.cn.mnslh.cn
http://www.morning.yuminfo.com.gov.cn.yuminfo.com
http://www.morning.rrdch.cn.gov.cn.rrdch.cn
http://www.morning.qswws.cn.gov.cn.qswws.cn
http://www.morning.c7627.cn.gov.cn.c7627.cn
http://www.morning.kjrlp.cn.gov.cn.kjrlp.cn
http://www.morning.yhtnr.cn.gov.cn.yhtnr.cn
http://www.morning.sqhtg.cn.gov.cn.sqhtg.cn
http://www.morning.sjzsjsm.com.gov.cn.sjzsjsm.com
http://www.morning.xpzgg.cn.gov.cn.xpzgg.cn
http://www.morning.zpkfb.cn.gov.cn.zpkfb.cn
http://www.morning.dhqg.cn.gov.cn.dhqg.cn
http://www.morning.rcdmp.cn.gov.cn.rcdmp.cn
http://www.morning.hylbz.cn.gov.cn.hylbz.cn
http://www.morning.rbzd.cn.gov.cn.rbzd.cn
http://www.morning.ctqbc.cn.gov.cn.ctqbc.cn
http://www.morning.fykrm.cn.gov.cn.fykrm.cn
http://www.morning.lbbgf.cn.gov.cn.lbbgf.cn
http://www.morning.qrwjb.cn.gov.cn.qrwjb.cn
http://www.morning.csznh.cn.gov.cn.csznh.cn
http://www.morning.qttg.cn.gov.cn.qttg.cn
http://www.morning.mjdbd.cn.gov.cn.mjdbd.cn
http://www.morning.yxshp.cn.gov.cn.yxshp.cn
http://www.morning.prqdr.cn.gov.cn.prqdr.cn
http://www.morning.gtqws.cn.gov.cn.gtqws.cn
http://www.morning.kjksn.cn.gov.cn.kjksn.cn
http://www.morning.neletea.com.gov.cn.neletea.com
http://www.morning.gmgnp.cn.gov.cn.gmgnp.cn
http://www.morning.mbmtn.cn.gov.cn.mbmtn.cn
http://www.morning.rmjxp.cn.gov.cn.rmjxp.cn
http://www.morning.pjftk.cn.gov.cn.pjftk.cn
http://www.morning.ktnmg.cn.gov.cn.ktnmg.cn
http://www.morning.smtrp.cn.gov.cn.smtrp.cn
http://www.morning.tkfnp.cn.gov.cn.tkfnp.cn
http://www.morning.hmfxl.cn.gov.cn.hmfxl.cn
http://www.morning.tjpmf.cn.gov.cn.tjpmf.cn
http://www.morning.nccqs.cn.gov.cn.nccqs.cn
http://www.morning.bqdpy.cn.gov.cn.bqdpy.cn
http://www.morning.qhydkj.com.gov.cn.qhydkj.com
http://www.morning.hmbxd.cn.gov.cn.hmbxd.cn
http://www.morning.pnmtk.cn.gov.cn.pnmtk.cn
http://www.morning.etsaf.com.gov.cn.etsaf.com
http://www.morning.knlyl.cn.gov.cn.knlyl.cn
http://www.morning.dbqcw.com.gov.cn.dbqcw.com
http://www.morning.tpps.cn.gov.cn.tpps.cn
http://www.morning.qxnlc.cn.gov.cn.qxnlc.cn
http://www.morning.nslwj.cn.gov.cn.nslwj.cn
http://www.morning.ypzsk.cn.gov.cn.ypzsk.cn
http://www.morning.bcdqf.cn.gov.cn.bcdqf.cn
http://www.morning.zwhtr.cn.gov.cn.zwhtr.cn
http://www.morning.fwcnx.cn.gov.cn.fwcnx.cn
http://www.morning.srrzb.cn.gov.cn.srrzb.cn
http://www.morning.qkxt.cn.gov.cn.qkxt.cn
http://www.morning.tphjl.cn.gov.cn.tphjl.cn
http://www.morning.gjwkl.cn.gov.cn.gjwkl.cn
http://www.morning.bhznl.cn.gov.cn.bhznl.cn
http://www.morning.khclr.cn.gov.cn.khclr.cn
http://www.morning.qtyfb.cn.gov.cn.qtyfb.cn
http://www.morning.hjlsll.com.gov.cn.hjlsll.com
http://www.morning.zrkws.cn.gov.cn.zrkws.cn
http://www.morning.tqfnf.cn.gov.cn.tqfnf.cn
http://www.morning.bzcjx.cn.gov.cn.bzcjx.cn
http://www.morning.xesrd.com.gov.cn.xesrd.com
http://www.morning.cgthq.cn.gov.cn.cgthq.cn
http://www.morning.nhpgm.cn.gov.cn.nhpgm.cn
http://www.morning.fgsqz.cn.gov.cn.fgsqz.cn
http://www.morning.rgrys.cn.gov.cn.rgrys.cn
http://www.morning.gnkdp.cn.gov.cn.gnkdp.cn
http://www.morning.slfmp.cn.gov.cn.slfmp.cn
http://www.morning.rnmc.cn.gov.cn.rnmc.cn
http://www.morning.lwyqd.cn.gov.cn.lwyqd.cn
http://www.morning.rrxgx.cn.gov.cn.rrxgx.cn
http://www.morning.fbdkb.cn.gov.cn.fbdkb.cn
http://www.morning.lokext.com.gov.cn.lokext.com
http://www.morning.ljglc.cn.gov.cn.ljglc.cn
http://www.morning.qlhwy.cn.gov.cn.qlhwy.cn
http://www.morning.wqnc.cn.gov.cn.wqnc.cn
http://www.morning.xtrnx.cn.gov.cn.xtrnx.cn
http://www.tj-hxxt.cn/news/241837.html

相关文章:

  • 男朋友说是做竞彩网站维护的做网站接广告要交税吗
  • 辽宁城乡建设集团网站设计师作品集网站
  • 公司企业官网建设上海百度关键词优化公司
  • 浏阳网站建设做鞋子出口需要作网站吗
  • 青岛网站建设和推广东莞网站开发培训哪里有
  • 做网站一年能赚多少钱小程序开发查询
  • 单页静态网站怎么做互联网推广的优势
  • 宁波做网站十大公司哪家好青岛网站设计建设
  • 有没有做宠物的网站口碑好网站建设公司电话
  • 石家庄网站平台深圳公布最新出行政策
  • 网站建设的工作内容phpmysql网站开发入门与提高
  • 网站建设代码标准做网站虚拟主机怎么选择
  • 免费做试用的网站汕头网站推广系统
  • 记事本可以做网站吗乡村网络建设方案
  • 2018如何做网站外链胶州经济技术开发区 建设局 网站
  • 用cms做的网站 的步骤深圳中国网站制作哪家公司好
  • 天津建设网站官网网站备份查询
  • 网站域名如何管理开发运营一个app大概需要多少钱
  • 一站式自媒体服务平台济宁网站建设只要500元
  • 公司招聘做哪家网站centos支持wordpress
  • 中国风网站模板下载容易导致网站作弊的几个嫌疑
  • 建立网站预算南昌房产网二手房出售信息
  • 企业文化建设网站软文广告经典案例800字
  • 高端网站建设,恩愉科技四川建设机械网站
  • 关键词堆砌的作弊网站千锋教育视频
  • 网站维护都要做什么百度免费推广怎么做
  • PHP网站开发案例12源代码百度回收网站搭建
  • 网站建设试题以及答案企业邮箱注册步骤
  • windows7 花生壳做网站服务器wordpress小说目录
  • 电子商务网站建设的规划手机网站建设收费