textarea.textarea background:#fdfdfd url(/img/timg.gif) 80% 90%no-repeat; 背景图 位置 不重复 其中0 0代表background-position的值,表示背景图的定位,前后两个分别是横向定位和纵向定位。 左上角是 0 0。单位是像素 (0px 0px) 或任何其他的 [...]
将以下代码添加到footer.php里即可(其他网站同理,放在网站页面的页头或页脚)<!--给WordPress网站添加鼠标点击特效--> <canvas class="fireworks" style="position:fixed;left:0;top:0;z-index:99999999[...]
使用方法将以下代码-放在网站首部或页面即可<script language="javascript">alert('博客启动新域名,YunFanCH.com (原域名228**.com)')</script>
将以下代码放在主题的handsome/component/footer.php中的</body>之前即可字体自行修改<script type="text/javascript"> /* 鼠标特效 */ var a_idx = 0; jQuery(document).ready(function($) [...]
鼠标样式 CSS 代码要想要自己想要的鼠标样式可在网上找 cur 是的鼠标样式文件<style> body{cursor:url('http://wailian.oioweb.cn/down.php/423c33c9347506c3b04b0a47d1924ffe.cur'), default;} a:hover{cursor:url([...]
可以设置复制提示,禁f12,禁止调试。1、首先我们需要调用web弹层组件layer<script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/layui/2.5.6/layui.all.min.js"></scr[...]
前后加!!!强制居中就可以了!!! <center>这里放居中的内容</center> !!!加粗<center><strong>这里放居中的内容</strong></center>
第一、随机文章代码这个代码直接添加到当前主题的Functions.php文件中。本来还是有一个随机插件的,这里我考虑到需要用到当天的时间所以不去用插件。function getRandomPosts($limit = 10){ $db = Typecho_Db::get(); $result = $db->fetchAll($db->s[...]
1.将post.php中的<?php $this->content(); ?>换成<?php $db = Typecho_Db::get(); $sql = $db->select()->from('table.comments') ->where('cid = ?',$this->cid) [...]