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

360做网站荆州新东方在线网上课程

360做网站荆州,新东方在线网上课程,真实的做视频网站,it运维工资目录 1. 动态间距调整1.1 效果演示1.2 代码演示 2. 固定间距2.1 效果演示2.2 代码演示 其他情况 1. 动态间距调整 1.1 效果演示 并行效果 并列效果 1.2 代码演示 <template><div style"margin-bottom: 15px">direction:<el-radio v-model"d…

目录

  • 1. 动态间距调整
    • 1.1 效果演示
    • 1.2 代码演示
  • 2. 固定间距
    • 2.1 效果演示
    • 2.2 代码演示
  • 其他情况


1. 动态间距调整

1.1 效果演示

  • 并行效果
    在这里插入图片描述
  • 并列效果
    在这里插入图片描述

1.2 代码演示

<template><div style="margin-bottom: 15px">direction:<el-radio v-model="direction" value="horizontal">horizontal</el-radio><el-radio v-model="direction" value="vertical">vertical</el-radio></div><div style="margin-bottom: 15px">fillRatio:<el-slider v-model="fillRatio" /></div><el-space fill wrap :fill-ratio="fillRatio" :direction="direction" style="width: 100%">测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" /></el-space></template>
<script setup>
import { ref } from 'vue'const direction = ref('horizontal')
const fillRatio = ref(10)
</script>
<style lang="scss" scoped></style>

2. 固定间距

2.1 效果演示

在这里插入图片描述

2.2 代码演示

其实就是去掉了那个调整标签<el-slider> 等等。

<template> <el-space fill wrap :fill-ratio="fillRatio" :direction="direction" style="width: 100%">测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" /></el-space></template>
<script setup>
import { ref } from 'vue'const direction = ref('horizontal')
const fillRatio = ref(10)		//重点关注这个值:固定参数
</script>
<style lang="scss" scoped></style>

其他情况

有可能因为内容没占满整行而导致,width: 100% 平铺到整行的情况。如下所示:

在这里插入图片描述
解决方案就是:添加<div></div>标签,如:

    <el-space fill wrap :fill-ratio="fillRatio" :direction="direction" style="width: 100%">测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" />测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" /><div>测试输入框间隔距离:<el-input v-model="input" style="width: 240px;margin-right: 100px ;" placeholder="Please input" /></div></el-space>

效果:
在这里插入图片描述
这样就好啦~
需要调整的细节在调整一下就ok~
感谢观看~~!

http://www.yidumall.com/news/56991.html

相关文章:

  • 哪些大型网站有做互联网金融百度提问首页
  • 免费个人网站服务器bb厦门人才网招聘官网
  • 关于国际贸易的网站晨阳seo服务
  • 做网站联盟seo怎么推排名
  • 网站上传图片尺寸苏州seo关键词优化排名
  • wordpress 下载的主题插件在俺儿优化防疫措施
  • 婚纱影楼网站源码软文广告成功案例
  • 凡科网之前做的网站在哪看东莞网站公司哪家好
  • 做推广类门户网站怎么样青岛优化网站关键词
  • 网站如何添加图标怀化网络推广
  • 营销型网站建设的一般过程包括哪些环节?怎么做网站广告
  • app网站建设web制作网站的模板
  • 长春企业网站建设google推广工具
  • 网站怎么上传模板百度指数搜索热度大学
  • h5手机网站制作站长工具查询网站
  • 360网站seo怎么做百度关键词优化方法
  • wordpress主题开发实例系统优化大师下载
  • 网站买源代码澎湃新闻
  • 阿里云 做购物网站网站外链群发软件
  • 做最漂亮的网站怎样申请网站
  • 如何上国外购物网站seo关键词怎么选择
  • 郑州企业网站排名优化佛山网站建设技术托管
  • 网站安装不了wordpress青岛seo百科
  • 做编程网站有哪些内容百度seo一本通
  • 延安网站设计公司如何制作一个自己的网页网站
  • ui设计师创意平台标题优化怎样选关键词
  • 使用bootstrap做网站的视频交换链接营销成功案例
  • 哈尔滨模板建站推荐提高百度搜索排名工具
  • 建站源码程序山东省住房和城乡建设厅
  • 青岛网站如何制作网络推广计划方案