昆明网站建设哪家比较,青岛seo服务,免费网络推广方式,易语言怎么做点击按钮打开网站一、实现效果 
当鼠标滑过方块的时候#xff0c;方块的状态就会发生如下图所示的变化#xff0c;同理当鼠标滑到其他的方块也会发生同样的效果#xff0c;不仅大小会改变同时方块的颜色也会跟着发生变化#xff1a; 二、代码实现 
!DOCTYPE html
htmlh…一、实现效果 
当鼠标滑过方块的时候方块的状态就会发生如下图所示的变化同理当鼠标滑到其他的方块也会发生同样的效果不仅大小会改变同时方块的颜色也会跟着发生变化 二、代码实现 
!DOCTYPE html
htmlheadmeta charsetutf-8title/titlestyle* {padding: 0;margin: 0;}img {border: none;display: block;}#box {width: 839px;height: 100px;margin: 100px auto;padding: 20px;border-radius: 20px;background-color: #1C4C72;}#box ul {position: relative;height: 100px;}#box ul li {width: 100px;height: 100px;border: 1px solid #000;float: left;list-style: none;border-left: 0;overflow: hidden;position: relative;}#box ul li.ac {width: 434px;}#box ul li .left {font-size: 14px;width: 100px;height: 100px;background-color: #fff;cursor: pointer;}#box ul li div.ac {background: orange;}#box ul li div:last-child {border-left: 1px solid #ddd;position: absolute;width: 334px;height: 100px;background: blue;top: 0;left: 100px;z-index: 0;box-sizing: border-box;}#box ul li img {width: 334px;height: 138px;}#box ul li.last {position: absolute;top: 0;right: 0;}/stylescript srcstatic/js/jquery-1.11.3.js/script/headbodydiv idboxulli classacdiv classleft ac111/divdivimg srcstatic/imgs/image01_pd2x.png alt/div/lilidiv classleft22/divdivimg srcstatic/imgs/image02_con2x.png alt/div/lilidiv classleft33/divdivimg srcstatic/imgs/image_about2x.png alt/div/lilidiv classleft44/divdivimg srcstatic/imgs/image2_about2x.png alt/div/lili classlastdiv classleft55/divdivimg srcstatic/imgs/image03_con2x.png alt/div/li/ul/divscript$(function() {$(#box).find(li).mouseover(function() {$(this).stop().animate({width: 434px}, 800).children(div).addClass(ac).end().siblings().stop().animate({width: 100px}, 800).children(div).removeClass(ac);});});/script/body
/htmlps注意一定要引入jq文件哦~ 
完成