范例:注意使用delegate
/ajax判断会员登录
$(function ($) {
var screenWidth = $(window).width();
if (screenWidth < 1024) {
在phpcms v9中我们如何做到在任意模块判断会员登录状态,并且可以静态判断会员登录状态呢?即可以用javascript判断会员的登录状态!
在phpcms v9中我们如何做到在任意模块判断会员登录状态,并且可以静态判断会员登录状态呢?即可以用javascript判断会员的登录状态!
宋体 | SimSun |
黑体 | SimHei |
微软雅黑 | Microsoft YaHei |
微软正黑体 | Microsoft JhengHei |
新宋体 | NSimSun |
新细明体 | PMingLiU |
细明体 | MingLiU |
标楷体 | DFKai-SB |
仿宋 | FangSong |
楷体 | KaiTi |
仿宋_GB2312 | FangSong_GB2312 |
楷体_GB2312 | KaiTi_GB2312 |
宋体:SimSuncss中中文字体(font-family)的英文名称
jquery距离底部100象素时层消失
有哪些 nth-child
?
:first-child
$(function(){
var SWidth = $(window).width();
if(SWidth >= 1024 ){
$("#second_nav .scroller").removeAttr("style");
有些时候,我们需要在浏览器窗口发生变化的时候,动态的执行一些操作,比如做自适应页面时的适配。这个时候,我们需要在窗口拖动的时候去执行代码。但是有些时候,执行的操作比较复杂,我们只希望在窗口拖动完毕之后,在执行代码,否则极容易造成浏览器假死状态,这个时候该如何解决呢。
font-face是现在比较流行的技术,可以矢量化你的图标,更改颜色方便等等。
今晚有网友问到font-face跨域在nginx下如何配置,印象中一淘UX有文章介绍办法,但打开文章里面相应的链接后发现没内容。
搜了一下其他地方,大多数给出的都是一样的链接。
举例:
.info_list li .picture img{position: absolute; top: 50%; transform: translate(-50%, -50%) scale3d(1,1,1); left: 50%;}
.info_list li .picture img:hover{transform: translate(-50%, -50%) scale3d(1.1,1.1,1);}
MySQL/MariaDB SQL单表个别字段ID查询
1 | select * from table where id in (1,3,5,7,9) |
$(function(){
var lefttoolH = $("#lefttool .left-stick-wp").offset().top;
$(window).scroll(function(){
var scroH = $(this).scrollTop();
phpcms v9虽然广告模块设置禁止统计,但是还是会想数据库中写入很多V9_Poster_201810之类的数据表,导致数据库表太多,取消方法如下:
打开phpcms/modules/poster/index.php,找到
public function poster_click()
注销以下代码:
if($id) {
$siteid = isset($_GET['siteid']) ? intval($_GET['siteid']) : get_siteid();
1. 修改文件:
\phpcms\templates\default\content\header.html
在上面添加2行代码:
打开评论页面模板show_list.html
评论框头像显示方法,注意红色代码
{if $userid}
{php $meminfo=get_memberinfo_buyusername($username);$userimg=$meminfo['userid']}
找到 /phpsso_server/phpcms/modules/phpsso/index.php
/**
* 上传头像处理
* 传入头像压缩包,解压到指定文件夹后删除非图片文件
*/
删除下面的代码
\phpcms\modules\member\index.php 查找“//判断验证码”下面4行代码:
打开 phpcms\modules\admin\templates\index.tpl.php
<< 向左走,向右走 >>