Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 为父级和子级进行CSS转换,无延迟_Html_Css - Fatal编程技术网

Html 为父级和子级进行CSS转换,无延迟

Html 为父级和子级进行CSS转换,无延迟,html,css,Html,Css,我有以下代码 a{ 颜色:#F00; 过渡:均为0.5s; } a:悬停{ 颜色:#FF0; } a:我停下来{ 右边距:10px; } a我{ 过渡:均为0.5s; } 尝试在内部元素上仅设置边距过渡: a{ 颜色:#F00; 过渡:均为0.5s; } a:悬停{ 颜色:#FF0; } a:我停下来{ 右边距:10px; } a我{ 过渡:裕度0.5s; } 我看不到任何延迟,两个转换对我来说都是在同一时间发生的。在这里,两个转换都是同时发生的……我已将代码段更新为“模拟”FontAwes

我有以下代码

a{
颜色:#F00;
过渡:均为0.5s;
}
a:悬停{
颜色:#FF0;
}
a:我停下来{
右边距:10px;
}
a我{
过渡:均为0.5s;
}

尝试在内部元素上仅设置
边距
过渡:

a{
颜色:#F00;
过渡:均为0.5s;
}
a:悬停{
颜色:#FF0;
}
a:我停下来{
右边距:10px;
}
a我{
过渡:裕度0.5s;
}

我看不到任何延迟,两个转换对我来说都是在同一时间发生的。在这里,两个转换都是同时发生的……我已将代码段更新为“模拟”FontAwesome库-现在您可以看到延迟:)