html
  • css
  • 2016-04-03 71 views 0 likes 
    0

    問題不會1.Fonts改變
    問題2.Height在「ID的」不會改變字體不會改變,ID高度不會顯示

    問題之一,是有什麼不恰當的字體代碼?

    <head> 
        <title>Jubilee Austin Developer</title> 
    <link rel="stylesheet" href="css/main.css"> 
    <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700' rel='stylesheet' type='text/css'> 
    </head> 
    

    問題二,這是3個「ID」中的1個「我有。它不響應CSS或至少它不是物理顯示高度變化

    <section id="about"> 
         <div class="full-width"> 
         <h2>A little bit about me</h2> 
         <div class="half-width"> 
          <p> i've made my home base in Providence, Rhode Island with my small growing family. My journey into tech started with a degree in journalism.As I started sharing my writing online, I was fascinated with how easily I could get my voice out there. I was hooked and wanted to learn how to build my own site to fit my own specific needs.</p> 
         </div> 
          <div class="half-width"> 
          <p>That curiosity then opened a door that could never be shut. When I learned how to build my first website, I realized I found something that gave me the freedom &amp; versatility I was looking for in my work. Now i've made a full switch to front-end development, where I can use my organization skills and eye for detail to write clean, elegant code.</p> 
          </div> 
          </div> 
        </section> 
    

    我的整個CSS

    /****Base syles***/ 
    body { 
        font-family: 'Source Sans Pro', sans-serif; 
    } 
    #about, #work, #contact { 
        height: 600px; 
    } 
    
    萬一

    整個代碼,你需要的任何東西

    http://i.stack.imgur.com/Q73h1.png

    如果我遺漏了任何你需要的東西,請隨時詢問

    +0

    你確定css src是正確的嗎? – nCore

    回答

    0

    關於高度的部分:你不會看到的高度,如果內容比父元素更小高,如果沒有背景或邊框。添加諸如border: 1px solid red;之類的內容以查看元素的完整高度。

    #about, #work, #contact { 
        height: 600px; 
        border: 1px solid red; 
    } 
    
    0

    只需翻轉你打電話給你的風格順序:

    <link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700' rel='stylesheet' type='text/css'> 
    <link href="css/main.css" rel="stylesheet" type='text/css'> 
    
    相關問題