CSS学习笔记之中级教程(三)

14、CSS 下拉菜单

14.1 示例1:普通弹窗

思路:弹窗内容先隐藏display: none;,:hover时候修改弹窗部分的 display: block;

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    div.dropdown {
      position: relative;
      display: inline-block;
    }

    div.dropdown:hover .dropdown-content{
      display: block;
    }

    div.dropdown-content {
      display: none;
      position: absolute;
      background-color: red;
      min-width: 160px;
      border: 2px solid #666;
      padding: 12px 15px;
      z-index: 1;
    }
  </style>
</head>

<body>
  <h1>可悬停的下拉菜单</h1>
  <div class="dropdown">
    <p>把鼠标移动到下面文本上查看</p>
    <div class="dropdown-content">
      <p>Hello World</p>
    </div>
  </div>
</body>

</html>

鼠标悬停到p元素上后效果:
在这里插入图片描述

14.2 示例2:列表弹窗

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    .button {
      display: inline;
      background-color: #4CAF50;
      padding: 10px 15px;
      font-size: 15px;
      color: white;
      border: none;
      margin-top: 10px;
      margin-bottom: 10px;
    }

    .dropdown-content{
      display: none;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      padding: 10px 15px;
      /* display: block; */
      min-width: 160px;
      background-color: #EDEDED;
      position: absolute;
    }

    .dropdown:hover .dropdown-content{
      display: block;
    }
  </style>
</head>

<body>
  <div>
    <h1>下拉菜单</h1>
    <p>把鼠标移动到按钮上,以打开下拉菜单</p>
    <div class="dropdown">
      <button class="button">dropdown</button>
      <div class="dropdown-content">
        <ul>
          <li>第一个</li>
          <li>第二个</li>
          <li>第三个</li>
        </ul>
      </div>
    </div>
    <p><b>Note:</b> 其他内容</p>
  </div>
</body>

</html>

运行效果:
在这里插入图片描述
在这里插入图片描述

14.3 示例3:下拉式图像

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    .dropdown:hover .dropdown-content {
      display: block;
    }

    .dropdown-content {
      display: none;
    }
  </style>
</head>

<body>
  <div>
    <h1>下拉图片</h1>
    <p>把鼠标移动到图像上,以打开下拉内容</p>
    <div class="dropdown">
      <img src="imgs/icon_mess_sellorder.png" alt="pic" width="100px">
      <div class="dropdown-content">
        <img src="imgs/icon_mess_sellorder.png" alt="pic" width="300px">
      </div>
    </div>
    <p><b>Note:</b> 其他内容</p>
  </div>
</body>

</html>

运行效果:
在这里插入图片描述
在这里插入图片描述

14.4 示例4:下拉式导航

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    ul {
      background-color: #333;
      overflow: hidden;
    }

    li {
      float: left;
      display: inline-block;

    }

    li a:hover {
      background-color: red;

    }

    li a {
      display: inline-block;
      color: white;
      padding: 10px;
      text-decoration: none;
    }

    div.dropdown_content {
      position: absolute;
      box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
      min-width: 160px;
      background-color: white;
      display: none;

    }

    .dropdown_content a {
      display: block;
      color: black;
      padding: 10px;
      text-decoration: none;
    }

    .dropdown_content a:hover {
      background-color: #EDEDED;
    }

    .dropdown:hover .dropdown_content {
      display: block;
    }
  </style>
</head>

<body>
  <div>
    <ul>
      <li><a href="">Home</a></li>
      <li><a href="">News</a></li>
      <li class="dropdown"><a href="">DropDown</a>
        <div class="dropdown_content">
          <a href="">第一个</a>
          <a href="">第二个</a>
          <a href="">第三个</a>
        </div>

      </li>

    </ul>
  </div>

</body>

</html>

运行效果:

在这里插入图片描述

15、CSS 属性选择器

  • 为带有特定属性的 HTML 元素设置样式

15.1 CSS [attribute] 选择器(指定属性

  • [attribute] 选择器用于选取带有指定属性的元素。

下例选择所有带有 target 属性的 <a> 元素;

 a[target]{
    background-color: yellow;
   }
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
   a[target]{
    background-color: yellow;
   }
  </style>
</head>

<body>
  <a href="" target="_blank">第一个</a>
  <a href="" >第二个</a>
  <a href="" target="_top">第三个</a>

</body>

</html>

运行效果:
在这里插入图片描述

15.2 CSS [attribute="value"] 选择器(指定属性和值

  • [attribute="value"] 选择器用于选取带有指定属性和值的元素。

下例选取所有带有 target="_blank" 属性的 <a> 元素:

a[target='_blank']{
    background-color: yellow;
   }
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
   a[target='_blank']{
    background-color: yellow;
   }
  </style>
</head>

<body>
  <a href="" target="_blank">第一个</a>
  <a href="" >第二个</a>
  <a href="" target="_top">第三个</a>

</body>

</html>

运行效果:
在这里插入图片描述

15.3 CSS [attribute~="value"] 选择器(包含指定词的元素

  • [attribute~="value"] 选择器选取属性值包含指定词的元素

下例选取 title 属性包含 "flower" 单词的所有元素:
(该例子会匹配以下属性的元素:title=“flower”、title=“summer flower” 以及 title=“flower new”,但不匹配:title=“my-flower” 或 title=“flowers”。)

 [title~=flower] {
      background-color: yellow;
    }
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    [title~=flower] {
      background-color: yellow;
    }
  </style>
</head>

<body>

  <img src="imgs/icon_mess_sellorder.png" alt="pic" title="flower" width="100px">
  <img src="imgs/icon_mess_sellorder.png" alt="pic" title="key flower" width="100px">
  <img src="imgs/icon_mess_sellorder.png" alt="pic" title="tree" width="100px">

</body>

</html>

运行效果:
在这里插入图片描述

15.4 CSS [attribute|="value"] 选择器(指定完整值开头的元素

  • [attribute|="value"] 选择器用于选取指定属性以指定值开头的元素
  • 注释:值必须是完整或单独的单词,比如 class="top" 或者后跟连字符的,比如 class="top-text"
[class|=top]{
      background-color: yellow;
    }
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>

    [class|=top]{
      background-color: yellow;
    }
    
  </style>
</head>

<body>

  <h1 class="top-01">标题</h1>
  <p class="top-02">内容1</p>
  <p class="topaaa">内容2</p>

</body>

</html>

运行效果:
在这里插入图片描述

注意:class刚开始命名时候使用的是下划线top_01结果不起作用,更换成top-01后才起作用

15.5 CSS [attribute^="value"] 选择器(以指定非完整值开头的元素

  • [attribute^="value"] 选择器用于选取指定属性以指定值开头的元素
  • 提示:值不必是完整单词
[class^="top"] {
  background: yellow;
}
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>

    [class^='top']{
      background-color: yellow;
    }
    
  </style>
</head>

<body>

  <h1 class="top-01">标题</h1>
  <p class="top-02">内容1</p>
  <p class="topaaa">内容2</p>

</body>

</html>

运行效果:
在这里插入图片描述

15.6 CSS [attribute$="value"] 选择器(以指定值结尾的元素

  • [attribute$="value"] 选择器用于选取指定属性以指定值结尾的元素。
  • 提示:值不必是完整单词!
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>

    [class$='end']{
      background-color: yellow;
    }
    
  </style>
</head>

<body>

  <h1 class="01-end">标题</h1>
  <p class="01end">内容1</p>
  <p class="end">内容2</p>
  <p class="aaa"> 内容3</p>

</body>

</html>

运行效果:
在这里插入图片描述

15.7 CSS [attribute*="value"] 选择器(包含指定词的元素

  • [attribute*="value"] 选择器选取属性值包含指定词的元素
  • 提示:值不必是完整单词
 [class*='end']{
      background-color: yellow;
    }
    
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>

    [class*='end']{
      background-color: yellow;
    }
    
  </style>
</head>

<body>

  <h1 class="01-end">标题</h1>
  <p class="01end01">内容1</p>
  <p class="end">内容2</p>
  <p class="aaa"> 内容3</p>

</body>

</html>

运行效果:
在这里插入图片描述

15.8 所有 CSS 属性选择器

在这里插入图片描述

16、CSS 表单

  • 通过CSS改善表单的展示样式

16.2 示例:实现如下图中样式

在这里插入图片描述

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    .kuang {
      background-color: #EDEDED;
      border: none;
      margin: 10px;
      padding: 10px;
      border-radius: 4px;
    }

    input[type='text'],
    select {
      width: 100%;
      padding: 10px 12px;
      margin: 10px 0px;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
      font-size: 15px;
      color: #333;
      box-sizing: border-box;

      -webkit-transition: 0.5s;
      transition: 0.5s;
      /*  获取焦点修改border的话需要设置outline: none*/
      outline: none;
    }

    input[type='submit'] {
      width: 100%;
      height: 45px;
      background-color: #4CAF50;
      border: none;
      border-radius: 4px;
      color: white;
      font-size: 15px;
      margin-top: 10px;
      margin-bottom: 5px;
    }

    /* 获取焦点 */
    input[type='text']:focus {
      background-color: antiquewhite;
      border: 1px solid #333;
    }
  </style>
</head>

<body>

  <form class="kuang" action="html_jump_page.html">
    <label for="fname">姓:</label>
    <input type="text" id="fname" name="firstname" placeholder="请输入您的姓...">


    <label for="sname">名:</label>
    <input type="text" id="sname" name="seconednmae" placeholder="请输入您的名...">


    <label for="country">城市:</label>
    <select name="country" id="country">
      <option value="zz">郑州</option>
      <option value="ny">南阳</option>
      <option value="kf">开封</option>
    </select>

    <input type="submit" value="提交">
  </form>


</body>

</html>

注意:请注意,我们已将 box-sizing 属性设置为 border-box。这样可以确保元素的总宽度和高度中包括内边距(填充)和最终的边框。
box-sizing 属性可以被用来调整这些表现:

content-box 是默认值。如果你设置一个元素的宽为100px,那么这个元素的内容区会有100px宽,并且任何边框和内边距的宽度都会被增加到最后绘制出来的元素宽度中。

border-box 告诉浏览器去理解你设置的边框和内边距的值是包含在width内的。也就是说,如果你将一个元素的width设为100px,那么这100px会包含其它的borderpadding,内容区的实际宽度会是width减去border + padding的计算值。大多数情况下这使得我们更容易的去设定一个元素的宽高。

border-box widthheight 属性包括内容,内边距和边框,但不包括外边距。这是当文档处于 Quirks模式 时Internet Explorer使用的盒模型。注意,填充和边框将在盒子内 , 例如, .box {width: 350px; border: 10px solid black;} 导致在浏览器中呈现的宽度为350px的盒子。内容框不能为负,并且被分配到0,使得不可能使用border-box使元素消失。
这里的维度计算为: width = border + padding + 内容的 width, height = border + padding + 内容的 height

16.2 带有图标/图像的输入框

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    .kuang {
      background-color: #EDEDED;
      padding: 10px;
      margin: 10px;
      border-radius: 4px;
    }

    input[type='text'] {
      width: 100%;
      margin-top: 10px;
      height: 35px;
      font-size: 15px;
      padding-left: 30px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background-image: url('imgs/search.png');
      background-repeat: no-repeat;
      background-position: 10px 10px;
      background-size: 15px;
      outline: none;
      margin-right: 20px;
      /* 重要 */
      box-sizing: border-box;

    }
  </style>
</head>

<body>
<div class="kuang">
  <form action="html_jump_page.html" >
    <label for="search">搜索</label>
    <input type="text" id="search" name="searchname" placeholder="加油站名称">

  </form>

</div>
 


</body>

</html>

运行效果:
在这里插入图片描述

16.3 设置文本域的样式(多行输入textarea

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="css/baseStyle.css">
  <style>
    textarea {
      /* 禁止右下角可调整大小功能 */
      resize: none;
      font-size: 15px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      margin: 10px;
      height: 150px;
      width: 500px;
      outline: none;
    }
  </style>
</head>

<body>
  <form action="html_jump_page.html">
    <textarea name="content" id="content" cols="30" rows="10" placeholder="请输入内容..."></textarea>
  </form>



</body>

</html>

运行效果:
在这里插入图片描述

17 、CSS 计数器

CSS 计数器

18、CSS 网站布局

在这里插入图片描述
在这里插入图片描述
缩小页面后:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- <link rel="stylesheet" href="css/baseStyle.css"> -->
  <style>
    * {
      box-sizing: border-box;
      margin: 0px;
      padding: 0px;
    }

    body {
      background-color: #EDEDED;
    }

    .header {
      background-color: white;
      text-align: center;
      padding: 30px;
      margin-top: 20px;
      margin-left: 20px;
      margin-right: 20px;
    }

    /* 清除浮动 */
    .row::after {
      content: "";
      display: table;
      clear: both;
    }

    .row {
      margin-right: 20px;
    }

    .topnav {
      background-color: #333;
      overflow: hidden;
      margin-left: 20px;
      margin-right: 20px;
    }

    .topnav a {
      float: left;
      display: inline-block;
      color: white;
      font-size: 16px;
      text-decoration: none;
      padding: 15px 20px;
    }

    .topnav a:hover {
      background-color: #ddd;
      color: black;
    }

    .leftpart {
      width: 75%;
      float: left;
    }

    .rightpart {
      width: 25%;
      float: right;
    }

    .card {
      margin-top: 20px;
      margin-left: 20px;
      /* margin: 20px; */
      background-color: white;
      padding: 30px;
    }

    .imagepart {
      height: 200px;
      background-color: #aaa;
      padding: 20px;
      margin-bottom: 20px;
    }

    .imagepart02 {
      height: 80px;
      background-color: #aaa;
      padding: 20px;
    }

    .footerpart {
      background-color: #ddd;
      padding: 30px 20px;
      margin: 20px;
      text-align: center;
    }


    /* 响应式布局 - 当屏幕的宽度小于 800 像素时,使两列堆叠而不是并排 */
    @media screen and (max-width: 800px) {

      .leftpart,
      .rightpart {
        width: 100%;
        padding: 0;
      }
    }

    /* 响应式布局 - 当屏幕的宽度小于 400 像素时,使导航链接堆叠而不是并排 */
    @media screen and (max-width: 400px) {
      .topnav a {
        float: none;
        width: 100%;
      }
    }
  </style>
</head>

<body>

  <!-- 页眉 -->
  <div class="header">
    <h1>My Website</h1>
    <p>Resize the browser window to see the effect.</p>
  </div>

  <!-- 导航 -->
  <div class="topnav">
    <a href="">Link</a>
    <a href="">Link</a>
    <a href="">Link</a>
    <a href="" style="float: right;">Link</a>
    </ul>
  </div>

  <div class="row">
    <div class="leftpart">
      <!-- TITLE HEADING  -->
      <div class="card">
        <h1 style="padding-bottom: 15px;">TITLE HEADING</h1>
        <h6 style="padding-bottom: 15px;">Title description, Dec 7, 2017</h6>
        <div class="imagepart">Image</div>
        <p style="padding-bottom: 15px;">Some text..</p>
        <p>Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod
          tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
          ullamco.
        </p>
      </div>

      <!-- TITLE HEADING  -->
      <div class="card">
        <h1 style="padding-bottom: 15px;">TITLE HEADING</h1>
        <h6 style="padding-bottom: 15px;">Title description, Dec 7, 2017</h6>
        <div class="imagepart">Image</div>
        <p style="padding-bottom: 15px;">Some text..</p>
        <p>Sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod
          tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
          ullamco.
        </p>
      </div>

    </div>

    <div class="rightpart">
      <!-- About Me -->
      <div class="card">
        <h1 style="padding-bottom: 15px;">About Me</h1>
        <div class="imagepart">Image</div>
        <p>Some text about me in culpa qui officia deserunt mollit anim..</p>
      </div>

      <!-- Popular Post -->
      <div class="card">
        <h1 style="padding-bottom: 15px;">Popular Post</h1>
        <div class="imagepart02">Image</div>
        <div class="imagepart02">Image</div>
        <div class="imagepart02">Image</div>
      </div>

      <!-- Follow Me -->
      <div class="card">
        <h1 style="padding-bottom: 15px;">Follow Me</h1>
        <p style="padding-bottom: 15px;">Some text..</p>
      </div>
    </div>

   
  </div>

 <!-- Footer -->
 <div class="footerpart">
  <h1>Footer</h1>
</div>


</body>

</html>

19、CSS 特异性

CSS 特异性

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/633686.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

ROS2学习——节点话题通信(2)

目录 一、ROS2节点 1.概念 2.实例 &#xff08;1&#xff09;ros2 run &#xff08;2&#xff09;ros2 node list &#xff08;3&#xff09;remapping重映射 &#xff08;4&#xff09;ros2 node info 二、话题 &#xff08;1&#xff09; ros2 topic list &#xf…

Vue学习穿梭框Transfer组件

Vue学习Transfer组件 一、前言1、案例一2、案例二 一、前言 在 Vue 3 中使用 el-transfer 组件可以帮助你实现数据的穿梭功能&#xff0c;让用户可以将数据从一个列表转移到另一个列表。下面是一个简单示例&#xff0c;演示如何在 Vue 3 中使用 el-transfer 组件&#xff1a; …

ROS | 实现SLAM的功能

用launch文件启动Hector_Mapping的建图功能 1.引入launch文件 2.args是引入的设置好的rviz文件 Hector_Mapping建图的参数设置

【云原生】Kubernetes 核心概念

什么是 Kubernetes Kubernetes&#xff0c;从官方网站上可以看到&#xff0c;它是一个工业级的容器编排平台。Kubernetes 这个单词是希腊语&#xff0c;它的中文翻译是“舵手”或者“飞行员”。在一些常见的资料中也会看到“ks”这个词&#xff0c;也就是“k8s”&#xff0c;它…

迎接AI大模型时代:为什么JS-Tool-Big-Box是前端开发者的最佳选择

随着AI大模型的快速发展&#xff0c;前端开发面临着前所未有的机遇和挑战。数据量和复杂度的增加&#xff0c;以及用户对卓越体验的需求&#xff0c;使得前端工具的选择变得尤为重要。在这样的背景下&#xff0c;JS-Tool-Big-Box脱颖而出&#xff0c;成为前端开发者的首选。本文…

QTextCodec NO such file or directory让qt6兼容qt5

首先在.pro 文件中新加 QT core5compat这时会报错 链接 报错之后修复qt&#xff0c;新加兼容模块&#xff0c;见链接。

基于树的存储数据结构demo

一.简介 由于之前博主尝试Java重构redis&#xff0c;在redis中的的字典数据结构底层也是采用数组实现&#xff0c;字典中存在两个hash表&#xff0c;一个是用于存储数据&#xff0c;另一个被用于rehash扩容为前者两倍。但是我注意到了在redis的数据结构中&#xff0c;并没有像…

分类和品牌关联

文章目录 1.数据库表设计1.多表关联设计2.创建表 2.使用renren-generator生成CRUD1.基本配置检查1.generator.properties2.application.yml 2.生成代码1.进入localhost:81生成代码2.将main目录覆盖sunliving-commodity模块的main目录 3.代码检查1.注释掉CategoryBrandRelationC…

2024-5-23 石群电路-14

2024-5-23&#xff0c;星期四&#xff0c;22:20&#xff0c;天气&#xff1a;晴&#xff0c;心情&#xff1a;晴。今天没有什么重要的事情发生&#xff0c;心情一如既往的平静&#xff0c;距离返校假期还有两天~~~。 今天观看了石群老师电路基础课程的第23/24个视频&#xff0…

金丝雀发布(灰度发布)介绍 及 声明式管理方法简介

目录 一 应用发布策略 1&#xff0c;滚动发布&#xff08;k8s默认&#xff09; 2&#xff0c;蓝绿发布 3&#xff0c;金丝雀发布 二 金丝雀发布&#xff08;Canary Release&#xff09; &#xff08;灰度发布&#xff09; 1&#xff0c;金丝雀发布图解 2&#xff0…

前端:音频可视化(H5+js版本)

一、效果展示 HTML5JS实现一个简单的音频可视化 二、代码 <!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8" /><title>音频可视化</title><style></style></head><body><divs…

正点原子[第二期]Linux之ARM(MX6U)裸机篇学习笔记-19讲 串口实验UART

前言&#xff1a; 本文是根据哔哩哔哩网站上“正点原子[第二期]Linux之ARM&#xff08;MX6U&#xff09;裸机篇”视频的学习笔记&#xff0c;在这里会记录下正点原子 I.MX6ULL 开发板的配套视频教程所作的实验和学习笔记内容。本文大量引用了正点原子教学视频和链接中的内容。…

【python】python社交交友平台系统设计与实现(源码+数据库)【独一无二】

&#x1f449;博__主&#x1f448;&#xff1a;米码收割机 &#x1f449;技__能&#x1f448;&#xff1a;C/Python语言 &#x1f449;公众号&#x1f448;&#xff1a;测试开发自动化【获取源码商业合作】 &#x1f449;荣__誉&#x1f448;&#xff1a;阿里云博客专家博主、5…

Nginx企业级负载均衡:技术详解系列(9)—— Nginx核心配置详解(全局配置)

你好&#xff0c;我是赵兴晨&#xff0c;97年文科程序员。‍‍‍‍‍ 在 Nginx企业级负载均衡&#xff1a;技术详解系列&#xff08;8&#xff09;—— Nginx核心配置详解&#xff08;默认配置文件&#xff09;文章中&#xff0c;咱们讨论了Nginx核心配置文件的基础知识&#…

鸿蒙 DevEcoStudio:通知栏通知实现

【使用notificationManager实现通知栏功能】 【普通通知、长文本通知、多行通知、图片通知】 import notificationManager from ohos.notificationManager import image from ohos.multimedia.image Entry Component struct Index {State message: string Hello World// 将图…

Spring 事务源码分析

前言&#xff1a; 我们知道 Spring 声明式事务是通过 AOP 来实现的&#xff0c;日常项目开发中我们只需要使用 Transactional 注解就可以实现声明式事务&#xff0c;那你知道通过 Transactional 注解怎样实现事务的吗&#xff1f;本篇我们将从源码来分析 Spring 声明式事务的执…

鸿蒙HarmonyOS开发中的易混点归纳-持续补充中

相关文章目录 鸿蒙HarmonyOS开发术语全解&#xff1a;小白也能看懂&#xff01; 文章目录 相关文章目录前言一、build()函数和Builder装饰器&#xff1f;二、自定义组件和系统组件&#xff08;内置组件&#xff09;三、组件和页面四、自定义弹窗和其他弹窗总结 前言 一、build…

骨传导耳机哪个牌子好?五大热门精选推荐,真心力荐!

作为一名运动达人&#xff0c;在日常运动中经常会使用一些运动耳机&#xff0c;由于运动场景的特殊性&#xff0c;所以骨传导耳机凭借特殊的佩戴方式和独特的传声原理&#xff0c;所以骨传导耳机就成运动中的得力助手。然而&#xff0c;近期许多消费者在购买时往往被网络上的流…

冯喜运:5.24现货黄金趋势解读,黄金原油行情分析及操作建议

【黄金消息面分析】&#xff1a;美国劳工部公布的最新数据显示&#xff0c;截至5月18日的一周内&#xff0c;首次申请失业救济人数下降至21.5万人&#xff0c;创下自去年9月以来的最大降幅。数据公布后&#xff0c;现货黄金短线下挫6美元&#xff0c;报2362.71美元/盎司。这表明…

STM32入门笔记(02):USART串口通信注意事项笔记(SPL库函数版)

这是通过串口通信发送过来的数据&#xff0c;里面包括了故障码&#xff0c;电压&#xff0c;电流&#xff0c;频率等信息&#xff0c;请你用STM32f103系列单片机的串口1读取该数据并解析出电压和电流是多少&#xff1f; 要用STM32F103系列单片机的串口1读取并解析发电机上的逆…