CSS CSS诊断 - 使用CSS查找折旧元素

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS CSS诊断 - 使用CSS查找折旧元素相关的知识,希望对你有一定的参考价值。

/* Depreciated Elements */
applet, basefont, center, dir, font, isindex, menu, s, strike, u { border: 5px dotted red !important; }

/* Depreciated Attributes */
*[background], *[bgcolor], *[clear], *[color], *[compact], *[noshade], *[nowrap], *[size], *[start], 
*[bottommargin], *[leftmargin], *[rightmargin], *[topmargin], *[marginheight], *[marginwidth], *[alink], *[link], *[text], *[vlink],
*[align], *[valign],
*[hspace], *[vspace],
*[height], *[width],
ul[type], ol[type], li[type]
{ border: 5px solid red !important; }


/* Empty Elements */
div:empty, span:empty, li:empty, p:empty, td:empty, th:empty { padding: 20px; border: 5px dotted orange !important; }

/* Empty Attributes */
*[alt=""], *[title=""], *[class=""], *[id=""], a[href=""], a[href="#"] { border: 5px solid orange !important; }


/* Proposed Depreciated Elements */
input[type="button"], big, tt { border: 5px dotted yellow !important; }

/* Proposed Depreciated Attributes */
*[border], a[target], table[cellpadding], table[cellspacing], a[name], form[name] { border: 5px solid yellow !important; }

以上是关于CSS CSS诊断 - 使用CSS查找折旧元素的主要内容,如果未能解决你的问题,请参考以下文章

CSS CSS诊断 - 使用CSS及更多内容突出显示不推荐使用的HTML ...

在使用 Selenium 的某些元素之后通过 CSS 选择器查找元素

WebDriverWait 通过 CSS 选择器查找元素

使用 Selenium 提取元素的 CSS 选择器

css CSS:诊断

CSS CSS诊断