1 2 3 4
摘要: 方案一: div绝对定位水平垂直居中【margin:auto实现绝对定位元素的居中】, 兼容性:,IE7及之前版本不支持 方案二: div绝对定位水平垂直居中【margin 负间距】 这或许是当前最流行的使用方法。 方案三: div绝对定位水平垂直居中【Transforms 变形】 兼容性:IE8不 阅读全文
posted @ 2018-09-25 20:38 王东波0214 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.在app下新建名为templatetags的python包,并在其中新建mytags.py文件(此文件用于书写函数) 2.在新建的mytags.py文件中写入以下两行代码: from django import template register=template.Library() 然后定义函 阅读全文
posted @ 2018-09-25 15:42 王东波0214 阅读(152) 评论(0) 推荐(0) 编辑