为什么Google Chrome inspector会向随机html元素添加奇怪的id属性?
我在本地主机上运行了以下页面:为什么Google Chrome inspector会向随机html元素添加奇怪的id属性?,html,google-chrome,localhost,Html,Google Chrome,Localhost,我在本地主机上运行了以下页面: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Times</title> <style type="text/css" media="screen"> input{font:1.5em/1.1em sans-serif;padding:0.25em;} </style>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Times</title>
<style type="text/css" media="screen">
input{font:1.5em/1.1em sans-serif;padding:0.25em;}
</style>
</head>
<body>
<p>
<input type="date" />
</p>
<p>
<input type="time" />
</p>
<p>
<input type="datetime" />
</p>
</body>
</html>
时代
输入{字体:1.5em/1.1em无衬线;填充:0.25em;}
当我在Chrome中查看页面并查看inspector时,我注意到在三个元素中添加了一些id属性:
有人知道为什么吗?Chrome Inspector没有添加这些属性。这表明有别的东西增加了它们 几乎可以肯定,这是您安装的一个扩展。也许这个:
禁用扩展(@
chrome://extensions
)或在Incognito窗口中查看您的页面(当然,假设您没有在Incognito中启用扩展),然后再看一眼。是的。这是DoNotTrackMe分机()。谢谢