首页 > 其他分享 >jq点击弹窗出现对应的内容图片标题

jq点击弹窗出现对应的内容图片标题

时间:2024-01-24 17:13:21浏览次数:21  
标签:hide title jq pop 点击 let abt26btcclose 弹窗 abt26btcbg

html                                   <div class="swiper-slide store_item store_bg border20 tab_btn"                                     data-img="static/demo/chuneng/cngypro2.png" data-title="20尺液冷集装箱(单/双开门)">                                     <textarea style="display: none;" class="datacontent">                                         <p>111</p>                                         <p>2222</p>                                     </textarea>                                     <textarea style="display: none;" class="datatable">                                         <div class="pipeline_tab">                                             <table border="0" cellspacing="0">                                                 <tr>                                                     <td colspan="2">11</td>                                                 </tr>                                                 <tr class="pipeline_tr1">                                                     <td colspan="2">222</td>                                                 </tr>                                              </td>                                                 </tr>                                                 <tr>                                                     <td>PACK 箱防护等级</td>                                                     <td>IP65</td>                                                 </tr>                                                 <tr>                                                                                       <tr>                                                     <td>通讯方式</td>                                                     <td>CAN/RS485/LAN</td>                                                 </tr>                                                                                                         <!-- rowspan=""竖合并 -->                                                 <!-- colspan=""横合并 -->                                             </table>                                         </div>                                     </textarea>                                     <ul class="store_ul1">                                         <h4 class="store_h4">20尺液冷集装箱(单/双开门)</h4>                                         <p class="store_p1">选⽤热稳定性⾼的磷酸铁锂体系电芯</p>                                         <p class="store_p1">IP54防护等级,满⾜⼾外应⽤需求</p>                                         <p class="store_p1">C5防腐,满⾜15年使⽤需求</p>                                         <p class="store_p1">预防为主的多级消防策略</p>                                         <!--<p class="store_p1">选⽤协鑫⾃有的先进电极材料</p>-->                                         <p class="ab7bp7 esgd_p3 esgd_p33">                                             <a href="javascript:;" class="pubmore pubmore-fff ">                                                 <span class="pwz">                                                     <span class="pwz1">探索更多</span>                                                     <span class="pwz2">探索更多</span>                                                 </span>                                                 <span class="psvg">
                                                    <svg class="svg-fff svg-1" focusable="false" aria-hidden="true"                                                         viewBox="0 0 30 30">                                                         <path fill-rule="evenodd" clip-rule="evenodd"                                                             d="M29.9995 29L29.9995 0.999451L29.9995 -0.000549316H28.9995H0.999527L0.999528 1.99945L26.5864 1.99945L0.292969 28.2928L1.70718 29.7071L27.9995 3.41471L27.9995 29H29.9995Z">                                                         </path>                                                     </svg>                                                     <svg class="svg-000 svg-2" focusable="false" aria-hidden="true"                                                         viewBox="0 0 30 30">                                                         <path fill-rule="evenodd" clip-rule="evenodd"                                                             d="M29.9995 29L29.9995 0.999451L29.9995 -0.000549316H28.9995H0.999527L0.999528 1.99945L26.5864 1.99945L0.292969 28.2928L1.70718 29.7071L27.9995 3.41471L27.9995 29H29.9995Z">                                                         </path>                                                     </svg>                                                 </span>                                             </a>                                         </p>                                     </ul>                                     <ul class="store_ul2">                                         <img src="static/demo/chuneng/cngypro2.png?v1" />                                     </ul>                                 </div>       <!-- 弹窗 -->     <div class="abt26btc">         <div class="tab_main">             <div class="pro_stolist">                 <ul class="stolist_ul1">                     <!-- 图片 -->                     <img class="pop_src" src="" alt="">                 </ul>                 <ul class="stolist_ul2">                     <!-- 标题 -->                     <h4 class="store_h4 pop_title"></h4>                     <!-- 内容 -->                     <div class="pop_con1"></div>                 </ul>             </div>             <!-- 表格 -->             <div class="pop_table"></div>         </div>         <span class="abt26btcclose"></span>     </div>     <div class="abt26btcbg"></div>   css .abt26btcbg {     position: fixed;     left: 0;     top: 0;     width: 100%;     height: 100vh;     z-index: 3000;     background: #000;     opacity: 0.5;     display: none; }
.abt26btc {     position: fixed;     left: 50%;     top: 50%;     transform: translate(-50%, -50%);     z-index: 3100;     display: none;     height: 900px;     width: 80%;     max-width: 1200px;     overflow-y: scroll;     padding: 100px 0; }
.abt26btcclose {     width: 40px;     height: 40px;     position: absolute;     top: 150px;     right: 80px;     background: url(../img/close.png) center no-repeat;     background-size: cover;     z-index: 3200;     display: none; }   js         showpop();         function showpop() {
            $('.tab_btn').click(function () {                 $('.abt26btc').show();                 $('.abt26btcbg').show();                 $('.abt26btcclose').show();                 // 标题                 let title = $(this).data("title");                 $('.pop_title').text(title)                 // 内容                 let con1 = $('.datacontent').val();                 $('.pop_con1').html(con1)                 //表格                 let table = $('.datatable').val();                 $('.pop_table').html(table);                 // 图                 let imgSrc = $(this).data("img");                 $('.pop_src').attr('src', imgSrc);
            })             $('.abt26btcclose').click(function () {                 $('.abt26btc').hide();                 $('.abt26btcbg').hide();                 $('.abt26btcclose').hide();             })             $('.abt26btcbg').click(function () {                 $('.abt26btc').hide();                 $('.abt26btcbg').hide();                 $('.abt26btcclose').hide();             })         }

标签:hide,title,jq,pop,点击,let,abt26btcclose,弹窗,abt26btcbg
From: https://www.cnblogs.com/yangcaicai/p/17985075

相关文章

  • 聊天框 点击enter发送信息,ctrl+enter换行
    <textarea@blur="handleBlur"@focus="handleOnfocus"@keydown.enter.prevent="handleEnter($event)"//keydown才有默认换行,keyup没有,因此stop和prevent要对keydown使用v-model=&quo......
  • dotnet wpf 点击事件
    secs_wpf\MainWindow.xaml.csusingSystem.Text;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Windows.Documents;usingSystem.Windows.Input;usingSystem.Windows.Media;usingSystem.Windows.Media.Imaging;usi......
  • [element-ui] table表格点击单元格,单元格改变背景色
     <el-table:data="tableData"border@cell-click="cellclick":cell-style="tableCellStyle"></el-table>data(){row:'',column:''}cellclick(row,column,cell......
  • vue-helper 点击跳转插件 在 methods里面互相调用函数,会产生两个函数definitions ,然后
    vue-helper点击跳转插件在methods里面互相调用函数,会产生两个函数definitions,然后就回弹出框让你选择原因:换了台电脑,又从新配置下vscode"editor.gotoLocation.multipleTypeDefinitions":"goto","editor.gotoLocation.multipleReferences":"goto","editor.got......
  • jquery
    jQuery简介:使用脚本标签导入jQuery库。对jQuery的基本了解,其中$代表jQuery。CSS选择器:使用CSS选择器如.li3、.li3+li和.li3~li。演示如何使用这些选择器为特定元素应用样式。jQuery事件绑定:使用jQuery绑定事件,如click事件。将jQuery事件绑定与原生JavaScript事......
  • Godot中鼠标点击3D对象
    Godot中鼠标点击3D对象方法一:调用RigidBody3D中的input_event事件RigidBody3D中有信号input_event可以接受鼠标的输入,用这个信号可以处理点击事件。 具体用法如下:新建一个demo场景连接上信号input_event代码如下:判断是否有鼠标点击事件即可。 publicvoid_on_rig......
  • 监听iframe中的鼠标点击事件
    <iframeid="iframe1"frameborder="0"name="iframe1"scrolling="no"src="https://www.baidu.com"><p>你的浏览器不支持iframes.</p></iframe>varIframeOnClick={resolution......
  • 【.NET 5.0】WPF使用弹窗选择文件和文件夹
    一开始使用下面方法调起文件夹窗,始终提示System.Windows.Forms这个命名空间无法引入.//选择文件夹System.Windows.Forms.FolderBrowserDialogFolderBrowserDialog=newSystem.Windows.Forms.FolderBrowserDialog();if(FolderBrowserDialog.ShowDialog()==System.Win......
  • python pyqt6 颜色弹窗 QColorDialog
     defsetColor(self):#避免窗口置顶后,Dialog被主窗口覆盖,所以需要传递self#设定默认颜色使用getColor的第一个参数(使用setCurrentColor不生效)#"选择颜色"为Dialog弹窗的标题#设定QColorDialog.ColorDialogOption.ShowAlphaChanne......
  • 【Vue】vite+vue3 如何实现点击进入详情页/文章页
    如上图,点击标题可以进入详情页,关键代码截图如下:然后去配置路由那么组件如何从地址中接收参数呢......