有没有办法在Comodo徽标中为IMG设置ALT或为LINK设置TITLE?

时间:2019-06-19 01:21:08

标签: javascript lighthouse

我知道这很琐碎,但是-如果您在Chrome中使用LightHouse进行审核,则不喜欢您使用不带“ alt”标签或链接名称的comodo徽标。有没有添加alt标签或链接标题的方法?我尝试使用-

image.setAttribute("alt","alt_title_tag");

<head>
<script type="text/javascript"> //<![CDATA[ 
var tlJsHost = ((window.location.protocol == "https:") ? 
"https://secure.trust-provider.com/" : "http://www.trustlogo.com/");
document.write(unescape("%3Cscript src='" + tlJsHost + 
"trustlogo/javascript/trustlogo.js' 
type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>
</head>

<body>
<script language="JavaScript" type="text/javascript"> TrustLogo("https://www.yourdomain.com/images/comodo_secure_seal_113x59_transp.png", "CL1", "none");````
</script>
<a href="https://ssl.comodo.com" id="comodoTL">SSL Certificates</a>
</body>    

错误:图像元素没有[alt]属性/链接没有可分辨的名称。

0 个答案:

没有答案