首页 > 软件开发 > JQUERY >

jquery鼠标移动到热点区域给对应的提示

来源:互联网 2023-03-16 23:54:48 302

jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

工具/原料

  • adobe dreamweaver

方法/步骤

  • 1

    准备好需要用到的图标。2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

  • 1相关内容未经授权抓取自百度经验
  • 2

    新建html文档。2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

  • 3

    书写hmtl代码。2jF办公区 - 实用经验教程分享!

    div class="container" id="container1">2jF办公区 - 实用经验教程分享!

    h2>鼠标悬停在热点处,3D立体展现说明效果/h2>2jF办公区 - 实用经验教程分享!

    div class="popover right pop1" data-easein="cardInRight" data-easeout="cardOutRight" id="pop1">2jF办公区 - 实用经验教程分享!

    div class="arrow">/div>2jF办公区 - 实用经验教程分享!

    div class="popover-inner">2jF办公区 - 实用经验教程分享!

    h3 class="popover-title">Embed a image as youu like/h3>2jF办公区 - 实用经验教程分享!

    div class="popover-content"> img src="images/flower_small.jpg" alt="small" />2jF办公区 - 实用经验教程分享!

    HTML content here. Change the position and size via CSS./2jF办公区 - 实用经验教程分享!

    a href="#">查看这里/a>/2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    div class="popover top pop2" data-easein="cardInTop" data-easeout="cardOutTop" id="pop2">2jF办公区 - 实用经验教程分享!

    div class="arrow">/div>2jF办公区 - 实用经验教程分享!

    div class="popover-inner">2jF办公区 - 实用经验教程分享!

    h3 class="popover-title">a href="#">查看这里/a>/h3>2jF办公区 - 实用经验教程分享!

    div class="popover-content">2jF办公区 - 实用经验教程分享!

    对就是这里,详细描述/2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    div class="popover left pop3" data-easein="cardInLeft" data-easeout="cardOutLeft" id="pop3">2jF办公区 - 实用经验教程分享!

    div class="arrow">/div>2jF办公区 - 实用经验教程分享!

    div class="popover-inner">2jF办公区 - 实用经验教程分享!

    h3 class="popover-title">Popover title/h3>2jF办公区 - 实用经验教程分享!

    div class="popover-content">2jF办公区 - 实用经验教程分享!

    对就是这里,详细描述/2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    div class="popover bottom pop4" data-easein="cardInBottom" data-easeout="cardOutBottom" id="pop4">2jF办公区 - 实用经验教程分享!

    div class="arrow">/div>2jF办公区 - 实用经验教程分享!

    div class="popover-inner">2jF办公区 - 实用经验教程分享!

    h3 class="popover-title">Yet another title/h3>2jF办公区 - 实用经验教程分享!

    div class="popover-content">2jF办公区 - 实用经验教程分享!

    对就是这里,详细描述/2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    /div>2jF办公区 - 实用经验教程分享!

    img src="images/arrow1.png" alt="info" class="info-icon info-icon1" data-target="pop1" />2jF办公区 - 实用经验教程分享!

    img src="images/arrow1.png" alt="info" class="info-icon info-icon2" data-target="pop2" />2jF办公区 - 实用经验教程分享!

    img src="images/arrow1.png" alt="info" class="info-icon info-icon3" data-target="pop3" />2jF办公区 - 实用经验教程分享!

    img src="images/arrow1.png" alt="info" class="info-icon info-icon4" data-target="pop4" />2jF办公区 - 实用经验教程分享!

    img src="images/flower.jpg" alt="" class="largeimage">/div>2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

  • 4

    初始化css代码。2jF办公区 - 实用经验教程分享!

    style>2jF办公区 - 实用经验教程分享!

    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }2jF办公区 - 实用经验教程分享!

    article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }2jF办公区 - 实用经验教程分享!

    body { line-height: 1; }2jF办公区 - 实用经验教程分享!

    ol, ul { list-style: none; }2jF办公区 - 实用经验教程分享!

    blockquote, q { quotes: none; }2jF办公区 - 实用经验教程分享!

    blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }2jF办公区 - 实用经验教程分享!

    table { border-collapse: collapse; border-spacing: 0; }2jF办公区 - 实用经验教程分享!

    /style>2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

  • 5

    书写css代码。2jF办公区 - 实用经验教程分享!

    body { font: 13px/20px "Lucida Grande", Tahoma, Verdana, sans-serif; color: #404040; background: #cccccc; background-image: -radial-gradient(center, circle cover, #efefef, #cccccc); background-image: -moz-radial-gradient(center, circle cover, #efefef, #cccccc); background-image: -o-radial-gradient(center, circle cover, #efefef, #cccccc); background-image: radial-gradient(center, circle cover, #efefef, #cccccc); }2jF办公区 - 实用经验教程分享!

    a, a:visited { color: #0088cc; text-decoration: none; }2jF办公区 - 实用经验教程分享!

    a:hover { color: #005580; text-decoration: underline; }2jF办公区 - 实用经验教程分享!

    h2 { margin: 12px auto; }2jF办公区 - 实用经验教程分享!

    .container { position: relative; margin: 40px auto 50px auto; width: 900px; padding: 0; text-align: center; }2jF办公区 - 实用经验教程分享!

    .largeimage { position: relative; z-index: 1000; }2jF办公区 - 实用经验教程分享!

    img.info-icon { cursor: pointer; z-index: 1001; }2jF办公区 - 实用经验教程分享!

    #container1 .info-icon1 { position: absolute; top: 210px; left: 288px; }2jF办公区 - 实用经验教程分享!

    #container1 .info-icon2 { position: absolute; top: 265px; left: 576px; }2jF办公区 - 实用经验教程分享!

    #container1 .info-icon3 { position: absolute; top: 280px; left: 220px; }2jF办公区 - 实用经验教程分享!

    #container1 .info-icon4 { position: absolute; top: 54px; left: 520px; }2jF办公区 - 实用经验教程分享!

    #container2 .info-icon1 { position: absolute; top: 170px; left: 223px; }2jF办公区 - 实用经验教程分享!

    #container2 .info-icon2 { position: absolute; top: 340px; left: 644px; }2jF办公区 - 实用经验教程分享!

    #container2 .info-icon3 { position: absolute; top: 363px; left: 370px; }2jF办公区 - 实用经验教程分享!

    #container2 .info-icon4 { position: absolute; top: 140px; left: 530px; }2jF办公区 - 实用经验教程分享!

    .popover { position: absolute; z-index: 1010; opacity: 0; display: none; width: 236px; /*height: 200px;*/2jF办公区 - 实用经验教程分享!

    padding: 1px; text-align: left; white-space: normal; background-color: #ffffff; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.2); -border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; }2jF办公区 - 实用经验教程分享!

    #pop1 { position: absolute; width: 403px; top: 50px; left: 313px; }2jF办公区 - 实用经验教程分享!

    #pop2 { position: absolute; top: 125px; left: 468px; }2jF办公区 - 实用经验教程分享!

    #pop3 { position: absolute; top: 224px; left: -22px; }2jF办公区 - 实用经验教程分享!

    #pop4 { position: absolute; top: 80px; left: 412px; }2jF办公区 - 实用经验教程分享!

    #pop5 { position: absolute; top: 30px; left: 115px; }2jF办公区 - 实用经验教程分享!

    #pop6 { position: absolute; top: 284px; left: 670px; }2jF办公区 - 实用经验教程分享!

    #pop7 { position: absolute; top: 306px; left: 127px; }2jF办公区 - 实用经验教程分享!

    #pop8 { position: absolute; top: 166px; left: 422px; }2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

  • 6

    代码整体结构。2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

  • 7

    查看效果。2jF办公区 - 实用经验教程分享!

    jquery鼠标移动到热点区域给对应的提示2jF办公区 - 实用经验教程分享!

  • 以上方法由办公区教程网编辑摘抄自百度经验可供大家参考!2jF办公区 - 实用经验教程分享!


    标签: JQUERY

    办公区 Copyright © 2016-2023 www.bgqu.net. Some Rights Reserved. 备案号:湘ICP备2020019561号统计代码