上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> body{ font-size: 30px; } </style> </head> <body> <!-- 像儿子 阅读全文
posted @ 2021-06-08 11:11 juham 阅读(31) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 为所有的p元素设置一个背景颜色为黄色,除了class值为hello的 * * 否定伪类: * 作用:可以 阅读全文
posted @ 2021-06-08 11:05 juham 阅读(40) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 为span后的一个p元素设置一个背景颜色为黄色 * 后一个兄弟元素选择器 * 作用:可以选中一个元素后紧 阅读全文
posted @ 2021-06-08 11:01 juham 阅读(94) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 为第一个p标签设置一个背景颜色为黄色 * :first-child 可以选中第一个子元素 * :last 阅读全文
posted @ 2021-06-08 10:59 juham 阅读(84) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 为所有具有title属性的p元素,设置一个背景颜色为黄色 * 属性选择器 * - 作用:可以根据元素中的 阅读全文
posted @ 2021-06-08 10:46 juham 阅读(51) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 使用伪元素来表示元素中的一些特殊的位置 */ /* * 为p中第一个字符来设置一个特殊的样式 */ /* 阅读全文
posted @ 2021-06-08 10:44 juham 阅读(54) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 伪类专门用来表示元素的一种的特殊的状态, * 比如:访问过的超链接,比如普通的超链接,比如获取焦点的文本 阅读全文
posted @ 2021-06-08 09:18 juham 阅读(49) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* * 为div中的span设置一个颜色为绿色 * 后代元素选择器 * - 作用: * - 选中指定元素的指定后 阅读全文
posted @ 2021-06-08 09:07 juham 阅读(77) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>常用选择器</title> <style type="text/css"> /*为页面中的所有的p元素,设置一个字体颜色为红色*/ /* * 元素选择器 * 作用:通过元素选择器可 阅读全文
posted @ 2021-06-08 07:19 juham 阅读(27) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <!-- 块元素和内联元素 div就是一个块元素, 所谓的块元素就是会独占一行的的元素,无论他的内容有多少 他都会独占一整行。 p 阅读全文
posted @ 2021-06-07 17:23 juham 阅读(34) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页