文章加密

;

2018年3月29日 星期四

background可以做到很多

https://ithelp.ithome.com.tw/articles/10129236

CSS for when JavaScript is Enabled

document.documentElement.className = "js"

This adds a class to the root <html>, so you could (for example) do something like hide a <div> only when JavaScript is enabled.

.js div#id { display: none; }



reference:
https://css-tricks.com/snippets/javascript/css-for-when-javascript-is-enabled/

2018年3月25日 星期日

不規則設計風格→svg, path


https://www.w3schools.com/graphics/svg_path.asp
https://tympanus.net/codrops/2013/10/03/a-collection-of-separator-styles/

2018年3月22日 星期四

問題未解決(二):when to use "get_result() "

https://stackoverflow.com/questions/18753262/example-of-how-to-use-bind-result-vs-get-result

其中$num_of_rows = $result->num_rows;

可直接寫成$num_of_rows = $stmt->num_rows; 從挑戰PHP7MySQL程式設計與超強專題特訓班14-29看見)

那為何要$result = $stmt->get_result(); 

2018年3月20日 星期二

問題已自己解決(網路上沒找到)

1.
position:fixed 且 width:100% 有兩個,都是點擊某個按鈕後出現,結果有一個的width超過100%,導致置中時歪一邊。

解法:將該width改成100vw

2018年3月15日 星期四

2018年3月11日 星期日

Parallax Scrolling (background-image scroll)

css
https://www.w3schools.com/howto/howto_css_parallax.asp
js
http://pixelcog.github.io/parallax.js/


css 在網頁中再加入一個scrollbar,做起來蠢蠢的,會卡在內部scrollbar scroll到顶才scroll外部的
https://alligator.io/css/pure-css-parallax/



perspective  3D
http://www.oxxostudio.tw/articles/201506/css-3d.html