星期六, 6月 25, 2016
星期六, 6月 18, 2016
[Html] 電子信箱的html support
如果有需要在電子信箱裡面撰寫html的朋友可以參考一下以下這個網頁
看來還是要寫inline css 最安全 XD
http://templates.mailchimp.com/resources/email-client-css-support/
看來還是要寫inline css 最安全 XD
http://templates.mailchimp.com/resources/email-client-css-support/
星期四, 12月 17, 2015
星期四, 10月 29, 2015
Youtube 讓iframe有透明度
記錄一下在做youtube iframe滿版時遇到元素被遮住的問題,
可以加wmode=transparent 字串到Video的URL後面即可。
遇到IE瀏覽器記得要下meta讓IE執行edge模式
Try using Youtubes iframe embed method (if thats not what you are already doing, and add: ?wmode=transparent to the url (replace ? with & if it is not the first url variable)
可以加wmode=transparent 字串到Video的URL後面即可。
遇到IE瀏覽器記得要下meta讓IE執行edge模式
Add this in your html:
http-equiv="X-UA-Compatible" content="IE=edge" />
The page in IE is rendering in Quirk mode.
Try using Youtubes iframe embed method (if thats not what you are already doing, and add: ?wmode=transparent to the url (replace ? with & if it is not the first url variable)
星期二, 6月 09, 2015
[Javascript] 如果透過window物件來將字串轉換成執行程式
先前需要遇到不同狀況時,
呼叫不同含式,
但函式內部只是call不同api,
於是為了簡寫一點程式,利用字串的方法來取得函式物件,
可以使用window[你的函式字串]來轉換含式
接著funRunAPI就變一個可執行的函式了
另外要使用物件或帶入參數也是可行的
window[你的函式字串](參數)
window[物件Class名稱][物件函式字串](參數)
呼叫不同含式,
但函式內部只是call不同api,
於是為了簡寫一點程式,利用字串的方法來取得函式物件,
可以使用window[你的函式字串]來轉換含式
var runAPI = '';
switch (reportType) {
case 'datastream':
runAPI = 'FUN_A';
break;
case 'avg':
runAPI = 'FUN_B';
break;
case 'max':
runAPI = 'FUN_C';
break;
case 'min':
runAPI = 'FUN_B';
break;
}//end of switch
//conv to real js function !!important
var fnRunAPI = window[runAPI];
接著funRunAPI就變一個可執行的函式了
2015/10/21 更新
另外要使用物件或帶入參數也是可行的window[你的函式字串](參數)
window[物件Class名稱][物件函式字串](參數)
星期六, 10月 20, 2012
訂閱:
意見 (Atom)
