常见布局实现: 作者:Sweet_KK 链接:https://juejin.im/post/5aa252ac518825558001d5de 来源:掘金 一、水平居中 文本/行内元素/行内块元素居中 ==text align== 只控制行内内容(文字、行内元素、行内块元素)如何相对于他的块父元素对齐 ...
分类:
其他好文 时间:
2019-12-27 21:53:44
阅读次数:
102
从vue转战react了,今天介绍下第一次用到taro的一个介绍, 1、首页要利用小程序的分包subPackages进行设置,首次加载不要太多 配置 1 config: Config = { 2 pages: [ 3 'pages/home/index',//首页 4 'pages/mine/ind ...
分类:
其他好文 时间:
2019-12-27 11:40:06
阅读次数:
175
1007 Maximum Subsequence Sum (25分) Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i ...
分类:
其他好文 时间:
2019-12-26 17:53:37
阅读次数:
90
1.让一个div在页面中水平垂直居中1>position:absolute;(当页面出现滚动条的时候,用fixed)top:0;left:0;right:0;bottom:0;margin:auto;2>position:absolute;top:50%;left:50%;translate:(-50%,-50%)3>display:flex;justify-content:ce
分类:
其他好文 时间:
2019-12-24 17:01:55
阅读次数:
105
<!doctype html><html><head><meta charset="utf-8"><title>制作Tab面板</title></head><style type="text/css"> #tab{ margin: 0; list-style: none; padding: 0 0 ...
分类:
Web程序 时间:
2019-12-24 15:18:40
阅读次数:
96
(1)位置属性:position left top right bottom z index display float overflow clear (2)大小:width height padding margin (3)文字样式:font size font family font style ...
分类:
Web程序 时间:
2019-12-24 13:30:45
阅读次数:
90
《CSS权威指南》中文字显示:任何不是块级元素的可见元素都是内联元素。其表现的特性是“行布局”形式,这里的“行布局”的意思就是说其表现形式始终以行进行显示。比如,我们设定一个内联元素border-bottom:1px solid #000;时其表现是以每行进行重复,每一行下方都会有一条黑色的细线。如 ...
分类:
Web程序 时间:
2019-12-23 16:36:06
阅读次数:
159
栈(Stack)是一种重要的线性结构,是后进先出(Last in first out,LIFO)的数据结构。它要求只在表尾进行删除和插入操作。 表尾称为栈的栈顶(top),相应的表头称为栈底(bottom)。 typedef struct { ElemType *base;//栈底 ElemType ...
分类:
其他好文 时间:
2019-12-22 19:58:25
阅读次数:
72
动态规划 [TOC] 数字三角形问题 LeetCode 120.Triangle 尝试使用分治法 Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent nu ...
分类:
其他好文 时间:
2019-12-22 16:41:16
阅读次数:
132
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 import numpy as np from cv2 import COLOR_BGR2GRAY def main(): # 读取原图 img_rgb = cv2.imread("d ...
分类:
编程语言 时间:
2019-12-22 00:42:56
阅读次数:
161