摘要: CSS介绍 CSS(Cascading Style Sheet,层叠样式表)定义如何显示HTML元素。 当浏览器读到一个样式表,它就会按照这个样式表来对文档进行格式化(渲染)。 CSS语法 CSS实例 每个CSS样式由两个组成部分:选择器和声明。声明又包括属性和属性值。每个声明之后用分号结束。 CS 阅读全文
posted @ 2018-05-28 10:16 MJay_Lee 阅读(632) 评论(5) 推荐(0)
摘要: # 集合方法 l2 = list(set(l1)) l2.sort(key=l1.index) # 按照l1索引排序 print(l2) # 列表 l3 = [] for item in l1: if item not in l3: l3.append(item) print(l3) # 使用lam 阅读全文
posted @ 2018-05-28 09:54 MJay_Lee 阅读(300) 评论(0) 推荐(0)
摘要: 概念 与内置函数的结合使用 阅读全文
posted @ 2018-05-28 09:33 MJay_Lee 阅读(229) 评论(0) 推荐(0)
摘要: 使用背景: 为什么使用: 定义: 为什么选择两根连词线(--)表示变量? 用法: 作用域: 使用:root 作用域来定义全局变量: 如果想让某个变量只在部分元素/组件下可见,只需要在特定的元素下定义该变量: 媒体查询也可以提供作用域: 下面一个例子来展示伪类下的作用域(例如,:hover): 阅读全文
posted @ 2018-05-27 20:19 MJay_Lee 阅读(6113) 评论(0) 推荐(0)
摘要: emmet官网 https://emmet.io/ 语法篇 Child: > HTML All unknown abbreviations will be transformed to tag, e.g. foo → <foo></foo>. ! CSS CSS module uses fuzzy 阅读全文
posted @ 2018-05-24 15:16 MJay_Lee 阅读(578) 评论(0) 推荐(0)
摘要: ‘\r'是回车,前者使光标到行首,(carriage return)'\n'是换行,后者使光标下移一格,(line feed)\r 是回车,return\n 是换行,newline对于换行这个动作:unix下一般只有一个0x0A表示换行("\n"),windows下一般都是0x0D和0x0A两个字符 阅读全文
posted @ 2018-05-23 16:23 MJay_Lee 阅读(1880) 评论(0) 推荐(0)
摘要: *http://html5doctor.com/nav*http://html5doctor.com/article*http://html5doctor.com/section*http://html5doctor.com/asidehttp://html5doctor.com/divhttp:/ 阅读全文
posted @ 2018-05-23 16:01 MJay_Lee 阅读(8613) 评论(1) 推荐(0)
摘要: CSS,cascading style sheet,层叠样式表,请留意层叠概念。 css3为了区分伪类和伪元素,伪元素采用双冒号写法。 常见伪类——:hover,:link,:active,:target,:not(),:focus。 常见伪元素——::first-letter,::first-li 阅读全文
posted @ 2018-05-23 08:18 MJay_Lee 阅读(344) 评论(0) 推荐(0)
摘要: 文件结构 config import os IP_PORT = ('127.0.0.1',8080) BASE_DIR = os.path.dirname(os.path.dirname(__file__)) BASE_UPLOAD_MOVIE = os.path.join(BASE_DIR,'up 阅读全文
posted @ 2018-05-22 21:30 MJay_Lee 阅读(449) 评论(0) 推荐(0)
摘要: 文件结构 config import os IP_PORT = ('127.0.0.1',8080) BACKLOG = 5 BASE_DIR = os.path.dirname(os.path.dirname(__file__)) BASE_MOVIE_LIST = os.path.join(BA 阅读全文
posted @ 2018-05-22 21:25 MJay_Lee 阅读(312) 评论(0) 推荐(0)