一、文本选中的默认颜色今天看了国外的很多网站,发现在网页中选中文本的时候,颜色不是我们平常所说的蓝色。经过google的帮助,发现,原来是 CSS 3.0的一个小特性。除了主流浏览器(ie)之外,一般还是支持的。這是浏览器默认选中的颜色二、使用CSS3改变文本选中的默认颜色<!DOCTYPE html><html> <head> <style> .demo1::selection{color:#fff;background:#ff5e2c;} .demo1::-moz-selection{color:#fff;background:#ff5e2c Read More
posted @ 2011-03-10 17:29
hevily
Views(9506)
Comments(0)
Diggs(1)

浙公网安备 33010602011771号