上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 25 下一页
摘要: 范例1 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docum 阅读全文
posted @ 2020-02-13 22:31 玄空2 阅读(137) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-02-13 21:38 玄空2 阅读(183) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-02-13 20:54 玄空2 阅读(227) 评论(0) 推荐(0) 编辑
摘要: text-align:文本水平对齐 可选值:left 左侧对齐 right 右对齐 center 居中对齐 justify 两端对齐 vertical-align:垂直对齐 可选值: baseline 基线对齐 top 顶部对齐 bottom 底部对齐 middle 居中对齐 text-decora 阅读全文
posted @ 2020-02-13 13:10 玄空2 阅读(354) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum 阅读全文
posted @ 2020-02-13 12:15 玄空2 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 定位 (position): 是一种更加高级的布局手段 -通过定位可以将元素摆放到页面的任意位置。 使用position属性来设置定位 可选值: static 默认值 元素是静止的,没有开启定位 relative 开启元素的相对定位 absolute 开启元素的绝对定位 fixed 开启元素的固定定 阅读全文
posted @ 2020-02-12 11:47 玄空2 阅读(243) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-02-11 20:12 玄空2 阅读(174) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-02-11 12:19 玄空2 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 参照:https://www.jianshu.com/p/2f5cd6a7b21b 伪类和伪元素用来修饰不在文档树中的部分 伪类:用来对已有元素添加样式。表示方式(:) 伪元素:用于创建一些不在文档树中的元素。 表示方式(::/:) 阅读全文
posted @ 2020-02-05 15:06 玄空2 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 第一种方案 BFC(Block Formatting Context) 块级格式化环境/布局环境 BFC是CSS中的一个隐含属性,开启BFC该元素会变成一个独立的布局区域 元素开启BFC的特点: 1.开启BFC元素不会被浮动元素覆盖 2.开启BFC元素子元素和父元素外边距不会重叠 3.开启BFC的元 阅读全文
posted @ 2020-02-05 12:25 玄空2 阅读(256) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 25 下一页