Sass 的框架,有許多預寫好的 mixin 可使用,可編譯出所有的前綴瀏覽器支援。
@import "compass/css3"
來使用div {
@include border-radius(50px);
@include opacity(0.2);
@include box-shadow(3px 3px 5px #000);
}
div {
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
-ms-border-radius: 50px;
-o-border-radius: 50px;
border-radius: 50px;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=20);
opacity: 0.2;
-webkit-box-shadow: 3px 3px 5px black;
-moz-box-shadow: 3px 3px 5px black;
box-shadow: 3px 3px 5px black;
}
/* 自動計算該圖片的高與寬 */
@debug image-width("../image.png"); /* 100px */
@debug image-height("../image.png"); /* 200px */
網路上有許多線上圖片合併服務,但有修改時又要重新調整十分麻煩。
$icon-spacing: 10px; /* optional */
$icon-layout: horizontal; /* optional */
@import "icon/*.png";
@include all-icon-sprites;
images 資料夾內就會出現合併過後的圖片了。
出了社會之後被同事推坑用 Richart,現在轉帳都超方便,試想一下轉帳如果每次都要打帳號是不是非常不友善,到底誰會記得。此時我們就會把常用的帳號記在通訊錄裡,下次我只要知道我要轉給誰,Richart 就會很聰明地幫我直接轉帳到對的人。 同理,我們去連其他網站也是相同的。 好友名稱透過通訊錄轉成帳號 == Domain Name 透過 DNS 轉成 IP 以 Google 大大為例,我們在網址列打上 https://www.google.com/ 時,其實就是送一個 request 給 Google,https://www.google.com/ 其實是為了大家能夠比較好記憶,就像是通訊錄上的名字,而他會經過 Domain Name System 轉換成一個 IP,就像是轉帳的帳號本身,本身非常之難記。 $ host www.google.com www.google.com has address 216.58.200.228
Dec 15, 2021gantt title A Gantt Diagram dateFormat HH:mm axisFormat %H:%M section Day1 領機車: 12:00, 10m 花園夜市: 19:00, 1h section Day2 王氏魚皮: 09:30, 30m 安平古堡: 10:00, 1h
Nov 30, 2021NULL 代表了遺失、未知或是不適用。 Generally, you use the NULL value to indicate that the data is missing, unknown, or not applicable. [name=MySQL NULL / MySQL TUTORIAL] 而數值零或空字串值,這兩者都表示已知的值,並不等於是 NULL。 幾個情境示範:
Nov 22, 2021Destructuring let [a, b] = [10, 20] console.log(a, b) // 10, 20 // Rest pattern,一定要放在最後方 let [a, b, ...rest] = [10, 20, 30, 40, 50] console.log(a, b, rest) // 10, 20, [30, 40, 50]
Jun 25, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up