CSS系统默认颜色

作者:aoao 来源:样式之美 时间:2009-01-04 16:53:00 

直接调用系统的颜色显示在网页上本来是件很好玩滴事,但是,也有个缺点,就是可用的色太少 比如Bindows在它的启动画面一点点应用。

=。= 上次本来想在某个产品上应用,结果给人BS了,原因是色不好看 囧rz

在css21 中 System Colors也有相关描述,CSS3还加了超链接的色,还有个flavor

但是,要有浏览器支持才是硬道理,浏览器不支持,虾米都回家睡觉。

附各色显示效果,如果看不到文字部分就像刮彩票一半刮开看一下,其中,Background 这个在safari 比较神奇,是透明哦。


CSS2.1中的System Colors

  • ActiveBorder

  • Active window border.

  • ActiveCaption

  • Active window caption.

  • AppWorkspace

  • Background color of multiple document interface.

  • Background

  • Desktop background. » test color:Background @aoao

  • ButtonFace

  • Face color for three-dimensional display elements.

  • ButtonHighlight

  • Highlight color for three-dimensional display elements (for edges facing away from the light source).

  • ButtonShadow

  • Shadow color for three-dimensional display elements.

  • ButtonText

  • Text on push buttons.

  • CaptionText

  • Text in caption, size box, and scrollbar arrow box.

  • GrayText

  • Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.

  • Highlight

  • Item(s) selected in a control.

  • HighlightText

  • Text of item(s) selected in a control.

  • InactiveBorder

  • Inactive window border.

  • InactiveCaption

  • Inactive window caption.

  • InactiveCaptionText

  • Color of text in an inactive caption.

  • InfoBackground

  • Background color for tooltip controls.

  • InfoText

  • Text color for tooltip controls.

  • Menu

  • Menu background.

  • MenuText

  • Text in menus.

  • Scrollbar

  • Scroll bar gray area.

  • ThreeDDarkShadow

  • Dark shadow for three-dimensional display elements.

  • ThreeDFace

  • Face color for three-dimensional display elements.

  • ThreeDHighlight

  • Highlight color for three-dimensional display elements.

  • ThreeDLightShadow

  • Light color for three-dimensional display elements (for edges facing the light source).

  • ThreeDShadow

  • Dark shadow for three-dimensional display elements.

  • Window

  • Window background.

  • WindowFrame

  • Window frame.

  • WindowText

  • Text in windows.

CSS3 新加的 User preferences for hyperlink colors

  • ActiveHyperlink

  • Active hyperlink background.

  • ActiveHyperlinkText

  • Text of an active hyperlink.

  • HoverHyperlink

  • Hover hyperlink background.

  • HoverHyperlinkText

  • Text of a hyperlink in the hover state.

  • Hyperlink

  • Hyperlink background.

  • HyperlinkText

  • Hyperlink text.

  • VisitedHyperlink

  • Visited hyperlink background.

  • VisitedHyperlinkText

  • Text of a visited hyperlink.

  • flavor

  • An accent color (typically chosen by the user) to customize the user interface of the user agent itself. User agents may default the ‘flavor’ color to the dominant accent color used on the physical machine/mechanism that the user is interacting with (frequently a mouse, keyboard, monitor and computer case, often just a laptop), if the UA is able to retrieve that information from the platform and machine. It is not expected that this value will make sense on all platforms and machines.

标签:颜色,css,浏览器,CSS2
0
投稿

猜你喜欢

  • Python字符串的索引与切片

    2021-08-17 23:46:00
  • asp如何编写一个最简单的聊天程序?

    2009-11-08 19:04:00
  • Jmail发信的实例,模块化随时调用

    2007-09-27 13:35:00
  • 详解Python time库的使用

    2021-06-06 07:18:02
  • Python爬虫HTPP请求方法有哪些

    2023-07-25 16:55:06
  • Python+Pygame实战之英文版猜字游戏的实现

    2021-01-18 01:40:32
  • 利用20行Python 代码实现加密通信

    2023-04-22 06:18:54
  • Python利用DNN实现宝石识别

    2023-08-07 05:49:18
  • 基于Python实现天天酷跑功能

    2022-09-30 01:18:33
  • vue webpack打包后图片路径错误的完美解决方法

    2024-05-28 16:10:33
  • python 中 lxml 的 etree 标签解析

    2023-02-26 02:59:37
  • sql server 中合并某个字段值的实例

    2024-01-13 02:39:59
  • python频繁写入文件时提速的方法

    2023-11-11 01:48:40
  • Python中人脸图像特征提取方法(HOG、Dlib、CNN)简述

    2021-09-16 21:38:59
  • Python3使用tesserocr识别字母数字验证码的实现

    2021-02-16 11:51:26
  • Webpack中的文件指纹的实现

    2024-04-10 11:00:17
  • Python基于ThreadingTCPServer创建多线程代理的方法示例

    2022-12-05 19:12:39
  • python实现的一个火车票转让信息采集器

    2023-09-05 11:42:53
  • python实现蒙特卡罗方法教程

    2023-01-29 16:36:02
  • JAVA简单链接Oracle数据库 注册和登陆功能的实现代码

    2024-01-23 13:15:12
  • asp之家 网络编程 m.aspxhome.com