前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
1. 在當前頁面,自行定義了幾個樣式,在不同地方引用。
2. 實現代碼。
樣式定義:
data() {return {input: {fontSize: "21px",height: "0px",marginBottom: "0px"},backgroundColor: {background: "#f5fffa"}};},
調用:(可多種樣式混用:自定義、style、class 等)
:style="input":style="backgroundColor"