Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.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或Greasemonkey到<;中的目标标题元素;a>;要素_Html_Css_Greasemonkey - Fatal编程技术网

Html CSS或Greasemonkey到<;中的目标标题元素;a>;要素

Html CSS或Greasemonkey到<;中的目标标题元素;a>;要素,html,css,greasemonkey,Html,Css,Greasemonkey,我一直在使用Greasemonkey成功地打开访问的链接 以下是成功的: // @match http*://www.udemy.com/* // @run-at document-start // @grant GM_addStyle // ==/UserScript== GM_addStyle ( " a:visited, .fl:visited { color: #CC0000 !important ;} " ); 但是Udemy更改

我一直在使用Greasemonkey成功地打开访问的链接

以下是成功的:

// @match         http*://www.udemy.com/*
// @run-at        document-start
// @grant         GM_addStyle
// ==/UserScript==
GM_addStyle ( " a:visited, .fl:visited { color: #CC0000 !important ;}     " );
但是Udemy更改了页面,现在我想在访问后变为红色的标题如下所示:

<div class="card__head"> 
<a class="card__title" ng-href="/essential-cooking-skills/" ng-click="track('course-title')" href="/essential-cooking-skills/"> 
    <h1 ng-bind-html="::course.title">Essential Cooking Skills</h1>
</a> 


我尝试使用
a.card\uu title来定位a标记中的h1。h1:visted
,但这似乎不起作用。有什么想法吗?

a.card\uu title:访问了h1
谢谢@wOxxOm,效果非常好。