摘要:
直接上代码: <style type="text/css"> * { margin: 0; padding: 0; } .outbox { width: 100px; height: 100px; box-sizing: border-box; padding: 5px; border-radius 阅读全文
摘要:
只需要在父元素中添加 display: table; 子元素中添加 display: table-cell;vertical-align: middle; 上代码: <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <met 阅读全文
摘要:
seriesData: [ { name: "进站乘客统计", type: "pie", radius: [0, 70], center: ["25%", "40%"], itemStyle: { normal: { label: { show: true, position: "outside", 阅读全文
摘要:
简单来说就是迫使页面脱离标准流的操作(浮动,脱标的定位等【position 、 display 、 float 、 width 、 height 、 margin 、 padding 、 top 、 left 、 right 、】) 阅读全文
摘要:
父传子 1.先要在父组件中引入子组件 2.在子组件上绑上想要传递的值 3.子组件通过props来接受传递过来的值 父组件中的写法: 子组件中接收传过来的值: 未完待续。。。。。。。。。。。。。。。。。。 阅读全文
摘要:
<template> <div class="hello"> <!--<div class="test"></div>--> <!--<!–<div class="test2">111</div>–>--> <!--<span style="border:1px 阅读全文
摘要:
<style lang="less" scoped> /deep/ .el-table { thead { .cell { text-align: left; // table 表头 左对齐 } } .delete-row { color: #d8d8d8; } .el-table__expand- 阅读全文
摘要:
echarts常用的方法 关于ECharts图表的实例化方式和Highcharts图表的实例化方法有些类似,都是通过给其对象提供一个option,option的结构如同json的结构一样,只是一些属性少了双引号罢了。 纵观ECharts图表实例化的API,主要有一下几个相关的实例化方法: 1、set 阅读全文
摘要:
yAxis. axisLabel (坐标轴刻度标签的相关设置) yAxis.axisLabel. formatter(刻度标签的内容格式器,支持字符串模板和回调函数两种形式。) 官网中的介绍: 具体代码配置: yAxis: { // 设置y轴数据保留三位小数 axisLabel: { formatt 阅读全文
摘要:
这个其实很简单哦,注意看(所有事件的监听方法,其实官网中都有介绍,有时因为忙碌没有太多的时间逐个仔细看,导致我们不知道用啥去监听导航栏中的事件)教程: 1.打开官网:https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e 阅读全文