主頁 > 企業開發 > CSS3

CSS3

2020-09-13 22:42:27 企業開發

CSS3

HTML+CSS+JavaScript

結構+表項+互動

如何學習?

  • CSS是什么
  • CSS怎么用(快速入門)
  • CSS選擇器(重點+難點)
  • 美化網頁(文字、陰影、超鏈接、串列、漸變...)
  • 盒子模型
  • 浮動
  • 定位
  • 網頁影片(特效效果)

1、初識CSS

1.1、什么是CSS

Cascading Style Sheet(層疊樣式表)

CSS:表現(美化網頁)

字體、顏色、邊距、高度、寬度、背景圖片、網頁定位、網頁浮動...

1.2、發展史

CSS1.0

CSS2.0 DIV(塊)+CSS,HTML與CSS結構分離,網頁變得簡單,利于SEO

CSS2.1 浮動和定位

CSS3.0 圓角邊框、陰影、影片.... 瀏覽器兼容性

1.3、快速入門

image-20200603160326222

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<!--    規范 <style></style>內可以撰寫html代碼,每一個宣告最好以分號結尾
        語法:
            選擇器{
                宣告1: ;
                宣告2: ;
                宣告3: ;
            }
-->
    <style>
        h1{
            color:red;
        }
    </style>
</head>
<body>
<h1>我是標題</h1>
</body>
</html>

建議使用這種規范
image-20200603161135360

CSS優勢:

  • 內容和表現分離
  • 網頁結構表現統一,可以實作復用
  • 樣式十分豐富
  • 建議使用獨立于HTML的css檔案
  • 利于SEO,容易被搜索引擎收錄

1.4、css的三種匯入方式

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <!--2.內部樣式表-->
    <style>
        h1{
            color:green;
        }
    </style>
    
    <!--3.外部樣式-->
    <link rel="stylesheet" href=https://www.cnblogs.com/P935074243/p/"css/style.css">
    

<body>




我是標題

拓展:外部樣式兩種寫法:

  • 鏈接式:

      <!--外部樣式-->
        <link rel="stylesheet" href=https://www.cnblogs.com/P935074243/p/"css/style.css">
    
  • 匯入式:

    @import是CSS2.1特有的

    <!--匯入式-->
    <style>
        @import url("style.css");
    </style>
    

2、選擇器

作用:選擇頁面上的某一種元素或者某一類元素

2.1、基本選擇器

2.1.1、標簽選擇器

選擇一類標簽

語法:

? <標簽名></標簽名>

? 標簽名{

? 宣告1:;

? 宣告2:;

? }

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    
    <style>
        /*標簽選擇器會選中頁面上的所有這個標簽*/
        h1{
            color: #dcff4f;
            background: deepskyblue;
            border-radius: 14px;
        }
        p{
            font-size: 80px;
        }
    </style>
    
</head>
<body>
    
    <h1>學Java</h1>
    <h1>學Java</h1>
    <p>狂神說</p>
    
</body>
</html>

2.1.2、類選擇器 class

選中所有class屬性一致的標簽,可以跨標簽

語法:

?

? .類名{

? 宣告1:;

? 宣告2:;

? }

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        /*類選擇器格式:.class的名稱{}
            好處:可以多個標簽歸類,是同一個class,可以復用
        */
        .one{
            color:wheat;
        }
        .two{
            color:red;
        }
        .three{
            
        }
    </style>

</head>
<body>

    <h1 class="one">標題1</h1>
    <h1 class="two">標題2</h1>
    <h1 class="three">標題3</h1>

</body>
</html>

2.1.3、id選擇器

全域唯一

語法:

?

? #id名{

? 宣告1:;

? 宣告2:;

? }

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        /*id選擇器格式:#id名稱{} id必須保證全域唯一
            不遵循就近原則,固定的:id選擇器>類選擇器>標簽選擇器
        */
        #one{
            color: aquamarine;
        }
        .style1{
            color:red;
        }
        h1{
            color: #dcff4f;
        }
    </style>

</head>
<body>

    <h1 id="one" class="style1">標題1</h1>
    <h1 class="style1">標題2</h1>
    <h1 class="style1">標題3</h1>
    <h1>標題4</h1>
    <h1>標題5</h1>

</body>
</html>

優先級:不遵循就近原則,固定的:id選擇器>類選擇器>標簽選擇器

2.2、層次選擇器

image-20200603172936530

HTML

<body>

    <p>p0</p>
    <p class="active">p1</p>
    <p>p2</p>
    <p>p3</p>
    <ul>
        <li>
            <p>p4</p>
        </li>
        <li>
            <p>p5</p>
        </li>
        <li>
            <p>p6</p>
        </li>
    </ul>

</body>

2.2.1、后代選擇器

在某個元素的后面 :祖爺爺 爺爺 爸爸 我

/*后代選擇器*/
body p{
    background: red;
}

2.2.2、子選擇器

只有當前選擇的下一代

/*子選擇器*/
body > p{
    background: blueviolet;
}

2.2.3、相鄰兄弟選擇器

同輩 對下不對上,只有一個

/*相鄰兄弟選擇器*/
.active + p{
    background: cadetblue;
}

2.2.4、通用選擇器

當前選中元素的向下的所有元素

/*通用兄弟選擇器*/
.active ~ p{
    background: green;
}

2.3、結構偽類選擇器

偽類:條件

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--避免使用class和id選擇器-->
    <style>

        /*ul的第一個子元素*/
        ul li:first-child{
            background: #dcff4f;
        }

        /*ul的第最后一個子元素*/
        ul li:last-child{
            background: blueviolet;
        }

        /*選中p1:定位到父元素,選中當前的第一個元素
        選中當前元素的父級元素,選中父級元素的第n個,但第n個元素必須是是當前元素,否則選不中
        */
        p:nth-child(3){
            background: cadetblue;
        }

        /*先選中當前元素的父級元素,然后選中父級元素的第n個和當前元素同型別的元素*/
        p:nth-of-type(3){
            background: wheat;
        }

        /*滑鼠移動到上面會發生變化*/
        a:hover{
            background: black;
        }

    </style>
</head>
<body>

    <a>12231</a>
    <h1>h1</h1>
    <p>p1</p>
    <p>p2</p>
    <p>p3</p>
    <ul>
        <li>li1</li>
        <li>li2</li>
        <li>li3</li>
    </ul>

</body>
</html>

2.4、屬性選擇器(常用)

class+id結合

  • 屬性名
  • 屬性名 = 屬性值(正則)
  • **= 絕對等于 **
  • *= 包含
  • ^= 以...開頭
  • $= 以...結尾
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .demo a{
            float: left;
            display: block;
            height: 50px;
            width: 50px;
            border-radius: 10px;
            background: blue;
            text-align: center;
            color: gainsboro;
            text-decoration: none;
            margin-right: 5px;
            font: bold 20px/50px Arial;
        }
    /* 
        1.屬性名
        2.屬性名=屬性值(正則)
        3.= 絕對等于   *=  包含
        4.^= 以...開頭
        5.$= 以...結尾
    */
    /*選中存在id屬性的元素  a[]{} */
        a[id]{
            background: #2be24e;
        }

    /*選中id=first*/
        a[id=first]{
            background: #ff0b2f;
        }
    /*class中有link的*/
        a[class *= "link"]{
            background: cadetblue;
        }
    /*選中href中以http開頭的*/
        a[href^=http]{
            background: #ff0b2f;
        }

    /* 選中href中以pdf結尾的*/
        a[href$=pdf]{
            background: #2be24e;
        }
    </style>
</head>
<body>

    <p class="demo">

        <a href=https://www.cnblogs.com/P935074243/p/"http://www.baidu.com/" class="link item first" id="first">1
        2
        3
        4
        5
        6
        7
        8
        9
        10

    

image-20200604155250681

3、美化網頁元素

3.1、為什么要美化網頁

  • 有效的傳遞頁面資訊
  • 美化網頁,頁面漂亮才能吸參考戶
  • 凸顯頁面主題
  • 提高用戶體驗

span標簽:重點要突出的字,使用span套起來

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #title1{
            font-size: 50px;
        }
    </style>
</head>
<body>

歡迎學習<span id="title1">java</span>
</body>
</html>

3.2、字體樣式

   <!--
        font-family:    字體
        font-size:  字體大小
        font-weight:    字體粗細
        color:  字體顏色
    -->
<style>
    body{
        font-family: "Arial Black", 楷體;
    }
    h1{
        font-size: 50px;
        color: #ff0b2f;
    }
    .p1{
        font-weight: bold;
    }
</style>

<!--字體風格-->
<style>
    p{
        font: oblique bolder 16px "楷體" ;
    }
</style>

3.3、文本樣式

  • 顏色 color: rgb/rgba/單詞;

  • 對齊方式 text-align: center;水平居中

  • 首行縮進 text-indent: 2em;

  • 行高 height: 300px;塊高

    ? line-height: 300px;行高

    ? 行高和塊高度一致,就可以實作單行文本上下居中

  • 裝飾劃線 text-decoration:

  • 文本圖片水平對齊 vertical-align: middle;

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--
        顏色:
            單詞
            RGB:0~F
            RGBA :A:0~1
        text-align: center;排版 水平居中
        text-indent: 2em;段落首行縮進
        height: 300px;
        line-height: 300px;行高和塊高度一致,就可以上下居中
    -->
    <style>
        h1{
            color: rgba(0,255,255,0.9);
            text-align: center;/*文本居中*/
        }
        .p1{
            text-indent: 2em;
        }
        .p3{
            background: blue;
            height: 300px;
            line-height: 300px;
        }
        
        /*下劃線*/
        .l1{
            text-decoration: underline;
        }
        
        /*中劃線*/
        .l2{
            text-decoration: line-through;
        }
        
        /*上劃線*/
        .l3{
            text-decoration: overline;
        }
        
        /*超鏈接去下劃線*/
        a{
            text-decoration: none;
        }
        
        /*水平對齊 參照物, a b */
        img,span{
            vertical-align: middle;
        }
    </style>
</head>
<body>
    <a href=https://www.cnblogs.com/P935074243/p/"">123
    

123123

123123

123123

《魁拔》

是2008年北京青青樹動漫科技有限公司以系列影片電影的第一部《魁拔之十萬火急》為基礎,重新剪輯而成的TV影片, 由王川執導,田博、馬華等編劇,劉婧犖,竹內順子等配音,

TV版完整保留了電影的世界觀、人物設定、故事內容和情節主線,但重制了片頭曲, 《魁拔妖俠傳》是魁拔系列電影的前傳,主要講述的是有關卡拉肖克潘家族的故事,與電影關系并不大, 目前大家所說的魁拔通常指魁拔系列影片電影,

jdlajsdajldjalsjd

3.4、超鏈接偽類和陰影

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*默認顏色*/
        a{
            text-decoration: none;
            color: black;
        }
        /*滑鼠懸浮的狀態*/
        a:hover{
            color: orange;
            font-size: 20px;
        }
        /*滑鼠按住未釋放狀態*/
        a:active{
            color: #2be24e;
        }
        /*text-shadow:陰影顏色 水平偏移 垂直偏移 陰影半徑*/
        #price{
            text-shadow: cadetblue 5px 5px 1px;
        }
        
        p:hover{
            background: blueviolet;
        }

    </style>
</head>
<body>

    <a href=https://www.cnblogs.com/P935074243/p/"#">
        
    
    

碼出高效:Java開發手冊

作者:孤盡老師

¥99

image-20200604175709153


3.5、串列

#nav{
    width: 300px;
    background: darkgrey;
}

.title{
    font-size: 18px;
    font-weight: bold;
    text-indent: 1em;
    line-height: 35px;
    background: #ff0b2f;
}
/*
list-style:
            none;去掉圓點
            circle;空心圓
            decimal:數字
            square:正方形
*/

/*ul{*/
/*    background: darkgrey;*/
/*}*/
ul li{
    height: 30px;
    list-style: none;
    text-indent: 1em;
}

a{
    text-decoration: none;
    font-size: 14px;
    color: black;
}

a:hover{
    color: orange;
    text-decoration: underline;

}

image-20200604183804290

3.6、背景影像

背景顏色

背景圖片

div{
    width: 1400px;
    height: 700px;
    border: 1px solid red;
    background-image: url("images/1.jpg");
    /*默認平鋪*/
}
.div1{
    background-repeat: repeat-x;/*水平平鋪*/

}
.div2{
    background-repeat: repeat-y;/*豎直平鋪*/
}
.div3{
    background-repeat: no-repeat;/*不平鋪*/
}

3.7、漸變

推薦網站:https://www.grabient.com/

background-color: #FFFFFF;
background-image: linear-gradient(124deg, #FFFFFF 0%, #6284FF 50%, #FF0000 100%);

image-20200605075955302

4、盒子模型

image-20200605080438896

4.1、什么是盒子

  • margan:外邊距
  • padding:內邊距
  • border:邊框

4.2、邊框

  • 邊框的粗細
  • 邊框的樣式
  • 邊框的顏色
/*body總有一個默認的外邊距margin:8dp*/
body{
    margin: 0;
}
#app{
    width: 300px;
    border: 1px solid red;/*粗細 樣式 顏色*/
}
h2{
    font-size: 16px;
    background: cadetblue;
    line-height: 30px;
    margin: 0;
    color: #FFFFFF;
}
form{
    background: cadetblue;
}
div:nth-of-type(1) input{
    border: 3px solid black;
}
div:nth-of-type(2) input{
    border: 3px dashed #be0be2;
}
div:nth-of-type(2) input{
    border: 2px dashed #2be24e;
}

4.3、內外邊距

<!--外邊距可以使居中-->
<style>
    /*body總有一個默認的外邊距margin:8dp*/
    body{
        margin: 0;
    }
    /*  margin:0;一個引數為上下左右
        margin: 0 auto;上下為0,左右自動,實作水平居中
        margin:0 1px 2px 3px;四個引數為上右下左,順時針
    */
    #app{
        width: 300px;
        border: 1px solid red;/*粗細 樣式 顏色*/
        margin: 0 auto;
    }
    h2{
        font-size: 16px;
        background: cadetblue;
        line-height: 30px;
        margin: 0;
        color: #FFFFFF;
    }
    form{
        background: cadetblue;
    }
   input{
       border: 1px solid black;
   }
    div:nth-of-type(1){
        padding: 10px;
    }

盒子的計算方式:這個元素到底多大?

? margin+border+padding+內容寬度

image-20200605083615975

4.4、圓角邊框

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- border-radius: 50px 20px;左上右下  右上左下-->
    <!--圓圈:圓角 = 寬度的一半 -->
    <style>
        div{
            width: 100px;
            height: 50px;
            border: 10px solid red;
            border-radius: 100px 100px 0 0;
        }
        img{
            border-radius: 100px;
        }
    </style>
</head>
<body>
<div></div>
<img src=https://www.cnblogs.com/P935074243/p/"images/1.jpg" alt="">


4.5、盒子陰影

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--
           margin:0 auto;居中要求:外面是一個塊元素,塊元素有固定的寬度
    -->
    <style>

        div{
            width: 1000px;
            height: 500px;
            text-align: center;
        }
        img{
            border-radius: 100px;
            box-shadow: 10px 10px 100px yellow;
            margin: 0 auto;
            text-align: center;
        }
    </style>
</head>
<body>

    <div>
        <img src=https://www.cnblogs.com/P935074243/p/"images/1.jpg" alt="">
    

5、浮動

5.1、標準檔案流

塊級元素:獨占一行

h1~h6 p div 串列...

行內元素:不獨占一行

span a img strong...

行內元素可以被包含在塊級元素中,反之則不可以

5.2、display

<!--display:
            block;塊元素
            inline;行內元素
            inline-block;是塊元素,但是可以行內,在同一行
            none;不顯示
-->
<style>
    div{
        width: 100px;
        height: 100px;
        border: red solid 1px;
        display: inline;
    }
    span{
        width: 100px;
        height: 100px;
        border: red solid 1px;
        display: inline-block;
    }
</style>

這個也是一種能夠實作行內元素排列的方式,但是我們很多情況都使用float

5.3、float

左右浮動

div{
    margin: 10px;
    padding: 5px;
}
#father{
    border: 1px solid red;
}

.layer01{
    border: 1px dashed black;
    display: inline-block;
    float: left;
}

.layer02{
    border: 1px dashed green;
    display: inline-block;
    float: left;
}

.layer03{
    border: 1px dashed blue;
    display: inline-block;
    float: left;
}

.layer04{
    border: 1px dashed paleturquoise;
    font-size: 12px;
    line-height: 23px;
    display: inline-block;
    float: left;
    clear: both;
}

5.4、父級邊框塌陷問題

clear

clear:
        right; 右側不允許有浮動元素
        left; 左側不允許有浮動元素
        both;兩側都不允許有浮動元素

解決方案:

5.5、對比

6、定位

6.1、相對定位

相對定位:position: relative;

相對于原來的位置,進行指定的偏移,相對定位的話,它任然在標準檔案流中,原來的位置會被保留

top: -20px;
left: 20px;
bottom: -10px;
right: 20px;
<!DOCTYPE html>
<html lang="en">
<head>
    <!--相對定位:相對于自己原來的位置進行定位-->
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        body{
            padding: 20px;
        }
        div{
            margin: 10px;
            padding: 5px;
            font-size: 12px;
            line-height: 15px;
        }
        #father{
            border: 1px solid red;
            padding: 0;
        }
        #first{
            background-color: #23ff66;
            border: 1px dashed #23ff98;
            position: relative;/*相對定位:上下左右*/
            top: -20px;
            left: 20px;
        }
        #second{
            background-color: #34cedd;
            border: 1px dashed #34ceff;
        }
        #third{
            background-color: #ff8299;
            border: 1px dashed #ff82fc;
            position: relative;
            bottom: -10px;
            right: 20px;
        }
    </style>
</head>
<body>

<div id="father">
    <div id="first">第一個盒子</div>
    <div id="second">第二個盒子</div>
    <div id="third">第三個盒子</div>
</div>

</body>
</html>

練習:方塊定位

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #box{
            width: 300px;
            height: 300px;
            border: red 1px solid;
            padding: 10px;
        }
        a{
            width: 100px;
            height: 100px;
            text-decoration: none;
            background: pink;
            line-height: 100px;
            text-align: center;
            color: #FFFFFF;
            display: block;
        }
        a:hover{
            background: #6284FF;
        }
        .a2,.a4{
            position: relative;
            left: 200px;
            top: -100px;
        }
        .a5{
            position: relative;
            top: -300px;
            right: -100px;
        }
    </style>
</head>
<body>

    <div id="box">
        <a href=https://www.cnblogs.com/P935074243/p/"#" class="a1">鏈接1
        鏈接2
        鏈接3
        鏈接4
        鏈接5
    

image-20200605165053062

6.2、絕對定位

定位:基于xxx定位,上下左右

相對于父級或者瀏覽器的位置,進行指定的偏移,絕對定位的話,它不在在標準檔案流中,原來的位置不會被保留

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        div{
            margin: 10px;
            padding: 5px;
            font-size: 12px;
            line-height: 15px;
        }
        #father{
            border: 1px solid red;
            padding: 0;
            position: relative;
        }
        #first{
            background-color: #23ff66;
            border: 1px dashed #23ff98;
        }
        #second{
            background-color: #34cedd;
            border: 1px dashed #34ceff;
            position: absolute;
            right: 30px;
        }
        #third{
            background-color: #ff8299;
            border: 1px dashed #ff82fc;
        }
    </style>
</head>
<body>

<div id="father">
    <div id="first">第一個盒子</div>
    <div id="second">第二個盒子</div>
    <div id="third">第三個盒子</div>
</div>

</body>
</html>

6.3、固定定位 fixed

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            height: 1000px;
        }
       div:nth-of-type(1){ /*絕對定位,相對于瀏覽器初始位置*/
            width: 100px;
            height: 100px;
            background: #6284FF;
            position: absolute;
            right: 0;
            bottom: 0;
        }
        div:nth-of-type(2){/*fixed,固定定位*/
            width: 50px;
            height: 50px;
            background: #2be24e;
            position: fixed;
            right: 0;
            bottom: 0;
        }
    </style>
</head>
<body>
    <div>div1</div>
    <div>div2</div>
</body>
</html>

image-20200605170712961

6.4、z-index

圖層~

z-index:默認是0,最高無限制

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href=https://www.cnblogs.com/P935074243/p/"css/style.css">

<body>

  • 大家好
  • 時間:2099-1-1
  • 地點:月球一號基地

opacity: 0.5;/背景透明度/

#content{
    width: 380px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 25px;
    border: 1px solid red;
}
ul,li{
    margin: 0;
    padding: 0;
    list-style: none;
}
/*父級元素相對定位*/
#content ul{
    position: relative;
}
.tipText,.tipBg{
    position: absolute;
    width: 380px;
    height: 25px;
    top: 200px;
}
.tipBg{
    background: #05e29b;
    opacity: 0.5;/*背景透明度*/
}
.tipText{
    z-index: 999;
}

7、影片

8、總結

轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/28056.html

標籤:Html/Css

上一篇:位元組、騰訊、滴滴前端面試經驗分享,裸辭過后,我終于又活過來了!

下一篇:2020年Web前端開發工程師市場怎么樣?學會什么技術才能拿到高薪

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • IEEE1588PTP在數字化變電站時鐘同步方面的應用

    IEEE1588ptp在數字化變電站時鐘同步方面的應用 京準電子科技官微——ahjzsz 一、電力系統時間同步基本概況 隨著對IEC 61850標準研究的不斷深入,國內外學者提出基于IEC61850通信標準體系建設數字化變電站的發展思路。數字化變電站與常規變電站的顯著區別在于程序層傳統的電流/電壓互 ......

    uj5u.com 2020-09-10 03:51:52 more
  • HTTP request smuggling CL.TE

    CL.TE 簡介 前端通過Content-Length處理請求,通過反向代理或者負載均衡將請求轉發到后端,后端Transfer-Encoding優先級較高,以TE處理請求造成安全問題。 檢測 發送如下資料包 POST / HTTP/1.1 Host: ac391f7e1e9af821806e890 ......

    uj5u.com 2020-09-10 03:52:11 more
  • 網路滲透資料大全單——漏洞庫篇

    網路滲透資料大全單——漏洞庫篇漏洞庫 NVD ——美國國家漏洞庫 →http://nvd.nist.gov/。 CERT ——美國國家應急回應中心 →https://www.us-cert.gov/ OSVDB ——開源漏洞庫 →http://osvdb.org Bugtraq ——賽門鐵克 →ht ......

    uj5u.com 2020-09-10 03:52:15 more
  • 京準講述NTP時鐘服務器應用及原理

    京準講述NTP時鐘服務器應用及原理京準講述NTP時鐘服務器應用及原理 安徽京準電子科技官微——ahjzsz 北斗授時原理 授時是指接識訓通過某種方式獲得本地時間與北斗標準時間的鐘差,然后調整本地時鐘使時差控制在一定的精度范圍內。 衛星導航系統通常由三部分組成:導航授時衛星、地面檢測校正維護系統和用戶 ......

    uj5u.com 2020-09-10 03:52:25 more
  • 利用北斗衛星系統設計NTP網路時間服務器

    利用北斗衛星系統設計NTP網路時間服務器 利用北斗衛星系統設計NTP網路時間服務器 安徽京準電子科技官微——ahjzsz 概述 NTP網路時間服務器是一款支持NTP和SNTP網路時間同步協議,高精度、大容量、高品質的高科技時鐘產品。 NTP網路時間服務器設備采用冗余架構設計,高精度時鐘直接來源于北斗 ......

    uj5u.com 2020-09-10 03:52:35 more
  • 詳細解讀電力系統各種對時方式

    詳細解讀電力系統各種對時方式 詳細解讀電力系統各種對時方式 安徽京準電子科技官微——ahjzsz,更多資料請添加VX 衛星同步時鐘是我京準公司開發研制的應用衛星授時時技術的標準時間顯示和發送的裝置,該裝置以M國全球定位系統(GLOBAL POSITIONING SYSTEM,縮寫為GPS)或者我國北 ......

    uj5u.com 2020-09-10 03:52:45 more
  • 如何保證外包團隊接入企業內網安全

    不管企業規模的大小,只要企業想省錢,那么企業的某些服務就一定會采用外包的形式,然而看似美好又經濟的策略,其實也有不好的一面。下面我通過安全的角度來聊聊使用外包團的安全隱患問題。 先看看什么服務會使用外包的,最常見的就是話務/客服這種需要大量重復性、無技術性的服務,或者是一些銷售外包、特殊的職能外包等 ......

    uj5u.com 2020-09-10 03:52:57 more
  • PHP漏洞之【整型數字型SQL注入】

    0x01 什么是SQL注入 SQL是一種注入攻擊,通過前端帶入后端資料庫進行惡意的SQL陳述句查詢。 0x02 SQL整型注入原理 SQL注入一般發生在動態網站URL地址里,當然也會發生在其它地發,如登錄框等等也會存在注入,只要是和資料庫打交道的地方都有可能存在。 如這里http://192.168. ......

    uj5u.com 2020-09-10 03:55:40 more
  • [GXYCTF2019]禁止套娃

    git泄露獲取原始碼 使用GET傳參,引數為exp 經過三層過濾執行 第一層過濾偽協議,第二層過濾帶引數的函式,第三層過濾一些函式 preg_replace('/[a-z,_]+\((?R)?\)/', NULL, $_GET['exp'] (?R)參考當前正則運算式,相當于匹配函式里的引數 因此傳遞 ......

    uj5u.com 2020-09-10 03:56:07 more
  • 等保2.0實施流程

    流程 結論 ......

    uj5u.com 2020-09-10 03:56:16 more
最新发布
  • 使用Django Rest framework搭建Blog

    在前面的Blog例子中我們使用的是GraphQL, 雖然GraphQL的使用處于上升趨勢,但是Rest API還是使用的更廣泛一些. 所以還是決定回到傳統的rest api framework上來, Django rest framework的官網上給了一個很好用的QuickStart, 我參考Qu ......

    uj5u.com 2023-04-20 08:17:54 more
  • 記錄-new Date() 我忍你很久了!

    這里給大家分享我在網上總結出來的一些知識,希望對大家有所幫助 大家平時在開發的時候有沒被new Date()折磨過?就是它的諸多怪異的設定讓你每每用的時候,都可能不小心踩坑。造成程式意外出錯,卻一下子找不到問題出處,那叫一個煩透了…… 下面,我就列舉它的“四宗罪”及應用思考 可惡的四宗罪 1. Sa ......

    uj5u.com 2023-04-20 08:17:47 more
  • 使用Vue.js實作文字跑馬燈效果

    實作文字跑馬燈效果,首先用到 substring()截取 和 setInterval計時器 clearInterval()清除計時器 效果如下: 實作代碼如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta ......

    uj5u.com 2023-04-20 08:12:31 more
  • JavaScript 運算子

    JavaScript 運算子/運算子 在 JavaScript 中,有一些運算子可以使代碼更簡潔、易讀和高效。以下是一些常見的運算子: 1、可選鏈運算子(optional chaining operator) ?.是可選鏈運算子(optional chaining operator)。?. 可選鏈操 ......

    uj5u.com 2023-04-20 08:02:25 more
  • CSS—相對單位rem

    一、概述 rem是一個相對長度單位,它的單位長度取決于根標簽html的字體尺寸。rem即root em的意思,中文翻譯為根em。瀏覽器的文本尺寸一般默認為16px,即默認情況下: 1rem = 16px rem布局原理:根據CSS媒體查詢功能,更改根標簽的字體尺寸,實作rem單位隨螢屏尺寸的變化,如 ......

    uj5u.com 2023-04-20 08:02:21 more
  • 我的第一個NPM包:panghu-planebattle-esm(胖虎飛機大戰)使用說明

    好家伙,我的包終于開發完啦 歡迎使用胖虎的飛機大戰包!! 為你的主頁添加色彩 這是一個有趣的網頁小游戲包,使用canvas和js開發 使用ES6模塊化開發 效果圖如下: (覺得圖片太sb的可以自己改) 代碼已開源!! Git: https://gitee.com/tang-and-han-dynas ......

    uj5u.com 2023-04-20 08:01:50 more
  • 如何在 vue3 中使用 jsx/tsx?

    我們都知道,通常情況下我們使用 vue 大多都是用的 SFC(Signle File Component)單檔案組件模式,即一個組件就是一個檔案,但其實 Vue 也是支持使用 JSX 來撰寫組件的。這里不討論 SFC 和 JSX 的好壞,這個仁者見仁智者見智。本篇文章旨在帶領大家快速了解和使用 Vu ......

    uj5u.com 2023-04-20 08:01:37 more
  • 【Vue2.x原始碼系列06】計算屬性computed原理

    本章目標:計算屬性是如何實作的?計算屬性快取原理以及洋蔥模型的應用?在初始化Vue實體時,我們會給每個計算屬性都創建一個對應watcher,我們稱之為計算屬性watcher ......

    uj5u.com 2023-04-20 08:01:31 more
  • http1.1與http2.0

    一、http是什么 通俗來講,http就是計算機通過網路進行通信的規則,是一個基于請求與回應,無狀態的,應用層協議。常用于TCP/IP協議傳輸資料。目前任何終端之間任何一種通信方式都必須按Http協議進行,否則無法連接。tcp(三次握手,四次揮手)。 請求與回應:客戶端請求、服務端回應資料。 無狀態 ......

    uj5u.com 2023-04-20 08:01:10 more
  • http1.1與http2.0

    一、http是什么 通俗來講,http就是計算機通過網路進行通信的規則,是一個基于請求與回應,無狀態的,應用層協議。常用于TCP/IP協議傳輸資料。目前任何終端之間任何一種通信方式都必須按Http協議進行,否則無法連接。tcp(三次握手,四次揮手)。 請求與回應:客戶端請求、服務端回應資料。 無狀態 ......

    uj5u.com 2023-04-20 08:00:32 more