Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537
lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>nw百度首頁</title>
<style>
.w1, .w2, .w3, .w4, .w5, .w6 {
width: auto;
}
.bk {
border: 1px solid red;
width: auto;
}
.w1 {
height: 46px;
}
.w1_1 {
width: 463px;
height: 46px;
float: right;
}
.w1_2 img {
margin-top: 15px;
margin-left: 391px;
}
.w2 {
height: 201px;
}
.w2 img {
margin-top: 90px;
margin-left: 690px;
}
.w3 {
height: 35px;
margin-left: 480px;
}
.w3_2 img {
position: relative;
right: 36px;
top: -5px;
}
.w4 {
height: 337px;
}
.w5 {
height: 64px;
}
.w5_1, .w5_2, .w5_3, .w5_4, .w5_5 {
float: left
}
.w5_1 {
font-size: 12px;
margin-left: 480px;
width: 642px;
}
.w5_2 {
}
.w5_3 p {
width: 93px;
margin-left: 8px;
line-height: 20px;
}
.w5_4 {
}
.w5_5 {
line-height: 22px;
}
.w5_5 p {
width: 93px;
margin-left: 8px;
line-height: 20px;
}
.w5_6{line-height:19px;}
.w5_6_1 span{margin-right:11px;}
ul {
list-style-type: none;
margin: 0px;
padding: 0px;
}
li {
float: left;
margin-right: 20px;
margin-top: 24px;
font-size: 13px;
font-weight: bold;
}
a {
color: #333333
}
</style>
</head>
<body style="margin:0px auto;">
<div class="w1">
<div class="w1_1 ">
<ul>
<li><a href="">糯米</a></li>
<li><a href="">新聞</a></li>
<li><a href="">hao123</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>
<p class="wl_2"><img src="images/111.jpg" alt=""> </p>
</div>
<p></p>
</div>
<div class="w2"><img src="images/222.jpg" alt=""></div>
<div class="w3 ">
<div class="w3_1">
<div class="w3_2">
<input style="width:536px;height:35px;border:1px solid #ccc; position: relative;
top:-13px" type="text">
<img src="images/333.jpg" alt=""> <img src="images/444.jpg" alt="" style="position:relative;left:-33px; top:0px" ;=""></div>
</div>
</div>
<div class="w4"></div>
<div class="w5 ">
<div class="w5_1">
<div class="w5_2" ><img src="images/555.jpg" alt="" style="display:block; float:left" ></div>
<div class="w5_3" >
<p > <b style="color:#666666;">手機百度</b><span style="color:#999999; display:block ">快人一部</span> </p>
</div>
<div class="w5_4 "><img src="images/666.jpg" alt="" style="display:block;" ></div>
<div class="w5_5 ">
<p > <b style="color:#666666; font-weight:bold; ">百度糯米</b><span style="color:#999999; display:block ">一元大餐</span> </p>
</div>
<div class="w5_6">
<div class="w5_6_1"> <span>把百度設為主頁</span> <span>關于百度</span> <span>About Baidu</span> <span>百度推廣</span> </div>
<div class="w5_6_2">?2016 Baidu 使用百度前必讀 意見反饋 京ICP證030173號 </div><img src="images/777.jpg" alt="" style="vertical-align:middle;">
<div class="w5_6_3"><img src="images/888.jpg" alt="" style="vertical-align:middle;">京公網(wǎng)安備11000002000001號</div>
</div>
</div>
</div>
<div class="w6 "></div>
</body>
</html>
國家發(fā)生某些重大事件時,我國的門戶網(wǎng)站都有將首頁變?yōu)楹诎椎牧晳T。當然,也有一些網(wǎng)站并沒有將首頁變成黑白,例如抖音。作為一個技術小白,怎么能夠在黑白模式下刷這些不聽話的網(wǎng)站呢?
首先技術小白并不需要懂代碼,只需要簡單了解網(wǎng)站的渲染原理。隨便搜索幾個已經(jīng)變?yōu)楹诎醉撁娴木W(wǎng)站,使用F12查詢網(wǎng)站的源碼。在<heda>...<head>中一行一行刪除,直至找到能夠控制網(wǎng)站變成黑白頁面的關鍵變量。網(wǎng)站有兩種渲染形式:前端渲染和后端渲染,我們只需要去copy后端渲染模式下網(wǎng)站的代碼即可(因為前端渲染是使用接口傳輸?shù)模a對我們來說是隱藏的)。
具體的代碼如下:
<style>
html {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
filter: grayscale(100%);
filter: gray;
}
</style>
隨后我們只需要找到?jīng)]有變?yōu)楹诎啄J降木W(wǎng)頁(以抖音為例),將上述的代碼copy至瀏覽器elements的<head>...<head>板塊,即可快速實現(xiàn)將網(wǎng)站變?yōu)楹诎椎男ЧN覀兙涂梢杂淇斓卦诤诎啄J较滤⒁曨l了,但前提是不能刷新網(wǎng)頁,畢竟我們無法控制網(wǎng)站的服務器。
404頁面的目的是:告訴瀏覽者其所請求的頁面不存在或鏈接錯誤,同時引導用戶使用網(wǎng)站其他頁面而不是關閉窗口離開。
現(xiàn)在大部分開源系統(tǒng)都會為大家考慮到404頁面的跳轉(zhuǎn)引導,比如:z-blog/wordpress,都是很不錯的開源系統(tǒng)(注意不要用最原始的開源系統(tǒng),而是采用帶有模板的系統(tǒng))。菜鳥后院網(wǎng)站本身也是wordpress的開源程序,然后我們用robin模板。(花299元擁有和菜鳥后院一樣的網(wǎng)站,包括域名和1G阿里巴巴云空間)
搜索引擎使用 http 狀態(tài)碼來識別網(wǎng)頁的狀態(tài)。當搜索引擎獲得不正確的鏈接時,網(wǎng)站應該返回一個狀態(tài)代碼404,告訴搜索引擎放棄索引該鏈接。如果返回一個200或302狀態(tài)代碼,搜索引擎會對鏈接進行索引,導致許多不同的鏈接指向相同的頁面內(nèi)容。結(jié)果,搜索引擎對這個網(wǎng)站的信任度大大降低。很多網(wǎng)站存在這個問題,那就是404頁面返回的是200或302狀態(tài)碼而不是404狀態(tài)碼。
1、做一個簡單的404頁面,命名如:404.html;
2、通過ftp把這個404頁面上傳到網(wǎng)站根目錄;
3、進入虛擬主機管理后臺,找到404頁面提交的入口,添加以上404頁面的地址,如:www.cnbackyard.com/404.html(一般空間服務商都有帶著種功能,也可以直接找他們技術客服完成這步操作)
4、輸入一個錯誤的鏈接進行訪問測試,隨便輸入,比如:www.cnbackyard.com/123.html,如果正確返回到404.html頁面,則算正確;
5、使用站長工具(http://tool.chinaz.com/pagestatus),輸入任意一個錯誤網(wǎng)址,檢查返回值是否為404。如果返回值是200,代表該主機商設置有誤,可以與其技術反饋。
以上操作方法對于一個seo初學者來說,還是有點復雜,同學們可以關注燃燈教育直播課程,參加我們的培訓,理解起來會更透徹一點。
*請認真填寫需求信息,我們會在24小時內(nèi)與您取得聯(lián)系。