Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequen ...
分类:
其他好文 时间:
2016-09-14 07:19:49
阅读次数:
226
1.从数据库读取富文本内容样式如下: <p style=";text-indent: 0;padding: 0;line-height: 26px"><span style="font-family: 微软雅黑;letter-spacing: 0;font-size: 14px"& ...
分类:
Web程序 时间:
2016-09-13 16:24:07
阅读次数:
159
p{text-indent:2em;}段前空两格 p{text-indent:2em;}段前空两格 段落排版--行间距(行高) p{line-height:1.5em;} 段落排版--中文字间距、字母间距 h1{ letter-spacing:20px; } 段落排版—对齐 h1{ text-ali ...
分类:
Web程序 时间:
2016-09-13 13:27:06
阅读次数:
190
1.:first-line 向元素的首行文本添加样式,不必关心首行是元素节点还是文本节点 由于文本超过div的宽度,换行后,只有第一行有效果 2.:first-letter 向文本的第一个字母添加特殊样式 3. :before 表示在元素的内容之前新插入内容(多媒体或者纯文本) :after 表示在 ...
分类:
Web程序 时间:
2016-09-13 13:07:38
阅读次数:
168
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in ...
分类:
其他好文 时间:
2016-09-12 08:37:18
阅读次数:
143
html5添加网页背景音乐 一个客户要求给网站添加一个背景音乐,我用的是html5添加网页背景音乐的代码,在此记录一下以后有用。 html5方法一:<audio autoplay="" loop=""><source src="http://mi.0w0.im/Letter_Song.mp3 ">< ...
分类:
Web程序 时间:
2016-09-10 23:50:25
阅读次数:
1398
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2016-09-10 16:14:05
阅读次数:
101
function validPsw(password) { var num = 0; var number = 0 ; var letter = 0 ; var bigLetter = 0 ; var chars = 0 ; if (password.search(/[0-9]/) != -1) { ...
分类:
其他好文 时间:
2016-09-10 00:10:54
阅读次数:
234
题目链接:http://codeforces.com/problemset/problem/180/C 题意: 给你一个仅包含大写字母和小写字母的字符串,你可以将让小写字母转化为大写字母,大写字母转化为小写字母,求最好的操作步数使得最后的字符串左边全是大写字母,右边全是小写字母. 思路: 有点像是树 ...
分类:
其他好文 时间:
2016-09-06 19:47:37
阅读次数:
148
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2016-09-04 23:42:12
阅读次数:
226