RexYuan / courseNTNU

(Discontinued) NTNU course rating catalog.
The Unlicense
1 stars 0 forks source link

把整塊 li 變成連結 #23

Closed RexYuan closed 8 years ago

RexYuan commented 8 years ago

節錄:

<div class="col-md-4 col-sm-6 col-xs-12">
        <h3 id="CGE">通識</h3>
        <ul class="list-group">
            <a href="http://www.coursentnu.com/index.php?dpm=0GU"><li class="list-group-item"><h4>一般通識</h4></li></a>
            <a href="http://www.coursentnu.com/index.php?dpm=01U"><li class="list-group-item"><h4>藝術與美感</h4></li></a>
            <a href="http://www.coursentnu.com/index.php?dpm=02U"><li class="list-group-item"><h4>哲學思維與道德推理</h4></li></a>
            <a href="http://www.coursentnu.com/index.php?dpm=03U"><li class="list-group-item"><h4>公民素養與社會探究</h4></li></a>
            <a href="http://www.coursentnu.com/index.php?dpm=04U"><li class="list-group-item"><h4>歷史與文化</h4></li></a>
            <a href="http://www.coursentnu.com/index.php?dpm=05U"><li class="list-group-item"><h4>數學與科學思維</h4></li></a>
            <a href="http://www.coursentnu.com/index.php?dpm=06U"><li class="list-group-item"><h4>科學與生命</h4></li></a>
        </ul>
      </div>

如此段的設置會造成 W3 HTML Validator 產生以下錯誤

Error: Element a not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

不過這能夠達到讓整塊 li 都是連結,需要尋求其他替代方案達到一樣效果

wildskyf commented 8 years ago

我有空來改,這個我當時寫法是錯的,已經知道有什麼解法了

Wildsky

-------- 原始郵件 -------- 寄件者:RexYuan notifications@github.com 傳送日期:Sat, 15 Aug 2015 23:04:39 +0800 收件者:RexYuan/courseNTNU courseNTNU@noreply.github.com 主旨:[courseNTNU] 把整塊 li 變成連結 (#23)

節錄:

如此段的設置會造成 W3 HTML Validator 產生以下錯誤

Error: Element a not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

不過這能夠達到讓整塊 li 都是連結,需要尋求其他替代方案達到一樣效果

— Reply to this email directly or view it on GitHub.

RexYuan commented 8 years ago

I'm closing this issue because this will be resolved at #26