HTML代码1<div id='div1'>>>>鼠标移入此行会缓慢向右路移动<<<</div> CSS代码123456789#div1 { -webkit-transition: margin-left .8s; -moz-transition: margin-left .8s; -o-transition: margin-left .8s; }#div1:hover { margin-left: 5px;} PS.来源:鼠标移入文字上向右移动效果 - Crazy丶迷恋 - 博客园