首先我们看一下css伪元素是什么: CSS 伪元素用于向某些选择器设置特殊效果。 伪元素有哪些: :first-line 伪元素:"first-line" 伪元素用于向文本的首行设置特殊样式。 :first-letter 伪元素:"first-letter" 伪元素用于向文本的首字母设置特殊样式。 ...
分类:
Web程序 时间:
2016-09-26 17:59:04
阅读次数:
119
方法1 .clear{ letter-spacing: -4px;/*根据不同字体字号或许需要做一定的调整*/ word-spacing: -4px; font-size: 0;} 方法2 .clear{ letter-spacing: -.5em; /*出自YUI*/ *letter-spacin ...
分类:
其他好文 时间:
2016-09-26 10:47:22
阅读次数:
126
#p1{ text-indent: 50px;//首行缩进 } #p2{ letter-spacing: 10px;//字符的间距 } #p3{ word-spacing: 10px;//单词的间距 } 文字与图片对齐方式: ...
分类:
Web程序 时间:
2016-09-24 17:29:31
阅读次数:
150
IE8以上兼容: div>p div+p div[attribute=value] div[attribute^=value] div[attribute$=value] div[attribute*=value] div[attribute] p:first-letter p:first-line ...
分类:
Web程序 时间:
2016-09-23 16:29:34
阅读次数:
141
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-23 06:33:07
阅读次数:
141
An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations: a) it --> it (no abbrev ...
分类:
其他好文 时间:
2016-09-22 06:34:27
阅读次数:
184
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-21 06:47:28
阅读次数:
111
题目: 给定一个数字字符串,返回数字所能代表的所有字母组合; 举例: Input:Digit string "23" Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. 解题思路: 1. 首先要判断给定的数字字符串是否合法( ...
分类:
其他好文 时间:
2016-09-17 21:42:43
阅读次数:
130
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho ...
分类:
其他好文 时间:
2016-09-16 10:12:49
阅读次数:
141