border-color与color

1.border-color就是color,即border-color的默认颜色就是color

当没有指定border-color的时候,会使用color作为边框的颜色!

类似的还有text-shadow,box-shadow

2.

(1)只要一个color hover变化,就可以一起变色

(2)transition过渡也只要一个color属性

总结:boder-color属性可继承color,因此可用于一次性优化多个布局;

时间: 2024-10-22 18:01:50

border-color与color的相关文章

JQuery Color: Do Color Animations with jQuery

JQuery color, a jQuery plugin that adds the ability to do color animations to jQuery. Demo effect: Sample code: <style> div { position: absolute; background-color: #fff; width: 90px; height: 90px; border: solid 1px #000; } #testElement1 { left: 50px

ionic[grid][color][icon][color]

ionic网格(Grid) 1 <div class="row"> 2 <div class="col col-65 col-offset-10">col</div> 3 <div class="col col-25">col</div> 4 </div> /***********************************/ 响应式网格 1 <div class=

[D3JS] Add more map layer and color

import React, {Component} from 'react'; import * as d3 from 'd3'; import 'd3-geo'; import * as topojson from 'topojson'; import * as colorbrewer from 'colorbrewer'; const us = require('./us.json'); const width = 960; const height = 600; class Map ext

text-decoration与color属性

text-decoration属性值 如果指定某个标签的text-decoration属性时,希望为其添加多个样式(比如:上划线.下划线.删除线),那么需要把所有的值合并到一个规则中才会生效 p{ text-decoration: underline overline line-through; } 如果将这行值分开写,那么在生效时会根据就近原则,选取最后一个text-decoration样式生效 p{ text-decoration: underline; text-decoration: o

poj 2777 count color 线段树

Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L centimeter, L is a positive integer, so we can evenly d

webDriver API——第14部分Color Support

class selenium.webdriver.support.color.Color(red, green, blue, alpha=1) Bases: object Color conversion support class Example: from selenium.webdriver.support.color import Color print(Color.from_string('#00ff33').rgba) print(Color.from_string('rgb(1,

HDU 1199 - Color the Ball 离散化

[题意]现在有几个球排成一排,编号从1开始,开始时所有球为黑色,现在有n(<=2000)次操作,每次操作将l[i]至r[i](均在int范围)的球凃成颜色c[i](黑色'b'或白色'w'),然后找到最长的连续白色球,输出左右端点符号 [离散化]因为l[i]和r[i]都在int范围,显然不不可以开一个2^31-1那么大的数组.将l[i]和r[i]+1离散化,再模拟染色即可. 如果你不知道离散化: 将l[i]数组所有数与r[i]+1数组所有数取出来从小到大排序,做一个映射. 如样例 3 1 4 w

POJ 2777 Count Color(线段树+位运算)

题目链接:http://poj.org/problem?id=2777 Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L centimeter, L is a

POJ 2777 Count Color (线段树区间更新加查询)

Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L centimeter, L is a positive integer, so we can evenly d

POJ训练计划2777_Count Color(线段树/成段更新/区间染色)

解题报告 题意: 对线段染色,询问线段区间的颜色种数. 思路: 本来直接在线段树上染色,lz标记颜色.每次查询的话访问线段树,求出颜色种数.结果超时了,最坏的情况下,染色可以染到叶子节点. 换成存下区间的颜色种数,这样每次查询就不用找到叶子节点了,用按位或来处理颜色种数. #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace