答:已访问docx文件-在IE和Chrome中颜色不会更改

时间:2019-11-21 22:23:48

标签: html css google-chrome css-selectors docx

我有一个简单的HTML,链接在Edge和Firefox中会更改颜色,但在IE和Chrome中不会更改

尽管docx文件可能是更普遍的问题,但特别是docx文件是一个问题

这是代码

<!DOCTYPE html>
<html>
<head>
<style>
a:link{
text-decoration:none;
}
a:visited{
color:pink;
}
a:hover{
text-decoration:underline;
}
a:active{
text-decoration:underline;
}
</style>
</head>
<body>

<p>Below links open in the same tab</p>

<a href="https://www.smh.com.au">SMH</a>
<a href="https://www.wikipedia.org">Wikipedia</a>
<a href="http://www.dhs.state.il.us/OneNetLibrary/27897/documents/Initiatives/IITAA/Sample-Document.docx">Docx</a>
<a href="http://www.africau.edu/images/default/sample.pdf">pdf</a>

<p>Below links open in the new tab</p>

<a href="https://www.news.com.au" target="_blank">News</a>
<a href="https://microsoft.com" target="_blank">Microsoft</a>
<a href="https://example-files.online-convert.com/document/docx/example.docx" target="_blank">Docx</a>
<a href="https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" target="_blank">pdf</a>

<p><b>Note:</b> Unvisited links are blue.</p>
<p><b>Note:</b> Hover over will underline the links.</p>
<p><b>Note:</b> Visited links are pink.</p>

</body>
</html>

0 个答案:

没有答案