@@ -146,9 +146,35 @@
h1~h6 {
color: #0f0;
}
+ /*
+ 伪元素选择器
+ ::after {content:""}
+ ::before {content:""}
+ 面试题::before与::before区别
+ 实际意义上没有太大的区别
+ 只是写法不同
+ :是css2中的写法
+ ::是css3中的写法
+ */
+ .word::after {
+ content: '今天';
+ color: #00f;
+ font-weight: lighter;
+ }
+ .word:before {
+ content: "1111";
+ /* 通配符选择器:匹配全局 */
+ * {
+ /* 去除无序列表的默认样式 */
+ list-style: none;
+ /* 去除a标签的默认样式 */
+ text-decoration: none;
</style>
</head>
<body>
+ <p class="word">一段文字</p>
<a href="">q我问问</a>
@@ -190,5 +216,6 @@
<h4>h4</h4>
<h5>h5</h5>
<h6>h6</h6>
+
</body>
</html>
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Document</title>
+ <style>
+ p {
+ color: #f00;
+ </style>
+</head>
+<body>
+ <!--
+ 选择器的优先级及其权重
+ !important > 行内样式(内联样式)> id选择器 > 类选择器 = 伪类选择器 = 属性选择器 > 伪元素选择器 = 标签选择器 > 通配符选择器
+ 权重: 正无穷 1,0,0,0 0,1,0,0 0,0,1,0 0,0,0,1 0,0,0,0
+ -->
+ <p style="color: #0f0;">1234</p>
+ HTML为什么语义化?
+ 1.便携开发
+</body>
+</html>
@@ -0,0 +1,59 @@
+ ul li {
+ width: 100px;
+ height: 100px;
+ border: 1px solid #f00;
+ text-align: center;
+ line-height: 100px;
+ /* border-radius: 8px; */
+ /* 下边框:border-bottom */
+ /* 上边框:border-top */
+ /* 左边框:border-left */
+ /* 右边框:border-right */
+ border-bottom: none;
+ border-top: none;
+ /* display:inline-block; */
+ ul li:last-child {
+ ul li:first-child {
+ ul li a {
+ color: #000;
+ ul li:hover {
+ background: #f00;
+ ul li:hover a {
+ color: #ff0;
+ <div>
+ <ul>
+ <li><a href="https://www.baidu.com">画画</a></li>
+ <li><a href="">书发</a></li>
+ <li><a href="">跳舞</a></li>
+ <li><a href="">唱歌</a></li>
+ <li><a href="">篮球</a></li>
+ <li><a href="">跑步</a></li>
+ </ul>
+ </div>
+ div {
+ width: 0;
+ height: 0;
+ border:40px solid #f00;
+ border-color: transparent transparent transparent red;
+ transparent 透明
+ border-color: 上 右 下 左;
+ css三角形
+ <div></div>