@app.route('/usercenter//') def usercenter(user_id,tag): user = User.query.filter(User.id == user_id).first() context = { 'username_id': user.id, 'use... ...
分类:
其他好文 时间:
2017-12-15 13:38:18
阅读次数:
148
1.个人中心的页面布局(html文件及相应的样式文件) 2.定义视图函数def usercenter(user_id): 3.向前端页面传递参数 4.页面显示相应数据 发布的全部问答 发布的全部评论 个人信息 5.各个页面链接到个人中心 usercenter.html py文件 ...
分类:
编程语言 时间:
2017-12-13 23:27:16
阅读次数:
161
<body> <header>header</header> <main>main content</main> <footer>footer</footer></body> /* 动态为footer添加类fixed-bottom */.fixed-bottom {position: fixed;b ...
分类:
Web程序 时间:
2017-12-13 14:28:07
阅读次数:
432
1:修改site-title和site-footer,增加菜单折叠效果 在adminx.py中增加下面代码: 2:修改应用名字为中文 暂未。。 ...
分类:
其他好文 时间:
2017-12-13 01:50:17
阅读次数:
214
<article>定义 一个特殊的section标签,比section有更明确的语义。定义来自外部的一个独立的、完整的内容块,例如什么论坛的文章,博客的文本。。。。<aside> 用来装载页面中非正文的内容,独立于其他模块。例如广告、成组的链接、侧边栏。。 <footer> 定义 section 或 ...
分类:
Web程序 时间:
2017-12-12 21:55:22
阅读次数:
235
.detail position: fixed z-index: 100 top: 0 left: 0 width: 100% height: 100% overflow: auto .detail-wrapper width: 100% min-height: 100... ...
分类:
Web程序 时间:
2017-12-12 21:10:53
阅读次数:
249
该问题之前遇到过两次,调用 deleteSections: withRowAnimation 方法时,删除第一个cell时正常,删除第二个时就会崩溃,或者删掉的不是自己想删除的cell的问题,解决方法如下: 我的cell的删除方法时在tableView的 - (UIView *)tableView: ...
分类:
其他好文 时间:
2017-12-11 18:52:45
阅读次数:
143
效果图如下: 1 /* 移动端样式重置 */ 2 @charset "utf-8"; 3 * { 4 margin: 0; 5 padding: 0; 6 } 7 article, aside, details, figcaption, figure, footer, header, hgroup, ...
分类:
移动开发 时间:
2017-12-11 14:23:46
阅读次数:
222
加个客服的素材: http://sc.chinaz.com/jiaoben/140928369030.htm?qq-pf-to=pcqq.c2c 往网页里面增加脚本代码时要把代码加到footer.html里面。 再给网页增加小图标的功能。 首先将要添加的小图标的名称改名改成 favicon.ico ...
分类:
Web程序 时间:
2017-12-09 14:56:57
阅读次数:
226
基础概念 元素数据之间的共享,使用jquery 的data方法。 通过data-role属性指定元素的role,常用的有:page、header、content、footer,button、listview 组件、控件相关的概念基本都有对应的role可以直接使用 一屏幕只能显示一个page,html ...
分类:
Web程序 时间:
2017-12-03 18:09:41
阅读次数:
247