引入CSS樣式檔案

來源:互聯網
上載者:User

標籤:css   樣式   引入   

一、在"index.html"檔案所在的檔案夾建立檔案夾"css"。

二、在"css"檔案夾中建立文字文件"index.css"。

三、在sublime中開啟"index.css"檔案。

四、將"index.html"檔案中的<style></style>部分剪下到"index.css"檔案中。(包括<style>和</style>)

五、在"index.css"檔案中將<style>和</style>刪掉,ctrl+A全選,然後用shift+tab來調整格式,最後儲存。

六、在"index.html"檔案的<head>中,加入<link rel="stylesheet" type="text/css" href="./css/index.css">。(其中href後代表的是index.css檔案所在的位置)

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/88/FC/wKioL1gEVH3DvKlWAAC5l_Z7Rd8668.png-wh_500x0-wm_3-wmp_4-s_2325722990.png" title="2.PNG" alt="wKioL1gEVH3DvKlWAAC5l_Z7Rd8668.png-wh_50" />

650) this.width=650;" src="http://s5.51cto.com/wyfs02/M00/88/FF/wKiom1gEVJPR4hu3AADsa06L3n8801.png-wh_500x0-wm_3-wmp_4-s_624541350.png" title="捕獲.PNG" alt="wKiom1gEVJPR4hu3AADsa06L3n8801.png-wh_50" />


本文出自 “12145704” 部落格,請務必保留此出處http://12155704.blog.51cto.com/12145704/1862575

引入CSS樣式檔案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.