<tfoot id='W11d6'></tfoot>
    • <bdo id='W11d6'></bdo><ul id='W11d6'></ul>

      <small id='W11d6'></small><noframes id='W11d6'>

      <i id='W11d6'><tr id='W11d6'><dt id='W11d6'><q id='W11d6'><span id='W11d6'><b id='W11d6'><form id='W11d6'><ins id='W11d6'></ins><ul id='W11d6'></ul><sub id='W11d6'></sub></form><legend id='W11d6'></legend><bdo id='W11d6'><pre id='W11d6'><center id='W11d6'></center></pre></bdo></b><th id='W11d6'></th></span></q></dt></tr></i><div id='W11d6'><tfoot id='W11d6'></tfoot><dl id='W11d6'><fieldset id='W11d6'></fieldset></dl></div>
    1. <legend id='W11d6'><style id='W11d6'><dir id='W11d6'><q id='W11d6'></q></dir></style></legend>

        悬停时旋转或旋转图像

        Spin or rotate an image on hover(悬停时旋转或旋转图像)
      1. <i id='ocVlS'><tr id='ocVlS'><dt id='ocVlS'><q id='ocVlS'><span id='ocVlS'><b id='ocVlS'><form id='ocVlS'><ins id='ocVlS'></ins><ul id='ocVlS'></ul><sub id='ocVlS'></sub></form><legend id='ocVlS'></legend><bdo id='ocVlS'><pre id='ocVlS'><center id='ocVlS'></center></pre></bdo></b><th id='ocVlS'></th></span></q></dt></tr></i><div id='ocVlS'><tfoot id='ocVlS'></tfoot><dl id='ocVlS'><fieldset id='ocVlS'></fieldset></dl></div>
      2. <small id='ocVlS'></small><noframes id='ocVlS'>

                <tbody id='ocVlS'></tbody>
            1. <tfoot id='ocVlS'></tfoot>

              <legend id='ocVlS'><style id='ocVlS'><dir id='ocVlS'><q id='ocVlS'></q></dir></style></legend>

                  <bdo id='ocVlS'></bdo><ul id='ocVlS'></ul>
                  本文介绍了悬停时旋转或旋转图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想了解如何在悬停时制作旋转或旋转图像.我想知道如何在以下代码中使用 CSS 模拟该功能:

                  img {边界半径:50%;}

                  <img src="http://i.imgur.com/3DWAbmN.jpg"/>

                  解决方案

                  您可以使用 CSS3 过渡和 rotate()在悬停时旋转图像.

                  旋转图片:

                  img {过渡:转换 .7s 缓进出;}图像:悬停{变换:旋转(360度);}

                  <img src="https://i.stack.imgur.com/BLkKe.jpg" width="100" height="100"/>

                  这是一个小提琴DEMO


                  更多信息和参考:

                  • MDN 上的 CSS 过渡指南
                  • MDN
                  • caniuse.com
                  • 上的 2d 转换浏览器支持表
                  • caniuse.com
                  • 上的过渡浏览器支持表

                  I want to find out how to make a spinning or rotating image when it is hovered. I would like to know how to emulate that functionality with CSS on the following code :

                  img {
                    border-radius: 50%;
                  }

                  <img src="http://i.imgur.com/3DWAbmN.jpg" />

                  解决方案

                  You can use CSS3 transitions with rotate() to spin the image on hover.

                  Rotating image :

                  img {
                    transition: transform .7s ease-in-out;
                  }
                  img:hover {
                    transform: rotate(360deg);
                  }

                  <img src="https://i.stack.imgur.com/BLkKe.jpg" width="100" height="100"/>

                  Here is a fiddle DEMO


                  More info and references :

                  • a guide about CSS transitions on MDN
                  • a guide about CSS transforms on MDN
                  • browser support table for 2d transforms on caniuse.com
                  • browser support table for transitions on caniuse.com

                  这篇关于悬停时旋转或旋转图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to apply gradient color in chart.js?(如何在 chart.js 中应用渐变颜色?)
                  Side effects from Chartjs for only *some* clients(Chartjs 的副作用仅适用于 *一些* 客户)
                  Chart js different background for y axis(图表 js y 轴的不同背景)
                  Chart js. How to change font styles for quot;labelsquot; array?(图表 js.如何更改“标签的字体样式大批?)
                  CSS lighten child elements on parent mouseover(CSS减轻父鼠标悬停的子元素)
                  jQuery image hover color overlay(jQuery图像悬停颜色叠加)
                  <legend id='lIsKo'><style id='lIsKo'><dir id='lIsKo'><q id='lIsKo'></q></dir></style></legend>

                    <tbody id='lIsKo'></tbody>
                • <tfoot id='lIsKo'></tfoot>

                          • <bdo id='lIsKo'></bdo><ul id='lIsKo'></ul>
                          • <i id='lIsKo'><tr id='lIsKo'><dt id='lIsKo'><q id='lIsKo'><span id='lIsKo'><b id='lIsKo'><form id='lIsKo'><ins id='lIsKo'></ins><ul id='lIsKo'></ul><sub id='lIsKo'></sub></form><legend id='lIsKo'></legend><bdo id='lIsKo'><pre id='lIsKo'><center id='lIsKo'></center></pre></bdo></b><th id='lIsKo'></th></span></q></dt></tr></i><div id='lIsKo'><tfoot id='lIsKo'></tfoot><dl id='lIsKo'><fieldset id='lIsKo'></fieldset></dl></div>
                          • <small id='lIsKo'></small><noframes id='lIsKo'>