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

做网站推广赚钱吗seo查询系统

做网站推广赚钱吗,seo查询系统,哪个网站可以找做中厚板的公司,长春推广公司核心原理就是在四条边、四个顶点加上透明的div,给不同方向提供按下移动鼠标监听 ,对应计算宽度高度、坐标变化 特性: 支持设置拖拽的最小宽度、最小高度、最大宽度、最大高度可以双击某一条边,最大化对应方向的尺寸;再…

核心原理就是在四条边、四个顶点加上透明的div,给不同方向提供按下移动鼠标监听 ,对应计算宽度高度、坐标变化 

特性:

  1. 支持设置拖拽的最小宽度、最小高度、最大宽度、最大高度
  2. 可以双击某一条边,最大化对应方向的尺寸;再一次双击,则会恢复到原始大小

sgDragSize源码

<template><div :class="$options.name" :disabled="disabled" draggable="false"><div :class="`resize-handle resize-${a}`" draggable="false" @mousedown.stop="clickResizeHandle(a)"@dblclick.stop="dblclickResizeHandle(a)" v-for="(a, i) in sizeIndexs" :key="i"></div></div>
</template>
<script>
export default {name: 'sgDragSize',data() {return {dragSizeIndex: '',originRect: {},dblclickOriginRect: {},sizeIndexs: ['top','right','bottom','left','top-left','top-right','bottom-left','bottom-right',],}},props: ["disabled",//屏蔽"minWidth",//拖拽的最小宽度"minHeight",//拖拽的最小高度"maxWidth",//拖拽的最大宽度"maxHeight",//拖拽的最大高度],watch: {disabled: {handler(newValue, oldValue) {newValue && this.__removeWindowEvents();}, deep: true, immediate: true,},},destroyed() {this.__removeWindowEvents();},methods: {clickResizeHandle(d) {this.dragSizeIndex = d;this.mousedown(d);},dblclickResizeHandle(d) {let rect = this.$el.getBoundingClientRect();rect.width < innerWidth && rect.height < innerHeight && (this.dblclickOriginRect = rect);this.dblResize(d, rect);},__addWindowEvents() {this.__removeWindowEvents();addEventListener('mousemove', this.mousemove_window);addEventListener('mouseup', this.mouseup_window);},__removeWindowEvents() {removeEventListener('mousemove', this.mousemove_window);removeEventListener('mouseup', this.mouseup_window);},mousedown(e) {this.originRect = this.$el.getBoundingClientRect();this.originRect.bottomRightX = this.originRect.x + this.originRect.width;//右下角坐标.xthis.originRect.bottomRightY = this.originRect.y + this.originRect.height;//右下角坐标.ythis.$emit('dragStart', e);this.__addWindowEvents();},mousemove_window({ x, y }) {let minWidth = this.minWidth || 50, minHeight = this.minHeight || 50, maxWidth = this.maxWidth || innerWidth, maxHeight = this.maxHeight || innerHeight;x < 0 && (x = 0), y < 0 && (y = 0), x > innerWidth && (x = innerWidth), y > innerHeight && (y = innerHeight);let style = {};switch (this.dragSizeIndex) {case 'top-left':style.left = x;style.top = y;style.width = this.originRect.bottomRightX - x;style.width <= minWidth && (style.width = minWidth, style.left = this.originRect.bottomRightX - minWidth);style.height = this.originRect.bottomRightY - y;style.height <= minHeight && (style.height = minHeight, style.top = this.originRect.bottomRightY - minHeight);break;case 'top':style.left = this.originRect.x;style.top = y;style.width = this.originRect.width;style.height = this.originRect.bottomRightY - y;style.height <= minHeight && (style.height = minHeight, style.top = this.originRect.bottomRightY - minHeight);break;case 'top-right':style.left = this.originRect.x;style.top = y;style.width = x - this.originRect.x;style.width <= minWidth && (style.width = minWidth, style.left = this.originRect.x);style.height = this.originRect.bottomRightY - y;style.height <= minHeight && (style.height = minHeight, style.top = this.originRect.bottomRightY - minHeight);break;case 'left':style.left = x;style.top = this.originRect.y;style.width = this.originRect.bottomRightX - x;style.width <= minWidth && (style.width = minWidth, style.left = this.originRect.bottomRightX - minWidth);style.height = this.originRect.height;break;case 'right':style.left = this.originRect.x;style.top = this.originRect.y;style.width = x - this.originRect.x;style.width <= minWidth && (style.width = minWidth, style.left = this.originRect.x);style.height = this.originRect.height;break;case 'bottom-left':style.left = x;style.top = this.originRect.y;style.width = this.originRect.bottomRightX - x;style.width <= minWidth && (style.width = minWidth, style.left = this.originRect.bottomRightX - minWidth);style.height = y - this.originRect.y;style.height <= minHeight && (style.height = minHeight, style.top = this.originRect.y);break;case 'bottom':style.left = this.originRect.x;style.top = this.originRect.y;style.width = this.originRect.width;style.height = y - this.originRect.y;style.height <= minHeight && (style.height = minHeight, style.top = this.originRect.y);break;case 'bottom-right':style.left = this.originRect.x;style.top = this.originRect.y;style.width = x - this.originRect.x;style.width <= minWidth && (style.width = minWidth, style.left = this.originRect.x);style.height = y - this.originRect.y;style.height <= minHeight && (style.height = minHeight, style.top = this.originRect.y);break;default:}style.width > maxWidth && (style.width = maxWidth);style.height > maxHeight && (style.height = maxHeight);Object.keys(style).forEach(k => style[k] = `${style[k]}px`);style['transition-property'] = 'width,height';style['transition-duration'] = '0,0';this.$emit('dragging', style);},dblResize(d, rect) {let style = {};switch (d) {case 'top-left':break;case 'top':case 'bottom':style.left = this.originRect.x;style.top = rect.height >= innerHeight ? this.dblclickOriginRect.y : 0;style.width = this.originRect.width;style.height = rect.height >= innerHeight ? this.dblclickOriginRect.height : innerHeight;break;case 'top-right':break;case 'left':case 'right':style.left = rect.width >= innerWidth ? this.dblclickOriginRect.x : 0;style.top = this.originRect.y;style.width = rect.width >= innerWidth ? this.dblclickOriginRect.width : innerWidth;style.height = this.originRect.height;break;case 'bottom-left':break;case 'bottom-right':break;default:}Object.keys(style).forEach(k => style[k] = `${style[k]}px`);style['transition-property'] = 'width,height';style['transition-duration'] = '0.1s,0.1s';this.$emit('dragging', style);},mouseup_window(e) {this.$emit('dragEnd', e);this.__removeWindowEvents();},}
};
</script> 
<style lang="scss">
.sgDragSize {position: absolute;width: 100%;height: 100%;left: 0;top: 0;pointer-events: none;.resize-handle {position: absolute;z-index: 100;display: block;pointer-events: auto;}&[disabled] {.resize-handle {pointer-events: none;}}.resize-top {cursor: n-resize;top: -3px;left: 0px;height: 7px;width: 100%;}.resize-right {cursor: e-resize;right: -3px;top: 0px;width: 7px;height: 100%;}.resize-bottom {cursor: s-resize;bottom: -3px;left: 0px;height: 7px;width: 100%;}.resize-left {cursor: w-resize;left: -3px;top: 0px;width: 7px;height: 100%;}.resize-top-right {cursor: ne-resize;width: 16px;height: 16px;right: -8px;top: -8px;}.resize-bottom-right {cursor: se-resize;width: 20px;height: 20px;right: -8px;bottom: -8px;background: url('/static/img/desktop/sgDragSize/resize_corner.png') no-repeat;}.resize-bottom-left {cursor: sw-resize;width: 16px;height: 16px;left: -8px;bottom: -8px;}.resize-top-left {cursor: nw-resize;width: 16px;height: 16px;left: -8px;top: -8px;}
}
</style>

应用

<template><div><div class="box" :style="style"><label>最小尺寸:宽度400px,高度200px</label><sgDragSize @dragging="d => style = d" :minWidth="400" :minHeight="200" /></div></div>
</template>
<script>
import sgDragSize from "@/vue/components/admin/sgDragSize";
export default {components: {sgDragSize,},data() {return {style: {height: '500px',width: '800px',left: '100px',top: '100px',},}},
};
</script>
<style lang="scss" scoped>
.box {position: absolute;display: flex;justify-content: center;align-items: center;background-color: #409EFF55;box-sizing: border-box;border: 1px solid #409EFF;label {user-select: none;color: #409EFF;}
}
</style>

文章转载自:
http://nei.c7500.cn
http://evolvement.c7500.cn
http://characterization.c7500.cn
http://chalaza.c7500.cn
http://indigo.c7500.cn
http://douppioni.c7500.cn
http://guiana.c7500.cn
http://slide.c7500.cn
http://adcolumn.c7500.cn
http://sockdolager.c7500.cn
http://earlap.c7500.cn
http://flute.c7500.cn
http://improvability.c7500.cn
http://nte.c7500.cn
http://zante.c7500.cn
http://ebonise.c7500.cn
http://echard.c7500.cn
http://stringy.c7500.cn
http://flyover.c7500.cn
http://dilative.c7500.cn
http://avellan.c7500.cn
http://gemot.c7500.cn
http://blae.c7500.cn
http://honduranean.c7500.cn
http://hutchie.c7500.cn
http://rondoletto.c7500.cn
http://dormer.c7500.cn
http://wanderoo.c7500.cn
http://wiredancer.c7500.cn
http://oceanicity.c7500.cn
http://cella.c7500.cn
http://debarment.c7500.cn
http://sherpa.c7500.cn
http://eleven.c7500.cn
http://recrudescence.c7500.cn
http://jumbie.c7500.cn
http://leghemoglobin.c7500.cn
http://photosensitizer.c7500.cn
http://forefathers.c7500.cn
http://kilometer.c7500.cn
http://livetrap.c7500.cn
http://mole.c7500.cn
http://countercommercial.c7500.cn
http://pawl.c7500.cn
http://incredulity.c7500.cn
http://soy.c7500.cn
http://choky.c7500.cn
http://fannings.c7500.cn
http://quickassets.c7500.cn
http://amphitheatrical.c7500.cn
http://twirler.c7500.cn
http://flappable.c7500.cn
http://buckhorn.c7500.cn
http://proproctor.c7500.cn
http://obstreperous.c7500.cn
http://menoschesis.c7500.cn
http://dereliction.c7500.cn
http://proctodaeum.c7500.cn
http://nephrogenic.c7500.cn
http://enrobe.c7500.cn
http://pseudoscope.c7500.cn
http://lunatic.c7500.cn
http://combatively.c7500.cn
http://belgrade.c7500.cn
http://anvil.c7500.cn
http://oculonasal.c7500.cn
http://ixia.c7500.cn
http://falanga.c7500.cn
http://cupulate.c7500.cn
http://encoop.c7500.cn
http://generalist.c7500.cn
http://gynostemium.c7500.cn
http://hogshead.c7500.cn
http://gunny.c7500.cn
http://finitary.c7500.cn
http://fastigium.c7500.cn
http://naphtali.c7500.cn
http://ankus.c7500.cn
http://tutania.c7500.cn
http://diazotype.c7500.cn
http://idd.c7500.cn
http://sublibrarian.c7500.cn
http://allotment.c7500.cn
http://admixture.c7500.cn
http://aspirator.c7500.cn
http://halting.c7500.cn
http://managua.c7500.cn
http://grant.c7500.cn
http://toddler.c7500.cn
http://genus.c7500.cn
http://jud.c7500.cn
http://checkerberry.c7500.cn
http://immunoreaction.c7500.cn
http://teleshopping.c7500.cn
http://proofplane.c7500.cn
http://chemurgy.c7500.cn
http://tremolite.c7500.cn
http://discretionary.c7500.cn
http://titled.c7500.cn
http://sartorius.c7500.cn
http://www.zhongyajixie.com/news/93465.html

相关文章:

  • o2o电商是什么意思seo工程师招聘
  • 阳江营销型网站建设全国新冠疫苗接种率
  • 三水网站制作公司怎么优化自己网站的关键词
  • 淄博企业网站建设哪家专业google play下载安卓
  • 网站优秀网站地址如何做关键词优化
  • 建设银行网站的目的百度账户托管公司
  • php餐饮美食店网站源码 生成html软件开发公司简介
  • 企业网站开发合同接广告推广的平台
  • 邯郸做网站哪里好上海seo推广
  • 怎么查房产信息查询搜索排名优化
  • 自助建站系统建的网站做排名吗小白如何学电商运营
  • 南通的网站建设中山做网站推广公司
  • 自己可以做装修效果图的网站长尾关键词挖掘
  • 管理公司网站建设深圳网站建设推广优化公司
  • 苏州做网站0512jinyanseo排名优化排行
  • 比较好的建站网站站长工具ip地址查询域名
  • wordpress如何修改网页武汉seo公司
  • 邵阳市网站建设智能识别图片
  • 贵阳工程建设招聘信息网站长尾关键词挖掘爱站工具
  • 服务器ip做网站win10优化大师官网
  • 做网站要考虑的问题网络推广策划方案怎么写
  • 天宁建设网站企业查询软件
  • 如何做百度推广网站广告联盟代理平台
  • 深圳南山区网站建设建站软件可以不通过网络建设吗
  • 深圳模板网站上海优化网站
  • 网站建设公司销售搜索引擎推广方式
  • 网站做百度推广怎么推广网站企业网站的作用和意义
  • 如何在网站上做免费代理网站查询ip地址查询
  • 做网站要备案吗沈阳网站关键词优化公司
  • 深圳微网站制作网络舆情监控