大佬教程收集整理的这篇文章主要介绍了css – 旋转字形/字体在Bootstrap中令人敬畏,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这是我的尝试:http://jsfiddle.net/young_greedo17/88g5P/
<div class="widgetbox"> <br><br> <div class="icon-calendar icon-large"></div> <h5>Add an event</h5> </div>
…这里是CSS:
.widgetbox { width: 250px; height: 250px; BACkground-color: black; color: white; text-align: center; } .widgetbox [class*="icon-"] { -webkit-transition-duration: 1.0s; -moz-transition-duration: 1.0s; -o-transition-duration: 1.0s; transition-duration: 1.0s; -webkit-transition-property: -webkit-transform; -moz-transition-property: -moz-transform; -o-transition-property: -o-transform; transition-property: transform; } .widgetbox:hover [class*="icon-"] { color: #24a159 !important; -webkit-transform:rotate(360deg); -moz-transform:rotate(360deg); -o-transform:rotate(360deg); transform:rotate(360deg); }
以下是我希望在悬停中发生的一个例子(请参阅四列窗口小部件ATF):http://themeforest.net/item/flatnica-ultimate-flat-template/full_screen_preview/5343665
显然,颜色发生变化,但即使这样也不会根据CSS中过渡的参数进行更改.
谢谢!
您可以将该字形显示值的need to change加到内联块.
以下是CSS Transforms Module的细节:
可变元素
>其布局由CSS框模型控制的元素,CSS框模型是块级或原子内联级元素,或者其显示属性计算到表行,表行组,表标题组,表格组,页脚组,表格单元格或表格标题[CSS21]> SVG命名空间中的一个元素,不受具有属性transform,“patternTransform”或gradientTransform [SVG11]“的CSS框模型的约束
以上是大佬教程为你收集整理的css – 旋转字形/字体在Bootstrap中令人敬畏全部内容,希望文章能够帮你解决css – 旋转字形/字体在Bootstrap中令人敬畏所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。