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

如何在自己电脑上搭建网站wordpress页面类型

如何在自己电脑上搭建网站,wordpress页面类型,建设大型视频网站需要的资金量,苏州优化网站公司1、先上个截图#xff1a; 说明#xff1a;拖动上面的分隔栏就可以实现#xff0c;改变左右区域的大小。 2、上面的例子来自官网的#xff1a; Container 布局容器 | Element Plus 3、拖动的效果来自#xff1a; https://juejin.cn/post/7029640316999172104#heading-1…1、先上个截图 说明拖动上面的分隔栏就可以实现改变左右区域的大小。 2、上面的例子来自官网的 Container 布局容器 | Element Plus 3、拖动的效果来自 https://juejin.cn/post/7029640316999172104#heading-1 4、我们将二个效果进行了组合代码 templateel-container classbox styleheight: 100vhel-aside width200px classleftel-scrollbarel-menu :default-openeds[1, 3]el-sub-menu index1template #titleel-iconmessage //el-iconNavigator One/templateel-menu-item-grouptemplate #titleGroup 1/templateel-menu-item index1-1Option 1/el-menu-itemel-menu-item index1-2Option 2/el-menu-item/el-menu-item-groupel-menu-item-group titleGroup 2el-menu-item index1-3Option 3/el-menu-item/el-menu-item-groupel-sub-menu index1-4template #titleOption4/templateel-menu-item index1-4-1Option 4-1/el-menu-item/el-sub-menu/el-sub-menuel-sub-menu index2template #titleel-iconicon-menu //el-iconNavigator Two/templateel-menu-item-grouptemplate #titleGroup 1/templateel-menu-item index2-1Option 1/el-menu-itemel-menu-item index2-2Option 2/el-menu-item/el-menu-item-groupel-menu-item-group titleGroup 2el-menu-item index2-3Option 3/el-menu-item/el-menu-item-groupel-sub-menu index2-4template #titleOption 4/templateel-menu-item index2-4-1Option 4-1/el-menu-item/el-sub-menu/el-sub-menuel-sub-menu index3template #titleel-iconsetting //el-iconNavigator Three/templateel-menu-item-grouptemplate #titleGroup 1/templateel-menu-item index3-1Option 1/el-menu-itemel-menu-item index3-2Option 2/el-menu-item/el-menu-item-groupel-menu-item-group titleGroup 2el-menu-item index3-3Option 3/el-menu-item/el-menu-item-groupel-sub-menu index3-4template #titleOption 4/templateel-menu-item index3-4-1Option 4-1/el-menu-item/el-sub-menu/el-sub-menu/el-menu/el-scrollbar/el-asidediv classresize/divel-container classmidel-header styletext-align: right; font-size: 12pxdiv classtoolbarel-dropdownel-icon stylemargin-right: 8px; margin-top: 1pxsetting //el-icontemplate #dropdownel-dropdown-menuel-dropdown-itemView/el-dropdown-itemel-dropdown-itemAdd/el-dropdown-itemel-dropdown-itemDelete/el-dropdown-item/el-dropdown-menu/template/el-dropdownspanTom/span/div/el-headerel-mainel-scrollbarel-table :datatableDatael-table-column propdate labelDate width140 /el-table-column propname labelName width120 /el-table-column propaddress labelAddress //el-table/el-scrollbar/el-main/el-container/el-container /templatescript langts setup import { onMounted, onUnmounted, ref } from vue; import { Menu as IconMenu, Message, Setting } from element-plus/icons-vue;const item {date: 2016-05-02,name: Tom,address: No. 189, Grove St, Los Angeles, }; const tableData ref(Array.from({ length: 20 }).fill(item));function dragControllerDiv() {var resize document.getElementsByClassName(resize);var left document.getElementsByClassName(left);var mid document.getElementsByClassName(mid);var box document.getElementsByClassName(box);for (let i 0; i resize.length; i) {// 鼠标按下事件resize[i].onmousedown function (e) {//颜色改变提醒resize[i].style.background #818181;var startX e.clientX;resize[i].left resize[i].offsetLeft;// 鼠标拖动事件document.onmousemove function (e) {var endX e.clientX;var moveLen resize[i].left (endX - startX); // endx-startx移动的距离。resize[i].left移动的距离左边区域最后的宽度var maxT box[i].clientWidth - resize[i].offsetWidth; // 容器宽度 - 左边区域的宽度 右边区域的宽度if (moveLen 32) moveLen 32; // 左边区域的最小宽度为32pxif (moveLen maxT - 150) moveLen maxT - 150; //右边区域最小宽度为150pxresize[i].style.left moveLen; // 设置左侧区域的宽度for (let j 0; j left.length; j) {left[j].style.width moveLen px;mid[j].style.width box[i].clientWidth - moveLen - 10 px;}};// 鼠标松开事件document.onmouseup function (evt) {//颜色恢复resize[i].style.background #d6d6d6;document.onmousemove null;document.onmouseup null;resize[i].releaseCapture resize[i].releaseCapture(); //当你不在需要继续获得鼠标消息就要应该调用ReleaseCapture()释放掉};resize[i].setCapture resize[i].setCapture(); //该函数在属于当前线程的指定窗口里设置鼠标捕获return false;};} }onMounted(() {dragControllerDiv(); }); /scriptstyle scoped .layout-container-demo .el-header {position: relative;background-color: var(--el-color-primary-light-7);color: var(--el-text-color-primary); } .layout-container-demo .el-aside {color: var(--el-text-color-primary);background: var(--el-color-primary-light-8); } .layout-container-demo .el-menu {border-right: none; } .layout-container-demo .el-main {padding: 0; } .layout-container-demo .toolbar {display: inline-flex;align-items: center;justify-content: center;height: 100%;right: 20px; }/* 拖拽相关样式 */ /*包围div样式*/ .box {width: 100%;height: 100%;margin: 1% 0px;overflow: hidden;box-shadow: -1px 9px 10px 3px rgba(0, 0, 0, 0.11); } /*左侧div样式*/ .left {width: calc(32% - 10px); /*左侧初始化宽度*/height: 100%;background: #ffffff;float: left; } /*拖拽区div样式*/ .resize {cursor: col-resize;float: left;position: relative;top: 45%;background-color: #d6d6d6;border-radius: 5px;margin-top: -10px;width: 10px;height: 50px;background-size: cover;background-position: center;/*z-index: 99999;*/font-size: 32px;color: white; } /*拖拽区鼠标悬停样式*/ .resize:hover {color: #444444; } /*右侧div样式*/ .mid {float: left;width: 68%; /*右侧初始化宽度*/height: 100%;background: #fff;box-shadow: -1px 4px 5px 3px rgba(0, 0, 0, 0.11); } /style5、通过上面的代码我们可以很轻松的实现拖动改变左右二侧区域的大小说明 document.getElementsByClassName返回一个类似数组的对象,包含了所有指定 class 名称的子元素。比如document.getElementsByClassName(left); 是查找classleft的所有的elements。 document.onmousemove function (e) {         var endX e.clientX;         var moveLen resize[i].left (endX - startX); // endx-startx移动的距离。resize[i].left移动的距离左边区域最后的宽度         var maxT box[i].clientWidth - resize[i].offsetWidth; // 容器宽度 - 左边区域的宽度 右边区域的宽度         if (moveLen 32) moveLen 32; // 左边区域的最小宽度为32px         if (moveLen maxT - 150) moveLen maxT - 150; //右边区域最小宽度为150px         resize[i].style.left moveLen; // 设置左侧区域的宽度         for (let j 0; j left.length; j) {           left[j].style.width moveLen px;           mid[j].style.width box[i].clientWidth - moveLen - 10 px;         }       }; 这里的left[j],mid[j], length1的时候就是第一个元素也就是我们左侧导航与右侧数据。 容器宽度 左边区域的宽度 resize的宽度 右边区域的宽度 resize[0]的left就是左侧的宽度。
http://www.hkea.cn/news/14481241/

相关文章:

  • 国外对于网站开发制作网页框架
  • saas建站 cms工程材料信息价查询网免费
  • 网站上的qq如何做悬浮建筑做文本网站
  • 南京公共工程建设中心网站网站建设最新教程
  • 有了主机和域名后如何做网站网站分享的功能怎么做的
  • 织梦网站下载中小企业网站建设与管理课件百度云
  • 十年专业网站建设网页设计板式类型
  • 网站环境搭建海外打开网站慢
  • 铜川微网站建设标书制作教程全过程
  • 佛山新网站建设咨询做游戏网站年入百万
  • 网站ip做网站wordpress登录不
  • 百度没有投放的网站点击百度SEO网站
  • 做外贸英文网站如何做网站推广获客
  • 手机网站开发前台架构php网站怎么做post订单
  • 网站备案去哪湖南网站制作公司推荐
  • 深圳整站seo网站做好第二年要多少钱
  • 商机创业网2021创业泉州seo网站排名
  • 建设企业网站公司在哪里福建中国建设工程造价管理协会网站
  • 优化网站的步骤案列wordpress centos查看目录
  • 网站开发需要有登陆界面的网站365建站器
  • 展示型网站建设报价静态后台管理网站模板
  • 投资网站模版下载企业培训的目的和意义
  • 如何让做树洞网站网站 关键词库
  • 热度网络网站建设网页界面设计欣赏
  • 邢台网站制作那家便宜专业的购物网站定制
  • asp.net 怎样生成网站wordpress文章编译器修改
  • 化州网站建设深圳大型网站建设公司
  • 汉口网站建设公司wordpress commentor
  • 河南网站备案系统短信wordpress怎么更改介绍
  • 金阊网站建设企业注册信息查询单怎么打印