1.当<img src="">时,浏览器会有生成border,可以使用css选择器,img[src=""] {/*设置样式*/};

2.jquery仍然非常强大,$(/*元素*/).each(function(index){$(this)}),类似于foreach,不同之处是第一个参数是index而不是item;

3.快速开发中,善于找轮子。select2;

4.echarts常用项:

title: {
      show: true,
      text: '5555',
      textStyle: {
        fontSize: '120%',
        color: '#ffffff',
        fontFamily: "微软雅黑",
        fontWeight:"normal"
      }
    },
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'shadow'
      }
    },
    legend: {
      data: []
    },
    grid: {
      left: '3%',
      right: '17%',
      bottom: '3%',
      containLabel: true,
    },
    label: {
      normal: {
        position: 'right',
        show: true,
        fontSize: '.8rem',
        color: '#ffffff',
        fontFamily: "微软雅黑",
      }
    },
    itemStyle: {
      normal: {
        barBorderRadius: [0,7,7,0],
        label: {
          show: true,
          position: 'right',
          textStyle: {
            color: '#fff'
          },
        },
        color: new echarts.graphic.LinearGradient(
          0, 0, 1, 0,
          [
            {offset: 0, color: '#BC860D'},
            {offset: 1, color: '#F6EC35'}
          ]
        )
      }
    },
    xAxis: {
      show:false,
    },
    yAxis: {
      type: 'category',
      data: ['新疆','福建', '湖北', '河北', '吉林', '重庆', '甘肃', '浙江', '贵州', '广东', '青海', '四川', '山西', '陕西', '江西', '湖南', '河南', '山东', '江苏', '辽宁', '上海', '北京', '黑龙江', '安徽'],
      axisLine:{
        show:false,
      },
      axisTick:{
        show:false,
      },
      axisLabel : {
        textStyle: {
          color: '#fff',
          fontSize: "70%"
        }
      }
    },
    series: [
      {
        type: 'bar',
        data: [18203, 23489, 29034, 104970, 131744, 630230],
        barWidth:'40%',
      }
    ]

  

 

posted on 2017-12-07 23:18  heisama  阅读(126)  评论(0)    收藏  举报