Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
免责声明:显然没有充分的理由这样做。如果您希望自己<a>“可移动”,请将其粘贴在<div>.
<a>
<div>
但我想知道它是否记录在任何地方(以及是否提供了原因)关于这种行为。
小提琴:http: //jsfiddle.net/rBYuT/
adisplay: inline默认情况下。翻译不能应用于内联元素:
a
display: inline
http://jsfiddle.net/rBYuT/1/
显然这也是一个错误:http: //jsfiddle.net/Calou/PTkCE/
根据规范,transform 应该适用于内联元素和块元素。
http://www.w3.org/TR/css3-2d-transforms/#transform-property