防止網絡不佳,獲取不到css,頁面logo做法
<div>
<a class="logo">百度</a>
</div>
.logo {
display: inline-block;
width: 256px;
height: 0;
background: url(./logobai.png);
background-repeat: no-repeat;
padding-top: 100px;
overflow: hidden;
}
當未加載出css樣式的時候,頁面顯示文章來源:http://www.zghlxwxcb.cn/news/detail-697836.html
加載完css之后文章來源地址http://www.zghlxwxcb.cn/news/detail-697836.html
到了這里,關于日常開發(fā)小點匯總(2)之防止網絡不佳,獲取不到css,頁面logo做法的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!