问题描述: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the tot ...
分类:
其他好文 时间:
2016-08-26 16:55:29
阅读次数:
231
1,背景颜色background-colorbackground-color不能继承,其默认值是transparent。transparent有“透明”之意。也就是说,如果一个元素没有指定背景色,那么背景就是透明的,这样其祖先元素的背景才能可见。p{background-color:gray;和普通颜色设置是一样的}2.背景的图片backgro..
分类:
Web程序 时间:
2016-08-22 00:43:32
阅读次数:
257
选择器分组 假设希望 h2 元素和段落都有灰色。为达到这个目的,最容易的做法是使用以下声明: 将 h2 和 p 选择器放在规则左边,然后用逗号分隔,就定义了一个规则。其右边的样式(color:gray;)将应用到这两个选择器所引用的元素。逗号告诉浏览器,规则中包含两个不同的选择器。如果没有这个逗号, ...
分类:
Web程序 时间:
2016-08-21 16:43:13
阅读次数:
207
Problem Description There are N robots standing on the ground (Don't know why. Don't know how). Suddenly the sky turns into gray, and lightning storm ...
分类:
其他好文 时间:
2016-08-13 06:35:00
阅读次数:
249
Question:
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the...
分类:
其他好文 时间:
2016-08-08 15:49:05
阅读次数:
132
一、drop-shadow阴影 给图片加阴影效果,效果如下图所示: 代码: #gray{ -webkit-filter:drop-shadow(5px 5px 5px green); } 二、blur模糊 给图片加模糊效果,改变图片清晰度,效果如下图所示: 代码: #gray{-webkit-fil ...
分类:
Web程序 时间:
2016-08-06 13:07:00
阅读次数:
258
一、grayscale灰度 使用这个特效,会把图片变成灰色的,如果你在grayscale()中没有任何参数值,将会以默认值“100%”渲染。其效果下图所示: 代码: #gray{ -webkit-filter:grayscale(1); } 如果你在grayscale()中设置参数值,将会出现由彩色 ...
分类:
Web程序 时间:
2016-08-06 12:38:01
阅读次数:
158
可能早就知道,像汶川这种糟糕的日子网站全灰在IE下是可以轻松实现的(filter: gray;),不过,当时,其他浏览器是无解的。不过,时代发展,如今,CSS3的逐步推进,我们也开始看到“黑白效果”大规模应用于实际的可能。 CSS3 greyscale 滤镜实现 如下测试代码: .gray { -w ...
分类:
Web程序 时间:
2016-08-05 13:48:23
阅读次数:
184
1.<meta charset="utf-8"> 2.属性:width:宽度 height:高度 3.背景:background background-attachment:fixed; 背景是否滚动 background-color:gray;背景颜色 background-image:url(b ...
分类:
其他好文 时间:
2016-07-30 16:49:47
阅读次数:
395
Filter属性介绍 Alpha滤镜的使用 Blur滤镜的使用 Filph、Filpv滤镜 DropShadow滤镜 Glow 滤镜 Gray ,Invert,Xray 滤镜 Shadow滤镜 19.1 Filter属性介绍 设置或检索对象所应用的滤镜或滤镜集合。此属性仅作用于有布局的对象,如块对象... ...
分类:
Web程序 时间:
2016-07-30 15:00:52
阅读次数:
219