/*基本样式*/ .ro{ display:inline-block; position:relative; } .elf-bg1{ display:inline-block; } .elf-bg2{ display:none; } .elf{ position:absolute; top:5px; left:0; } .elf-name{ position:absolute; font-family:Arial; font-weight:bold; bottom: -2px; left: 0; right: 0; font-size: 0.9rem; text-align: center; } /*悬浮事件*/ .ro:hover .elf-bg1{display:none;} .ro:hover .elf-bg2{display:inline-block;} /* [[Category:在模板名字空间下的CSS页面]] */