--- tags: ICB --- # ICB 筆記 ICB登入後 及 按下編輯按鈕後 有不同的classname 使用差異 .o_connected_user { // 登入後所見畫面, 適合用在嵌入,需要顯示提示文字。 } .editor_enable { // 編輯前台佈局(右欄編輯區塊出現), 適合用在有::after延伸連結,在編輯狀態下要取消樣式。 } --- 只針對火狐給高 ``` [data-browser*="mozilla"] #products_grid table tr td { height: 100%; } ``` ------------------- 隱藏的 JS 誤刪警語 的 scss ``` css /* --- 誤刪警語 開始 --- */ .s_custom_noRemove { display: none; } body.editor_started .s_custom_noRemove { display: block; } body.editor_started .s_custom_noRemove::before { content: "重要 Code,請勿刪除"; color: #f90202; background: #ffff00; font-size: 20px; padding: 2px 10px; } /* --- 誤刪警語 結束 --- */ ``` ------------------------------------------------ 子層我要繼承父層的高度,有時很多層都要繼承,會想要這樣寫 ``` .carousel-item { * { height: inherit; } } ``` 之後想在某一層停住,不要在繼承,可以試試看 ``` .carousel-item { * { height: inherit; } .carousel-content { height: initial; } } ``` ------------------- 插入 "嵌入" 功能時,若是 script 碼 要貼在 </div> 下方 ``` <div class="text-monospace pt8 bg-light o_default_snippet_text"> 將其替換為您自己的 HTML 代碼 </div> <script language="JavaScript" src="https://Dunsregistered.dnb.com" type="text/javascript"></script> ```