摘要: 一、 标准文档流下有哪些微观现象? 1. 空白折叠现象 不管你有多少个空格,浏览器只显示一个 2. 高矮不齐,底边对齐 3. 内容多于一行,换行显示 display: block; 独占一行,可设宽高 display: inline; 不独占一行,不能设宽高 display: inline-bloc 阅读全文
posted @ 2018-07-10 13:55 beallaliu 阅读(95) 评论(0) 推荐(0) 编辑
摘要: margin:外边距。 body有默认的margin:8px margin: 20px; margin-top: 40px; margin-left: 50px; margin-bottom: 100px; padding:内边距,边框与内容之间的距离. padding的区域是有背景颜色,并且背影颜 阅读全文
posted @ 2018-07-09 22:56 beallaliu 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1 继承性 给父级设置一些属性,子级继承了父级的该属性,这就是我们的css中的继承 有一些属性是可以继承下来:color, font-*, text-*, line-* 注:backgroud是通过透明背影来实现继承 像一些盒子元素, 定位的元素(浮动,绝对定位,固定定位)不能继承 2 层叠性: 权 阅读全文
posted @ 2018-07-08 22:47 beallaliu 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 基本选择器 1.1 标签选择器 直接拿标签名 如: p{ color: red; } 1.2 id 选择器 1) # 来选中ID <span id="span_id">xxx</span> 2) <!--同一个页面中,id 必须惟一,不区分大小写--> 3) 命名规范,同python变量名 4) 阅读全文
posted @ 2018-07-08 10:49 beallaliu 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-07-07 11:10 beallaliu 阅读(78) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <!-- 文档的标题、编码方式及URL等信息,这些信息大部分是用于提供索引,辨认或其他方面的应用(移动端) --> <!-- meta标签有两个属性 http-equiv 和 name http-equiv:用来向浏览器传达 阅读全文
posted @ 2018-07-02 17:01 beallaliu 阅读(101) 评论(0) 推荐(0) 编辑
摘要: HTML: Hyper Text Markup Language 超文件标志语言 HTML 文档结构 <!-- #仅对文件进行声明,必须要进行声明,声明文档为html5的文件 --> <!DOCTYPE HTML> <!-- 页面根节点 根标签--> <!-- html 中的标签都是闭合标签,闭合标 阅读全文
posted @ 2018-07-02 16:32 beallaliu 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 静态页面: 没有跟用户交互,只能浏览 动态页面: 评论,点赞,登录等 全栈:前端,后端 web1.0 网页三剑客 web2.0 结构,表现,行为 html css javascript html: 是一门描述性语言 结构 css: 层叠样式表 表现 javascript: 是一门脚本语言 行为 阅读全文
posted @ 2018-07-02 15:20 beallaliu 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 子进程与子线程对比: # from multiprocessing import Process# from multiprocessing import current_process# from multiprocessing import Lock# from multiprocessing 阅读全文
posted @ 2018-06-29 12:04 beallaliu 阅读(140) 评论(0) 推荐(0) 编辑
摘要: # pip3 install pymysql pycharm project Interpreter: 添加包 PyMySQL import sys import pymysql print(sys.path) def login_db(user, pwd): conn = pymysql.conn 阅读全文
posted @ 2018-06-20 17:39 beallaliu 阅读(230) 评论(0) 推荐(0) 编辑