主頁 > 企業開發 > 博客園樣式(仿簡書)

博客園樣式(仿簡書)

2020-09-17 18:25:28 企業開發

成品圖

設定流程

博客園  →  管理  →  設定  →  博客皮膚  →  SimpleMemory

頁面定制CSS代碼

禁用模板默認css不用勾選

body {
    background: none;
}
.postTitle {
    border-bottom: 0px solid #969696;
    border-left: 0px solid #969696;
    color: #969696;
    display: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    padding: 0;
}

.postTitle a:link, .postTitle a:visited, .postTitle a:active {
    color: #969696;
    font-family: -apple-system,SF UI Display,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;
}

.postTitle a:hover{
       color: #646464;
       text-decoration: underline;
}

.c_b_p_desc {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 24px;
    color: #999;
}

.dayTitle {
    display: none;
}

.day {
    padding: 15px 2px 20px 0px;
    border-bottom: 1px solid #f0f0f0;
}

.c_b_p_desc_readmore{
    display:none;
}

#navList a:link, #navList a:visited, #navList a:active {
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #969696;
    line-height: 25px;
}

#navList a:hover {
   color:#646464;
    text-decoration: none;
}

#navList a {
    margin:0;
}

#navigator {
    background-color: #fff;
    margin-top: 0px;
    border-bottom: 1px solid #f0f0f0;
}

.postDesc {
    text-align: left;
}

#sideBar {
    background: #ffffff;
}

.sidebar-block {
    border-bottom: 1px solid #f0f0f0;
}

.catListEssay h3, .catListLink h3, .catListNoteBook h3, .catListTag h3, .catListPostCategory h3, .catListPostArchive h3, .catListArticleArchive h3, .catListImageCategory h3, .mySearch h3, .catListComment h3, .catListView h3, .catListFeedback h3, #blog-sidecolumn .catListTitle {
    background: #ffffff;
    margin-bottom: 10px;
    font-size: 14px;
    color: #969696;
}

.newsItem .catListTitle {
    display: none;
}

a:link {
    color: #333;
    text-decoration: none;
}

a:visited {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #333;
    text-decoration: none;
}
#footer {
    color: #a3a3a3;
}

.main-top {
    margin: 0 auto;
    width: 980px;
    box-sizing: border-box;
    padding-left: 20px;
    padding-top: 80px;
}

.main-top .avatar {
    float: left;
    width: 80px;
    height: 80px;
    margin-left: -2px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 50%;
}

.main-top .title .name {
    display: inline;
    font-size: 21px;
    font-weight: 700;
    vertical-align: middle;
}

.main-top .title {
    padding: 5px 0 0 100px;
}

#blogTitle {
    display: none;
}

.info {
    color: #999;
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
    padding: 20px 0 0 100px;
}

.fa {
    padding: 0 2px 0 2px;
}

#topics .postTitle {
    border-bottom: 0px;
}

#ad_t2,#cnblogs_c1,#under_post_news,#cnblogs_c2,#under_post_kb {
    display: none;
}

.pager {
    color: #969696;
}

.pager a {
    border: 0px solid #9aafe5;
}

div.commentform textarea {
    padding: 0px;
    width: 100%;
    height: 80px;
    font-size: 13px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background-color: hsla(0,0%,71%,.1);
    resize: none;
    display: inline-block;
    vertical-align: top;
    outline-style: none;
}

#btn_comment_submit {
    padding: .2em;
    margin-top: .5em;
    float: right;
    width: 100px;
    margin: 10px 0;
    padding: 8px 18px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    color: #fff!important;
    background-color: #3db922;
    cursor: pointer;
    outline: none;
    display: block;
    height: auto;
}

#homepage_top_pager {
    display: none;
}

#BlogPostCategory,#BlogPostCategory>a {
    color: #c8c8c8;
    font-size: 12px;
}

#comment_nav {
    display: none;
}

#commentbox_opt>a {
    display:none;
}

#comment_form_container>div:first-child{
    display:none;
}

.commentbox_title {
    width: 100%;
}

#div_digg {
    display:none;
}

#author_profile {
    width: 100%;
    background-color: hsla(0,0%,71%,.1);
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 12px;
}

.author_avatar {
    vertical-align: top;
    float: left;
    margin-right: 5px;
    padding-top: 0px;
    padding-left: 0px;
    border: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
}

#author_profile_info {
    padding: 20px;
}

#author_profile_detail {
        padding-left: 20px;
}

#author_profile_detail a{
    color: #969696;
    text-decoration: none;
}

#author_profile_detail a:first-child { 
    color:#333;
    margin-right: 3px;
    line-height: 1.8;
    vertical-align: middle;
}

#commentform_title {
    display:none;
}

#green_channel {
    border: 0px;
}

#green_channel #green_channel_digg {
    display:none;
}

#green_channel #green_channel_follow {
    display:none;
}

#green_channel #green_channel_favorite {
    display:none;
}

#green_channel {
    width: 100%;
    text-align: right;
}

#post_next_prev {
    margin-bottom: 20px;
    margin-top: 20px;
}

.postBody {
    border-bottom: 1px solid #f0f0f0;
}

#topics .postDesc {
    margin-top: 20px;
}

.commentbox_title_left {
    display:none;
}

#tip_comment + p {
    display:none;
}

#tip_comment2 + p {
    display:none;
}

.feedback_area_title {
    color: #969696;
    border-bottom: 1px solid #ccc;
}

.feedbackCon {
    border-bottom: 1px solid #f0f0f0;
}

#cnblogs_post_body p {
    font-size: 16px;
}

#cnblogs_post_body ul li {
    font-size: 15px;
}

#author_profile_follow {
    float: right;
    padding-right: 30px;
    padding-bottom: 10px;
}

#author_profile_follow a {
    color: #969696;
    text-decoration: none;
}




/*生成博客目錄的CSS*/
#uprightsideBar{
    font-size:12px;
    font-family:Arial, Helvetica, sans-serif;
    text-align:left;
    position:fixed;/*將div的位置固定到距離top:50px,right:0px的位置,這樣div就會處在最右邊的位置,距離頂部50px*/
    top:50px;
    right:0px;
    width: auto;
    height: auto; 
}
#sideBarTab{
    float:left;
    width:30px; 
    border:1px solid #e5e5e5;
    border-right:none;
    text-align:center;
    background:#ffffff;
}

#sideBarContents{
    float:left;
    overflow:auto; 
    overflow-x:hidden;!important;
    width:200px;
    min-height:108px;
    max-height:460px;
    border:1px solid #e5e5e5;
    border-right:none; 
    background:#ffffff;
}
#sideBarContents dl{
    margin:0;
    padding:0;
}

#sideBarContents dt{
    margin-top:5px;
    margin-left:5px;
}

#sideBarContents dd, dt {
    cursor: pointer;
}

#sideBarContents dd:hover, dt:hover {
    color:#A7995A;
}
#sideBarContents dd{
    margin-left:20px;
}




/*溢位隱藏設定*/
#topics, #mainContent {
    overflow: visible;
}
#postDesc {
    float: none;
}
View Code

 

博客側邊欄公告

申請支持 JS 代碼,樣式自己看著添加,空著很簡約,

 

頁首 HTML 代碼

<!-- 滑鼠點擊效果 -->
<script src="https://blog-static.cnblogs.com/files/e-cat/cursor-effects.js"></script>

<div class="main-top">

  <a class="avatar" href="#">
    <img src="https://images.cnblogs.com/cnblogs_com/Golanguage/1644030/o_200226083719202011421191788026.jpg" alt="240">
</a>
<div class="title">
    <a class="name" href="https://www.cnblogs.com/linglichong/">喝多也吐,</a>
  </div>
<div class="info">
    世界上有2種人,一種懂二進制,另一種不懂二進制,
  </div>
</div>





<script type="text/javascript">
/*
    功能:生成博客目錄的JS工具
    測驗:IE8,火狐,google測驗通過
    孤傲蒼狼
    2014-5-11
*/
var BlogDirectory = {
    /*
        獲取元素位置,距瀏覽器左邊界的距離(left)和距瀏覽器上邊界的距離(top)
    */
    getElementPosition:function (ele) {        
        var topPosition = 0;
        var leftPosition = 0;
        while (ele){              
            topPosition += ele.offsetTop;
            leftPosition += ele.offsetLeft;        
            ele = ele.offsetParent;     
        }  
        return {top:topPosition, left:leftPosition}; 
    },

    /*
    獲取滾動條當前位置
    */
    getScrollBarPosition:function () {
        var scrollBarPosition = document.body.scrollTop || 
document.documentElement.scrollTop;
        return  scrollBarPosition;
    },
    
    /*
    移動滾動條,finalPos 為目的位置,internal 為移動速度
    */
    moveScrollBar:function(finalpos, interval) {

        //若不支持此方法,則退出
        if(!window.scrollTo) {
            return false;
        }

        //表單滾動時,禁用滑鼠滾輪
        window.onmousewheel = function(){
            return false;
        };
          
        //清除計時
        if (document.body.movement) { 
            clearTimeout(document.body.movement); 
        } 

        var currentpos =BlogDirectory.getScrollBarPosition();//獲取滾動條當前位置

        var dist = 0; 
        if (currentpos == finalpos) {//到達預定位置,則解禁滑鼠滾輪,并退出
            window.onmousewheel = function(){
                return true;
            }
            return true; 
        } 
        if (currentpos < finalpos) {//未到達,則計算下一步所要移動的距離
            dist = Math.ceil((finalpos - currentpos)/10); 
            currentpos += dist; 
        } 
        if (currentpos > finalpos) { 
            dist = Math.ceil((currentpos - finalpos)/10); 
            currentpos -= dist; 
        }
        
        var scrTop = BlogDirectory.getScrollBarPosition();//獲取滾動條當前位置
        window.scrollTo(0, currentpos);//移動視窗
        if(BlogDirectory.getScrollBarPosition() == scrTop)//若已到底部,則解禁滑鼠滾輪,并退出
        {
            window.onmousewheel = function(){
                return true;
            }
            return true;
        }
        
        //進行下一步移動
        var repeat = "BlogDirectory.moveScrollBar(" + finalpos + "," + interval + ")"; 
        document.body.movement = setTimeout(repeat, interval); 
    },
    
    htmlDecode:function (text){
        var temp = document.createElement("div");
        temp.innerHTML = text;
        var output = temp.innerText || temp.textContent;
        temp = null;
        return output;
    },

    /*
    創建博客目錄,
    id表示包含博文正文的 div 容器的 id,
    mt 和 st 分別表示主標題和次級標題的標簽名稱(如 H2、H3,大寫或小寫都可以!),
    interval 表示移動的速度
    */
    createBlogDirectory:function (id, mt, st, interval){
         //獲取博文正文div容器
        var elem = document.getElementById(id);
        if(!elem) return false;
        //獲取div中所有元素結點
        var nodes = elem.getElementsByTagName("*");
        //創建博客目錄的div容器
        var divSideBar = document.createElement('DIV');
        divSideBar.className = 'uprightsideBar';
        divSideBar.setAttribute('id', 'uprightsideBar');
        var divSideBarTab = document.createElement('DIV');
        divSideBarTab.setAttribute('id', 'sideBarTab');
        divSideBar.appendChild(divSideBarTab);
        var h2 = document.createElement('H2');
        divSideBarTab.appendChild(h2);
        var txt = document.createTextNode('目錄導航');
        h2.appendChild(txt);
        var divSideBarContents = document.createElement('DIV');
        divSideBarContents.style.display = 'none';
        divSideBarContents.setAttribute('id', 'sideBarContents');
        divSideBar.appendChild(divSideBarContents);
        //創建自定義串列
        var dlist = document.createElement("dl");
        divSideBarContents.appendChild(dlist);
        var num = 0;//統計找到的mt和st
        mt = mt.toUpperCase();//轉化成大寫
        st = st.toUpperCase();//轉化成大寫
        //遍歷所有元素結點
        for(var i=0; i<nodes.length; i++)
        {
            if(nodes[i].nodeName == mt|| nodes[i].nodeName == st)    
            {
                //獲取標題文本
                var nodetext = nodes[i].innerHTML.replace(/<\/?[^>]+>/g,"");
//innerHTML里面的內容可能有HTML標簽,所以用正則運算式去除HTML的標簽
                nodetext = nodetext.replace(/ /ig, "");//替換掉所有的 
                nodetext = BlogDirectory.htmlDecode(nodetext);
                //插入錨        
                nodes[i].setAttribute("id", "blogTitle" + num);
                var item;
                switch(nodes[i].nodeName)
                {
                    case mt:    //若為主標題 
                        item = document.createElement("dt");
                        break;
                    case st:    //若為子標題
                        item = document.createElement("dd");
                        break;
                }
                
                //創建錨鏈接
                var itemtext = document.createTextNode(nodetext);
                item.appendChild(itemtext);
                item.setAttribute("name", num);
                item.onclick = function(){        //添加滑鼠點擊觸發函式
                    var pos = BlogDirectory.getElementPosition(document.getElementById
("blogTitle" + this.getAttribute("name")));
                    if(!BlogDirectory.moveScrollBar(pos.top, interval)) return false;
                };            
                
                //將自定義表項加入自定義串列中
                dlist.appendChild(item);
                num++;
            }
        }
        
        if(num == 0) return false; 
        /*滑鼠進入時的事件處理*/
        divSideBarTab.onmouseenter = function(){
            divSideBarContents.style.display = 'block';
        }
        /*滑鼠離開時的事件處理*/
        divSideBar.onmouseleave = function() {
            divSideBarContents.style.display = 'none';
        }

        document.body.appendChild(divSideBar);
    }
    
};

window.onload=function(){
    /*頁面加載完成之后生成博客目錄*/
    BlogDirectory.createBlogDirectory("cnblogs_post_body","h2","h3",20);
}
</script>
View Code

 

頁腳 HTML 代碼

添加了一個圖片放大功能,記得修改js,css地址,

記得保存設定,記得保存設定,記得保存設定,

<!-- zoom.js 的樣式 -->
<link rel="stylesheet" type="text/css" href="https://blog-static.cnblogs.com/files/linglichong/zoom.css">
<!-- jQuery 的 cdn -->
<script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.min.js"></script>
<!-- Bootstrap 的 transition.js cdn(過渡影片插件)-->
<script src="https://cdn.bootcss.com/bootstrap/3.2.0/js/transition.js"></script>
<!-- zoom.js 核心代碼 -->
<script src="https://blog-static.cnblogs.com/files/linglichong/zoom.js"></script>
<script type='text/javascript'>$('#cnblogs_post_body img').attr('data-action', 'zoom');</script>
View Code

 

顯示控制元件設定

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

標籤:Html/Css

上一篇:硬核看房利器——Web 全景的實作

下一篇:CSS選擇器有哪幾種?舉例輕松理解CSS選擇器

標籤雲
其他(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