width: 300px; height: 300px; margin: 0 auto; /*水平居中*/ position: relative; top: 50%; /*偏移*/ margin-top: -150px; //div高度的一半
div设置水平垂直居中
推荐阅读
- 判断两二叉树是否完全相同
- Leetcode-1085 sum of digits in the minimum number(最小元素各数位之和)
- Leetcode-1087 permutation of letters(字母切换)
- Leetcode-567 Permutation in String(字符串的排列)
- Leetcode-995 Minimum Number of K Consecutive Bit Flips(K 连续位的最小翻转次数)
- Leetcode-997 Find the Town Judge(找到小镇的法官)
- Leetcode-953 Verifying an Alien Dictionary(验证外星语词典)
- Leetcode-955 Delete Columns to Make Sorted II(删列造序 ||)
- Leetcode-861 Score After Flipping Matrix(翻转矩阵后的得分)
- df.to_dict()转化为字典数据