在锚标签上按下任何键盘键时,轮廓偏移的变化是预期的行为吗?
在下面的演示中,在锚标记上单击并按住 mousedown,然后将光标拖离,同时按住 mousedown,最后松开单击。您将在锚标记周围看到一个红色的虚线轮廓。现在,如果您按下 shift 键,轮廓将偏移几个像素。
a:focus {
outline: 1px dotted red;
}
<a href="#">Click+hold, then release, then press shift key</a>
在下面的演示中,在锚标记上单击并按住 mousedown,然后将光标拖离,同时按住 mousedown,最后松开单击。您将在锚标记周围看到一个红色的虚线轮廓。现在,如果您按下 shift 键,轮廓将偏移几个像素。
a:focus {
outline: 1px dotted red;
}
<a href="#">Click+hold, then release, then press shift key</a>