求解这几段代码是什么意思??

.xbs_7{background:no-repeat0100%;}.xbs_7.title{padding-left:0;padding-right:10px;back... .xbs_7 { background: no-repeat 0 100%; }
.xbs_7 .title { padding-left: 0; padding-right: 10px; background: no-repeat 100% 0; text-align:center;float:none;}
.xbs_7 .titletext { padding-left: 10px; background: no-repeat 0 0; text-align:center; text-align:center;}
.move-span .title .titletext{float:none;}
.xbs_7 .dxb_bc { padding-bottom: 6px; background: transparent no-repeat 100% 100%; }
.xbs_7 .module, .xbs .portal_block_summary { padding: 10px 10px 4px; border-width: 0px; }

-------------------------------------------------------------------------------------------

$_G['forum'][description]

-------------------------------------------------------------------------------------------

$space['olmonth'] = DB::result_first("SELECT thismonth FROM ".DB::table('common_onlinetime')." WHERE uid='$space[uid]'");
$space['olmonth_hours'] = $space['olmonth'] ? ($space['olmonth'] /60) : "";

--------------------------------------------------------------------------------------------

<!--{if $space[olmonth_hours]}--><li><em>online</em>{$space[olmonth_hours]} {lang hours}</li><!--{/if}-->

---------------------------------------------------------------------------------------------

{eval echo intval($value[onlinetime]/60);}
展开
 我来答
百度网友0255bc7
2011-11-09 · 超过15用户采纳过TA的回答
知道答主
回答量:49
采纳率:0%
帮助的人:66.3万
展开全部
第一片段是 CSS

.xbs_7 {
/* 背景图片不平铺,还有对齐方式,第一个值是水平位置,第二个值是垂直位置。*/
background: no-repeat 0 100%;
}

.xbs_7 .title {
padding-left: 0; /* 左边的内边距为 0 */
padding-right: 10px; /* 右边的内边距为 10 像素*/
background: no-repeat 100% 0; /* 同第一个 */
text-align: center; /* 文本居中显示 */
float: none; /* 该元素不浮动 这个设置多余 因为默认值就是 none */
}

.xbs_7 .titletext {
padding-left: 10px; /* 左边的内边距为 10 像素 */
background: no-repeat 0 0; /* 背景图片不重复,对齐左上角 */
text-align: center; /* 文本居中显示 */
text-align: center; /* 文本居中显示 */
}

.move-span .title .titletext{
float: none; /* 该元素不浮动 这个设置多余 因为默认值就是 none */
}

.xbs_7 .dxb_bc {
padding-bottom: 6px; /* 底部的内边距为 6 像素 */
background: transparent no-repeat 100% 100%; /* 背景透明 不重复 对齐右下角 */
}

.xbs_7 .module, .xbs .portal_block_summary {
padding: 10px 10px 4px; /* 内边距简写方式 值分别为 上 右 下 左*/
border-width: 0px; /* 边框的宽度为 0 即没有边框 */
}

剩下的全是 PHP

分割线 [em115]

找到了这些

$_G 是 DiscuzX 设置的一个变量

1. global $_G;
2. $_G = array(
3. ‘uid’ => 0,//用户ID
4. ‘username’ => ”,//用户名
5. ‘adminid’ => 0,//管理员ID
6. ‘groupid’ => 1,//用户组
7. ’sid’ => ”,//加密后的SID
8. ‘formhash’ => ”,//跟提交表单有关的HASH数据
9. ‘timestamp’ => TIMESTAMP,//程序执行时的时间戳
10. ’starttime’ => dmicrotime(),//程序开始执行的时间
11. ‘clientip’ => $this->_get_client_ip(),//用户IP
12. ‘referer’ => ”,//用来记录来路URL
13. ‘charset’ => ”,//字符编码
14. ‘gzipcompress’ => ”,
15. ‘authkey’ => ”,//跟加密有关的authkey
16. ‘timenow’ => array(),
17. ‘PHP_SELF’ => ”,//请求的URL
18. ’siteurl’ => ”,//站点地址
19. ’siteroot’ => ”,//站点根目录
20. ‘config’ => array(),//配置信息
21. ’setting’ => array(),//设置信息
22. ‘member’ => array(),//用户有关信息
23. ‘group’ => array(),//用户组信息
24. ‘cookie’ => array(),//cookie信息
25. ’style’ => array(),//风格信息
26. ‘cache’ => array(),//缓存数组
27. ’session’ => array(),//session信息
28. ‘lang’ => array(),//语言包
29. ‘my_app’ => array(),
30. ‘my_userapp’ => array(),
31. ‘fid’ => 0,//论坛版块ID
32. ‘tid’ => 0,//帖子ID
33. ‘forum’ => array(),
34. ‘rssauth’ => ”,
35. ‘home’ => array(),
36. ’space’ => array(),
37. ‘block’ => array(),
38. ‘article’ => array(),
39. ‘action’ => array(
40. ‘action’ => APPTYPEID,
41. ‘fid’ => 0,
42. ‘tid’ => 0,
43. )

复制代码

$_G['form']['description'] 是为了得到名字为 description 的值

$space['olmonth'] = DB::result_first("SELECT thismonth FROM ".DB::table('common_onlinetime')." WHERE uid='$space[uid]'");
$space['olmonth_hours'] = $space['olmonth'] ? ($space['olmonth'] /60) : "";

这俩个就是单纯的设置某个值 从数据库读取值 然后赋值给 $space['olmonth']
如果为空 $space['olmonth_hours'] 也为空 反之 $space['olmonth_hours'] 的值就是 $space['olmonth'] / 60

<!--{if $space[olmonth_hours]}--><li><em>online</em>{$space[olmonth_hours]} {lang hours}</li><!--{/if}-->

如果 $space[olmonth_hours] 里面有值就显示 <li><em>online</em>{$space[olmonth_hours]} {lang hours}</li><!--{/if}-->

---------------------------------------------------------------------------------------------
<!--{if $value['onlinetime']}-->{lang online_time}: {eval echo intval($value[onlinetime]/60);} hours<!--{/if}-->

如果 $space[olmonth_hours] 里面有值就显示{lang online_time}: {eval echo intval($value[onlinetime]/60);} hours<!--{/if}-->

eval echo intval($value[onlinetime]/60);为输出$value[onlinetime]/60 这个结果的整数
paykka
2025-08-05 广告
Paykka 从多个环节帮助用户节省时间,开户最快 1 个工作日完成,本地货币结算当日到账,提现更是几秒内就能完成。全流程都极大地缩短了时间成本,减少了用户的等待时间,提高了资金流转效率。... 点击进入详情页
本回答由paykka提供
康雅旋096
2011-11-06 · TA获得超过2790个赞
知道小有建树答主
回答量:1285
采纳率:58%
帮助的人:358万
展开全部
应该错了哪里,变这样了.xbs_7 { background: no-repeat 0 100%; } .xbs_7 .title { padding-left: 0; padding-right: 10px; background: no-repeat 100% 0; text-align:center;float:none;} .xbs_7 .titletext { padding-left: 10px; background: no-repeat 0 0; text-align:center; text-align:center;} .move-span .title .titletext{float:none;} .xbs_7 .dxb_bc { padding-bottom: 6px; background: transparent no-repeat 100% 100%; } .xbs_7 .module, .xbs .portal_block_summary { padding: 10px 10px 4px; border-width: 0px; } ------------------------------------------------------------------------------------------- $_G['forum'][description] ------------------------------------------------------------------------------------------- $space['olmonth'] = DB::result_first("SELECT thismonth FROM ".DB::table('common_onlinetime')." WHERE uid='$space[uid]'"); $space['olmonth_hours'] = $space['olmonth'] ? ($space['olmonth'] /60) : ""; --------------------------------------------------------------------------------------------
online{$space[olmonth_hours]} {lang hours} --------------------------------------------------------------------------------------------- {eval echo intval($value[onlinetime]/60);}
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式