新!我的 44 頁電子書「44 分鐘搞懂 CSS」出爐囉!😃
#background-origin
定義背景圖片的來源。
預設
background-origin: padding-box;
背景圖片從邊框的邊緣開始:在內邊距內,但不在邊框內。
background-origin: border-box;
背景圖片從邊框的下方開始。
background-origin: content-box;
背景圖片僅從內容的邊緣開始:不包含內邊距,也不包含邊框。