之前做过一个项目,其中一项功能是查看社交信息流帖子。很多帖子中都包含视频,手机上播放视频后,会有层级混乱的问题。 当时的解决方案是动态的将视频放入Iframe中。以后如果有其他的解决方式会追加进来。 视频使用的是16:9的比例。 示例: HTML: CSS: JS: ...
分类:
移动开发 时间:
2017-12-06 18:06:21
阅读次数:
193
一.全局CSS样式 1.html5文档类型,标准,参照下面的进行设置 2.移动设备优先 bootstrap是移动设备优先的! 为了确保适当的绘制和触屏缩放,需要在<head>之中添加viewport元数据标签. **通过视口(viewport)设置meta属性为 user-scalable=no 可 ...
分类:
Web程序 时间:
2017-12-05 23:17:14
阅读次数:
246
部分异常信息......Maximum upload size of 10 bytes exceeded.... ...
分类:
编程语言 时间:
2017-12-04 22:18:40
阅读次数:
211
Bamboo and the Ancient Spell 分析 可能英文读题难度比较大,但是只要看到全大写的 "THE LONGEST COMMON SUBSEQUENCE !"应该就清楚这是考什么的了。 最长公共子序列:可以不连续。序列长度很大时,暴力方法非常费时,这也是一道比较经典的《算法导论》 ...
分类:
编程语言 时间:
2017-12-04 19:11:37
阅读次数:
180
A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence ( a1, a2, ..., aN) be any sequence ( ai1, ...
分类:
其他好文 时间:
2017-12-03 21:00:07
阅读次数:
160
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: 题目描述:给定字符串,求出最大的 ...
分类:
其他好文 时间:
2017-12-03 17:12:36
阅读次数:
111
1 #include <iostream> 2 #include <cstring> 3 #include <cmath> 4 #include <cstdio> 5 #include <algorithm> 6 using namespace std; 7 #define LL long long ...
分类:
其他好文 时间:
2017-12-02 22:08:26
阅读次数:
117
题目描述: In some country there are exactly n cities and m bidirectional roads connecting the cities. Cities are numbered with integers from 1 to n. If ci ...
分类:
其他好文 时间:
2017-12-02 14:15:05
阅读次数:
161
Here is a way you can do it by hand. Basically the idea is we take in some numbers we don't want to generate, then we generate a random number and if ...
分类:
编程语言 时间:
2017-12-02 11:21:55
阅读次数:
220
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: 1. O(n2 * l)复杂度做 ...
分类:
其他好文 时间:
2017-12-02 11:15:19
阅读次数:
120