從Internet Explorer火狐,Chrome,歌劇,Safari瀏覽器的行爲不同。見我的問題: HTML link with padding and CSS style active does not work我在哪裏報告錯誤 - Firefox或Internet Explorer?
這是不確定的行爲?或者我需要報告一個錯誤。如果以後,那麼哪個瀏覽器做對了?
下面是測試代碼:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>css active padding href problem</title>
<style type="text/css">
a{
background:#CCC;
border:1px solid #666;
padding:0 35px 0 0;
}
a:active{
padding:0 0 0 35px;
}
</style>
</head>
<body>
<div>
<p>Click on <i>Stack</i> - href does not work.
Click on <i>Overflow</i> - href works.
All browsers are affected.
Except IE.</p>
<a href="https://stackoverflow.com/">StackOverflow</a>
</div>
</body>
</html>