CSS3 中的渐变分为线性渐变和径向渐变,下面详细介绍其用法。 线性渐变 语法: background: linear-gradient(direction, color-stop1, color-stop2, ...)…
分类:CSS3
CSS:改变选择文字的前景和背景色
有些时候,我们想要自定义选中文字的前景色和背景色,让网页的整体风格更加统一,这个时候可以用 CSS3 的 ::selection 选择器来设置: 全局设置: *::selection { background:#0000…
css3 transform 和 position:fixed
CSS3 中的 transform 会对其他样式产生一定影响,尤其对 poition 样式影响比较大,具体如下: transform 会为当前元素添加 position : relative 特性; transform …