在这一章中,我们将讲解 Bootstrap 底层结构的关键部分,包括我们让 web 开发变得更好、更快、更强壮的最佳实践。 HTML 5 文档类型(Doctype) Bootstrap 使用了一些 HTML5 元素和 CSS 属性。为了让这些正常工作,您需要使用 HTML5 文档类型(Doctype ...
分类:
Web程序 时间:
2020-05-16 10:54:41
阅读次数:
77
1.使用viewport,html文件中在<body></body>内添加meta,简单粗暴: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" ...
分类:
移动开发 时间:
2020-05-09 01:36:00
阅读次数:
110
From: https://www.cnblogs.com/pinard/p/6912636.html EM算法也称期望最大化(Expectation-Maximum,简称EM)算法,它是一个基础算法,是很多机器学习领域算法的基础,比如隐式马尔科夫算法(HMM), LDA主题模型的变分推断等等。本文 ...
分类:
编程语言 时间:
2020-05-05 17:56:50
阅读次数:
76
1.指定屏幕的缩放级别 <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> 2.reset.css(基础样 ...
分类:
移动开发 时间:
2020-05-05 00:36:32
阅读次数:
84
PAT甲级: 1089 Insert or Merge (25分) 题干 According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorte ...
分类:
其他好文 时间:
2020-05-05 00:32:19
阅读次数:
62
获取数据库表结构 select a.COLUMN_NAME,a.DATA_TYPE,a.CHARACTER_MAXIMUM_LENGTH,b.value from information_schema.COLUMNS as a left join sys.extended_properties as ...
分类:
数据库 时间:
2020-05-04 19:50:25
阅读次数:
91
问题: 给定两个数组,求两个数组中最长公共子数组的长度。 Example 1: Input: A: [1,2,3,2,1] B: [3,2,1,4,7] Output: 3 Explanation: The repeated subarray with maximum length is [3, 2 ...
分类:
其他好文 时间:
2020-05-04 13:05:59
阅读次数:
52
题目是浙大版数据结构视频里的原题,大意是说给出一个整数序列,让你求出 和最大的连续子序列 。最后输出 子序列的和 以及子序列的 第一个数 和 最后一个数 。如果给出的序列全是负数的话,就输出0以及整个序列的第一个数和最后一个数。 这道题大致有两种做法,一种是暴力枚举每一个子序列,当然毫无疑问会超时, ...
分类:
其他好文 时间:
2020-05-04 00:18:31
阅读次数:
66
Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any ...
分类:
其他好文 时间:
2020-05-03 14:27:36
阅读次数:
67
题目链接 https://leetcode-cn.com/problems/maximum-subarray/ 题目描述 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 示例: 输入: [-2,1,-3,4,-1,2,1,-5,4], 输出: ...
分类:
其他好文 时间:
2020-05-03 12:36:00
阅读次数:
50