2012-10-23

常用CSS元素div ul dl dt ol的简单解释


常用CSS元素div ul dl dt ol的简单解释

几个css元素的简单解释 div ul dl dt oldiv,这个很常见,块级元素,div尽量少用,和table一样,嵌套越少越好
ol 有序列表。
  1. ……
  2. ……
  3. ……
  4. 表现为:
    1……
    2……
    3……
    ul 无序列表,表现为li前面是大圆点而不是123
    • ……
    • ……
    • 很多人容易忽略 dl dt dd的用法
      dl 内容块
      dt 内容块的标题
      dd 内容
      可以这么写:
      标题
      内容1
      内容2
      dt 和dd中可以再加入 ol ul li和p
      理解这些以后,在使用div布局的时候,会方便很多,w3c提供了很多元素辅助布局.

      2012-08-27

      What's default HTML/CSS link color?


      • standard link - #0000FF //blue
      • visited link - #800080 //purple
      • active link - #FF0000 //red
      that was a standard but heavily differs per browser now.


      The default colours in Gecko, assuming the user hasn't changed their preferences, are:
      • standard link: #0000EE (blue)
      • visited link: #551A8B (purple)
      • active link: #EE0000 (red)
      Gecko also provides names for the user's colours; they are -moz-hyperlinktext -moz-visitedhyperlinktext and -moz-activehyperlinktext and they also provide -moz-nativehyperlinktext which is the system link colour.

      Popular Posts