自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 问答 (1)
  • 收藏
  • 关注

原创 Django :验证码

如果使用Django 自带的csrf_token其实是不安全的,因为它实际上就是在HTML中嵌入一个hidden input,我把它复制下来照样也可以跨站请求,所以我们就需要更加安全的机制,验证码。 代码效果: (图中蓝色高亮的部分就是csrf_token的实际代码) 以下为具体的实现步骤: 1,准备验证码图片 在views.py中添加如下代码:from django.http imp

2017-11-29 17:16:26 583

原创 setTimeout:pop a window

<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale

2017-11-05 12:44:32 371

原创 responsive layout in css

In this demo,first there will be 4 gold block ,when you shrink the width of the window,it will be 2 gold blocks per line and the 1 gold block per line;<!doctype html><html lang="en"><head> <meta

2017-11-04 16:50:06 432

原创 picture_info demo of transition in css

<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale

2017-11-04 11:48:23 338

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除