发布日期: 2022-12-05 | 来源: 智软设计工作室
<title>jQuery事件-微信的显示隐藏及鼠标的移入移出</title>
<script src="/imgjs/jquery-1.11.3.min.js"></script>
</head>
<body>
<div style="width: 230px;height: 200px;background-color: #333;position: relative;">
<div class="WeChat_code" style="position: absolute;top: 20px;left: 20px;display: none;">
<img src="WeChat_code.jpg" width="100" alt="">
<span style="display:block; border-width:5px 5px 0;border-style:solid;border-color:#fff transparent transparent;position: absolute;margin-top: -5px;margin-left: 20px;"></span>
</div>
<h5 class="jq_WeChat" style="margin:0;padding:0;position: absolute;bottom: 15px;left: 20px">
<img src="WeChat.png" width="50" alt="">
</h5>
</div>
</body>
<script type="text/javascript">
$(function (){
//合成事件 hover()
$(".jq_WeChat").hover(function (){
$(".WeChat_code").show();
},function (){
$(".WeChat_code").hide();
});
});
</script>2021-11-10
测试可用,就是要加载下js网站自动翻译成英文谷歌翻译api,怎样能打开网站默认自动翻译,设置Cookie就行了。也可以做多语言翻译。去除隐藏css选择项就行了。<style><!--隐藏长条-->.goog-te-banner-frame.skiptranslate { display: none !important;} body { top: 0px !important; }.goog-t
阅读更多2024-05-09
pbootcms实现瀑布流“ajax加载更多”“无限下拉”分页调用列表,,支持动静态,支持图片延迟加载1、页面中引用jquery.js 与 jquery-ias.min.js注意:jquery.js库版本必须大于1.6<scriptsrc='/js/jquery.js'></script><scriptsrc="/js/jquery-ias.min.js"></script>2
阅读更多2024-12-23
pbootcms 上传的图片自动转换webp下面是修改过的文件。直接替换\core\function目录里的file.php文件.rar这里就不贴修改了。
阅读更多2023-04-24
分割多行字段成为faq问答,首先先模型字段新增一个多行字段,填写内容如下,问题.答案.@问题1.答案.@@是必备的。因为要拆分二次,一个组一个@然后在,\apps\home\controller/ExtLabelController.php 目录里面添加自定义标签 (扩展标签)添加以下代码/*必备启动函数*/
阅读更多2023-07-31
{pboot:if('{content:ispics}'=='0')}{content:ico}{else}{pboot:picsnum=1id={content:id}}[pics:src]{/pboot:pics}{/pboot:if}其他得代码在去拓展
阅读更多2022-12-22
阿里云虚拟主机和阿里云云服务器phpmailer无法发邮件,提示无法链接,解决办法如下:如果是虚拟主机。进入控制面板:启用PHP函数fsockopen。如果是云服务器也要启用这个函数。和网络策略里ssl端口465
阅读更多2022-06-20
通常,为了让DIV⼦元素超出部分隐藏,都是在⽗元素设置overflow:hidden,这样即可防⽌⼦元素撑开⽗元素,使⼦元素能够溢出隐藏!但是,对于position:absolute定位的⼦元素,仅仅使⽤overflow:hidden没办法将其溢出部分隐藏,需要在⽗元素上也加上⼀个定位position:relative;才能将含有position:absolute属性的⼦元素进⾏溢出
阅读更多2021-10-18
直接写id参数当前页的{content:id}就行了。{pboot:tags id={content:id}} <a href='[tags:link]' class='tagc[field:highlight /]'>[tags:text]</a>{/pboot:tags}
阅读更多