以下代码可以实现一个目的: 左侧是不同的项目列表, 右侧是展示不同项目的图片,鼠标移动到左侧的项目列表文字上,右侧的图片变换成对应的图片展示,淡入淡出的转场效果。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>右侧图片随左侧鼠标经过不同项目而改变</title>
<style type="text/css">
.aa01{
width:1050px; height:500px;overflow:hidden;margin:0 auto; margin-top:60px;}
.aa02{
width:200px; height:500px;float:left; display:inline-block;background-color:#468EFF;text-align: center; }
.aa02_1 {
cursor: pointer;width:100%;height:100px;text-align:center;line-height:100px;font-family: "微软雅黑";font-size: 26px; padding: