js?

1、如果你写js的时候,点击了一下发现hidden的内容覆盖了下面哪一行,其实是你的height固定死了,用Minheight就可以

2、material-ui的hover模式写法

const styles = {
  timeColumn: {
    width: 160,
    wordWrap: 'break-word',
  },
  binaryUrlColumn: {
    maxWidth: 120,
    textOverflow: 'ellipsis',
    overflow: 'hidden',
  },
  moreVertColumn: {
    width: 32,
  },
  tripRow: {
    '& $moreButton': {
      visibility: 'hidden',
    },
    '&:hover $moreButton': {
      visibility: 'visible',
    },
  },
  tripTime: {
    whiteSpace: 'nowrap',
  },
  moreButton: {
    width: 32,
    height: 32,
    margin: 0,
    cursor: 'pointer',
  },
};
View Code

 

posted on 2019-03-18 18:05  stupid_one  阅读(197)  评论(0编辑  收藏  举报

导航