【发布时间】:2013-06-08 22:26:13
【问题描述】:
我在转换此元素中的 with opening 时遇到了一些问题。这是fiddle。
#control:after{
content:"R";
background-color:#333;
color:#fff;
display:inline-block;
line-height:20px;
padding:10px;
height:20px;
font-weight:bold;
-webkit-transition: width 2s linear;
-moz-transition: width 2s linear;
-ms-transition: width 2s linear;
-o-transition: width 2s linear;
transition: width 2s linear;
font-family:helvetica
}
#control:hover:after{
content: "REGGI";
width:auto;
cursor:pointer;
}
【问题讨论】:
-
在这里您可以找到一些信息,为什么即使您将
width值更改为静态,它也无法在 Chrome 上运行:stackoverflow.com/questions/7873261/…
标签: css css-transitions