在线手册

  • dom obj style

    ... 设置或返回元素的背。 1 backgroundImage 设置或返回元素的背图像。 1 backgroundPosition 设置或返回的背图像的起始位置。 1 backgroundRepeat 设置或返回如何重复背图像。 1 backgroundClip 设置或返回背的绘制区域。 3 ...

  • pr background color

    ... 。 IE9支持"继承"。 提示和注释 提示: 使用背和文本颜,使文本易于阅读。 Property Values 值 描述 color 指定背。在CSS颜值近可能的寻找一个颜值的完整列表。 transparent 指定背应该是透明的。这是默认 inherit 指定背,应该从父元素继承 在线实例 设置部分文字的背 ...

  • prop style backgroundimage

    ... 定了 !DOCTYPE 才支持 "inherit"。IE9 支持 "inherit"。 提示和注释 提示:除了背图片,您也应该指定背。如果图像是不可用的,将使用背。 实例 实例 设置背图像: <html> <head> <script> function displayResult() { document.body.style.backgroundColor="#f3f3f3"; document.body ...

  • sel nth child

    ← CSS3 :only-child 选择器 CSS3 :nth-last-child() 选择器 → CSS3 :nth-child() 选择器 完整CSS选择器参考手册 实例 指定每个p元素匹配父元素中的第2个子元素的背: p:nth-child(2) { background:#ff0000; } 尝试一下 » 定义和用法 :nth-child(n)选择器匹配父元素中的第n个子元素。 n可以是一个数字,一个关键字,或者一个公式。 提示: ...

  • sel nth last child

    ... 以作为关键字使用用于相匹配的子元素,其索引是奇数或偶数。 在这里,我们为奇数和偶数的倒数p元素指定两个不同的背: p:nth-last-child(odd) { background:#ff0000; } p:nth-last-child(even) { background:#0000ff; } 尝试一下 » 实例 2 使用公式(an+ b).描述:a代表一个循环的大小,N是一个计数器(从0 ...

  • sel nth last of type

    ... 作为关键字使用用于相匹配的子元素,其索引是奇数或偶数。 在这里,我们为奇数和偶数的倒数p元素指定两个不同的背: p:nth-last-of-type(odd) { background:#ff0000; } p:nth-last-of-type(even) { background:#0000ff; } 尝试一下 » 实例 2 使用公式(an+ b).描述:a代表一个循环的大小,N是一个计数器 ...

  • sel nth of type

    ... 考手册 实例 指定每个p元素匹配同类型中的第2个同级兄弟元素的背: p:nth-of-type(2) { background:#ff0000; } 尝试一下 » 定义 ... 该索引的第一个子节点是1)。 在这里,我们为奇数和偶数p元素指定两个不同的背: p:nth-of-type(odd) { background:#ff0000; } p:nth-of-type(even) { background:#0000ff ...

  • pr background image

    ... do not support multiple background images on one element. 注意IE7和更早的版本不支持"继承"的值。 IE8需要定义!DOCTYPE。 IE9支持"继承"。 提示和注释 Tip: 务必设置背,如果图像是不可用,将被使用。 属性值 值 说明 url('URL') 图像的URL none 无图像背 ...

  • sel disabled

    ... 考手册 实例 设置所有type="text"的禁用的输入元素的背: input[type="text"]:disabled { background:#dddddd; } 尝试一下 ... 。 更多实例 实例 为所有禁用的输入元素设置背: input:disabled { background:#dddddd; } 尝试一下 » 完 ...

  • sel enabled

    ... CSS3 :disabled 选择器 → CSS3 :enabled 选择器 完整CSS选择器参考手册 实例 设置所有type="text"的启用的输入元素的背: input[type="text"]:enabled { background:#ffff00; } 尝试一下 » 定义和用法 :enabled 选择器匹配每个启用的的元素(主要用于表单元 ...

推广服务(新)
最新文章