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

重庆网站建设推广湖南省郴州市临武县

重庆网站建设推广,湖南省郴州市临武县,做企业网站要哪些人员,中铁建设集团门户网登目录 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.yayakq.cn/news/607294/

相关文章:

  • WordPress实现评论表情西安做网站优化的公司
  • 建的网站打开很慢小程序排名帝搜软件sem880官网
  • 直播网站创做c语言精品网站开发的教学
  • 做外贸要自己建网站吗河北邢台特产
  • 烟台工程建设信息网站怎么制作手机app及网站
  • 网站建设 外包做门户网站的框架
  • 个人音乐网站程序哪些行业适合做seo
  • 做网站推广好做么wordpress简约主题
  • 建站案例制作网页费用
  • 网站空间可以转移吗谷歌推广电话
  • 企业门户网站制作大良营销网站建设好么
  • 门户网站建设如何入账dedecms转换wordpress
  • 做外贸网站平台有哪些内容做a 视频在线观看网站
  • 上海网站建设品南宁住房和城乡建设局网站
  • 网站建设公司联系电话做网站必要性
  • 网站建设百度资源成都定制网站建设地址
  • 返利网站开发一般要多少钱创意设计英文翻译
  • 提供手机网站怎么做软件跟网站开发的区别
  • dedecms 网站地图xml官网设计报价
  • 怎么利用360域名做网站无锡网站制作8
  • 在线看seo网站创建公司官网
  • 做网店的网站两个路由器做双网站
  • 网站建设的公司都有哪些企业网站设计开题报告
  • 网站建设公司网站源码网站集约化建设的建议
  • 网站建设估价个人免费网站平台哪个好
  • 大连网站建设比较好的公司建行移动门户官网
  • 网站怎么做交易公众号里链接的网站怎么做的
  • dedecms 网站首页标签react可以做门户网站么
  • 网站建设公司熊掌号怎么做漫画网站
  • 网站开发流程及顺序is_category wordpress