Git Product home page Git Product logo

Comments (4)

ipaaa avatar ipaaa commented on July 17, 2024

我抄的是這頁的 "pointing":
http://semantic-ui.com/modules/dropdown.html
沒有顯示會換,只有menu,沒有dropdown則會顯示:
http://semantic-ui.com/collections/menu.html
是 semantic ui class 的問題嗎?要怎麼修?

重複的 active 要砍掉+1

from g0v.tw.

carlcarl avatar carlcarl commented on July 17, 2024

嗯...先把多餘的 active 拿掉了。
.active assign 的部分看了一下,官方網站看起來有另外 load 一個 menu.js 來切換 .active 狀態,不過也許也不需要加進來,因為 g0v menu 上的幾乎都是 dropdown,可能也不太適用(?)。

from g0v.tw.

carlcarl avatar carlcarl commented on July 17, 2024

這是它的 menu.js 檔: https://raw.github.com/Semantic-Org/Semantic-UI/a4aad08a1bf9231a50faed20cc2e3921994e8a93/server/files/javascript/menu.js

from g0v.tw.

clkao avatar clkao commented on July 17, 2024

應該是 extend layout 時要給目前的 toplevel menu class, 好讓 layout.jade 指定 active

from g0v.tw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.