工作日记
2015-07-09 16:49
239 查看
know_side_nlp.tpl——浏览器插件—艺人推荐
.closest()
.toggleClass()
.toggle()
分屏展示
.hide{
display:none;
}
切换按钮:
<a class="bs-op-fold js-btn-switch" href="#switch" title="展开" opentitle="收起"></a>
#bsrec-news-timeline .bs-op-fold:after{
content: attr(title);
padding:0 10px 0 0;
background: url(http://p8.qhimg.com/t01c93ebc1b6321a882.jpg) no-repeat right center;
}
#bsrec-news-timeline .bs-op-fold.open:after{
content: attr(opentitle);
background: url(http://p8.qhimg.com/t01a4818e2c04ef02f0.jpg) no-repeat right center;
}
关于制作彩色热搜推荐
<a href="{%$list.show_data.query_url%}" class="bs-link hot-list-style{%mt_rand(1,5)%}" target="_blank">{%$list.title%}</a>
box-sizing
关于极速版获取时间
PHP
date("Y-m-dH:i:s"); //该结果会显示为:2010-07-27 21:19:36 的模式
Smarty
{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} //该结果会显示为 2010-07-27 21:19:36 的时间模式
.closest()
.toggleClass()
.toggle()
分屏展示
.hide{
display:none;
}
{%foreach $data.data as $item%} {%foreach array_chunk($item.list,6) as $list%} <ul class="bs-list clearfix{%if $list@iteration > 1%} js-toggle-row hide{%/if%}"> $('#bsrec-news-timeline').on('click','.js-btn-switch',function(e){ e.preventDefault(); var self = $(this); self.toggleClass('open'); self.closest('.bs-image').find('.js-toggle-row').toggleClass('hide'); }); 切换按钮: <a class="bs-op-fold js-btn-switch" href="#switch" title="展开" opentitle="收起"></a> #bsrec-news-timeline .bs-op-fold:after{ content: attr(title); padding:0 10px 0 0; background: url(http://p8.qhimg.com/t01c93ebc1b6321a882.jpg) no-repeat right center; } #bsrec-news-timeline .bs-op-fold.open:after{ content: attr(opentitle); background: url(http://p8.qhimg.com/t01a4818e2c04ef02f0.jpg) no-repeat right center; }
切换按钮:
<a class="bs-op-fold js-btn-switch" href="#switch" title="展开" opentitle="收起"></a>
#bsrec-news-timeline .bs-op-fold:after{
content: attr(title);
padding:0 10px 0 0;
background: url(http://p8.qhimg.com/t01c93ebc1b6321a882.jpg) no-repeat right center;
}
#bsrec-news-timeline .bs-op-fold.open:after{
content: attr(opentitle);
background: url(http://p8.qhimg.com/t01a4818e2c04ef02f0.jpg) no-repeat right center;
}
关于制作彩色热搜推荐
<a href="{%$list.show_data.query_url%}" class="bs-link hot-list-style{%mt_rand(1,5)%}" target="_blank">{%$list.title%}</a>
box-sizing
关于极速版获取时间
PHP
date("Y-m-dH:i:s"); //该结果会显示为:2010-07-27 21:19:36 的模式
Smarty
{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} //该结果会显示为 2010-07-27 21:19:36 的时间模式
相关文章推荐
- Android跳转到应用下载平台,给当前APP评分
- 关于RTC引起的待机功耗的问题
- 使用maven-jar-plugin打可执行jar包
- POJ 2155 Matrix(二维树状数组,绝对详细)
- 多线程下载框架xUtils
- [MFC]利用Win32 API遍历文件系统
- 学习深度
- gemfire说明
- DEV-aspxgridview中的javascprit中获取所有行
- nodejs对文件进行分页
- CentOS Rsync服务端与Windows cwRsync客户端实现数据同步配置方法
- lua string
- CAEmitterLayer
- 0欧姆电阻、磁珠、电感的应用
- 摘自ubuntuer- Linux防火墙iptables学习笔记(四)iptables实现NAT
- 字符串过长(Heredoc结构形式方法)
- Dependency Injection pattern
- JAVA基础题
- 最新版SDWebImage的使用
- 多项分布(multinominal distribution)