Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.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 目标::处于:悬停状态后_Html_Css - Fatal编程技术网

Html 目标::处于:悬停状态后

Html 目标::处于:悬停状态后,html,css,Html,Css,如何将::after元素定位在:hover上 <button class="panel-watch"> Watch online ::after </button> 我只想重新调整html/css以更好地适应,但它是这样开箱即用的。删除以下之间的空格: button.panel-watch:hover::after {} 悬停和之间的空格:之后表示选择器正在查找按钮的子元素。面板监视之间不要留空格选择器:悬停::after应该可以工作。 button.panel-w

如何将::after元素定位在:hover上

<button class="panel-watch">
Watch online
::after
</button>

我只想重新调整html/css以更好地适应,但它是这样开箱即用的。

删除以下之间的空格:

button.panel-watch:hover::after {}


悬停
之间的空格:
之后表示选择器正在查找
按钮的子元素。面板监视

之间不要留空格<代码>选择器:悬停::after应该可以工作。
button.panel-watch:hover::after {}