2018年3月9日 星期五

HTML 特殊符號

HTML 特殊符號

愛心符號
手符號
國際象棋符號
音符符號
天氣符號
文化符號
辦公室的符號
技術符號
星座符號
打勾符號
撲克符號
人的符號
星星符號
箭頭符號
圖形符號
三角符號
線段符號
圓形符號
數學符號
單位符號
下標及上標
數字符號
語言符號
中國符號
日本的符號
韓國符號
希臘符號
標點符號
括號符號
貨幣符號

特殊符號

00

2018年3月5日 星期一

00

00
00

00

CSS cursor 滑鼠游標設定

CSS cursor 滑鼠游標設定

滑鼠游標在設計上扮演一個很重要的功能,必須暗示使用者可以進行的操作。
CSS 中 cursor 這個屬性用來決定滑鼠移到上面時會怎麼顯示,實際去查了發現滑鼠游標的屬性居然有 20 種左右!
滑鼠游標設定 style="cursor:pointer;" 或 css aa{cursor:pointer}


cursor:auto
cursor:cell
cursor:context-menu
cursor:col-resize
cursor:copy
cursor:crosshair
cursor:default
cursor:e-resize
cursor:ew-resize
cursor:grab
cursor:grabbing
cursor:help
cursor:move
cursor:n-resize
cursor:ne-resize
cursor:nesw-resize
cursor:ns-resize
cursor:nw-resize
cursor:nwse-resize
cursor:no-drop
cursor:none
cursor:not-allowed
cursor:pointer
cursor:progress
cursor:row-resize
cursor:s-resize
cursor:se-resize
cursor:sw-resize
cursor:text
cursor:url()
cursor:vertical-text
cursor:w-resize
cursor:wait
cursor:zoom-in
cursor:zoom-out
cursor:initial
#CSS cursor 滑鼠游標設定

CSS cursor 滑鼠游標設定

CSS cursor 滑鼠游標設定

滑鼠游標在設計上扮演一個很重要的功能,必須暗示使用者可以進行的操作。
CSS 中 cursor 這個屬性用來決定滑鼠移到上面時會怎麼顯示,實際去查了發現滑鼠游標的屬性居然有 20 種左右!
滑鼠游標設定 style="cursor:pointer;" 或 css aa{cursor:pointer}

cursor:auto
cursor:cell
cursor:context-menu
cursor:col-resize
cursor:copy
cursor:crosshair
cursor:default
cursor:e-resize
cursor:ew-resize
cursor:grab
cursor:grabbing
cursor:help
cursor:move
cursor:n-resize
cursor:ne-resize
cursor:nesw-resize
cursor:ns-resize
cursor:nw-resize
cursor:nwse-resize
cursor:no-drop
cursor:none
cursor:not-allowed
cursor:pointer
cursor:progress
cursor:row-resize
cursor:s-resize
cursor:se-resize
cursor:sw-resize
cursor:text
cursor:url()
cursor:vertical-text
cursor:w-resize
cursor:wait
cursor:zoom-in
cursor:zoom-out
cursor:initial

JavaScript Date() 日期與時間

JavaScript Date() 日期與時間

00
00
00
00
#html getDate() #html getFullYear() #html getHours() #html getMilliseconds() #html getSeconds() #html getTime() #html Date.now() #html new Date() #html Date() #html 日期與時間() #html UTC()() #script getDate() #script getFullYear() #script getHours() #script getMilliseconds() #script getSeconds() #script getTime() #script Date.now() #script new Date() #script Date() #script 日期與時間() #script UTC()

2018年3月4日 星期日

DIV position:fixed-CSS固定物件

DIV position:fixed-CSS固定物件


讓物件固定在上方,或是網頁的某一個地方,這時候我們就會需要用到CSS裡position:fixed這個語法。
position是絕對位置,可以讓圖片或區塊固定在你所想要的地方,fixed則是根據瀏覽器視窗來定位。
position: 值;
值 描述
absolute 生成絕對定位的元素,相對於 static 定位以外的第一個父元素進行定位。
元素的位置通過 "left", "top", "right" 以及 "bottom" 屬性進行規定。
fixed生成絕對定位的元素,相對於瀏覽器窗口進行定位。
元素的位置通過 "left", "top", "right" 以及 "bottom" 屬性進行規定。
relative生成相對定位的元素,相對於其正常位置進行定位。
因此,"left:20" 會向元素的 LEFT 位置添加 20 像素。
static默認值。沒有定位,元素出現在正常的流中(忽略 top, bottom, left, right 或者 z-index 聲明)。
inherit規定應該從父元素繼承 position 屬性的值。
00
#html position:absolute#html position:fixed#html position:relative#html position:static#html position:inherit

DIV position:fixed-CSS固定物件

DIV position:fixed-CSS固定物件


讓物件固定在上方,或是網頁的某一個地方,這時候我們就會需要用到CSS裡position:fixed這個語法。
position是絕對位置,可以讓圖片或區塊固定在你所想要的地方,fixed則是根據瀏覽器視窗來定位。
position: 值;
值 描述
absolute 生成絕對定位的元素,相對於 static 定位以外的第一個父元素進行定位。
元素的位置通過 "left", "top", "right" 以及 "bottom" 屬性進行規定。
fixed生成絕對定位的元素,相對於瀏覽器窗口進行定位。
元素的位置通過 "left", "top", "right" 以及 "bottom" 屬性進行規定。
relative生成相對定位的元素,相對於其正常位置進行定位。
因此,"left:20" 會向元素的 LEFT 位置添加 20 像素。
static默認值。沒有定位,元素出現在正常的流中(忽略 top, bottom, left, right 或者 z-index 聲明)。
inherit規定應該從父元素繼承 position 屬性的值。


DIV 在左上角 設定數 position: fixed; top:0px; bottom:auto; right:auto; left:0px;。
DIV 在左下角 設定數 position: fixed; top:auto; bottom:0px; right:auto; left:0px;。
DIV 在右上角 設定數 position: fixed; top:0px; bottom:auto; right:0px; left:auto;。
DIV 在右下角 設定數 position: fixed; top:0px; bottom:0px; right:0px; left:0px;。
如果 px 為負數 DIV 會走出視窗外。你可以修改下列 HTML 看看結果。

00

CSS content

CSS content 插入內容。

CSS 伪元素 選擇器 : content: url
00

CSS content

CSS content 插入內容。

CSS 伪元素 選擇器 : content: url
00