使嵌入的內容工作在響應式設計:Responsive YouTube Vimeo Google Map Embed

在網頁上崁入YouTube iframe視頻時遇到了一個小問題,我需要在YouTube視頻大小取決於100%自動縮放,好使得我的網頁RWD設計能完整呈現。但是當我加入了嵌入代碼,視頻有一個固定的高度和寬度,你可能會認為設定CSS iframe width:100%寬度,視頻就會依照這樣設定,自動向周圍的容器調整,這好了!事實並非如此,寬度是可以100%自動縮放,但是高度就是沒辦法自動100%縮放。

Posted in CSS

Continue Reading

Comment

【解決】Joomla DisplayNews Error 1064當我更新Joomla 3.4.3創建更新模塊發生錯誤

當我更新Joomla 3.4.3時,創建的DisplayNews Module仍然是工作,但是當我嘗試創建一個新的DisplayNews Module,或是更新我舊有創建好的DisplayNews Module時候,我的網站整個掛了,得到了個錯誤訊息。

Error:

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ) group by a.id ORDER BY a.created DESC LIMIT 0,1' at line 10 SQL=SELECT 'MOD_DN', a.id, a.*, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug, a.attribs, a.title, a.introtext as introtext, a.catid , a.created as created, a.images, cc.title as cat_title, cc.alias as cat_alias, cc.published as cat_published , cc.description as cat_description , cc.params as cat_params FROM fzhlib2_content AS a JOIN fzhlib2_users AS c ON c.id = a.created_by JOIN fzhlib2_categories AS cc ON cc.id = a.catid WHERE (a.state IN (1)) AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= 2015-07-22="" and="" a.publish_down="" or="">= '2015-07-22 01:45:43' ) AND (a.catid=0 OR cc.published = '1') AND (a.catid IN ( 38 ) ) AND (a.access IN ( ) ) group by a.id ORDER BY a.created DESC LIMIT 0,1

Posted in Joomla

Continue Reading

Comment

Joomla OSMap輕鬆建立Sitemap網站地圖提交給Google Search Console

你需要一個Sitemap網站地圖,成功優化您的Joomla網站給Google?

OSMap是一個提供免費創建網站地圖sitemap元件,添加到您的Joomla網站的最簡單方法。
你需要做的就是安裝OSMap。OSMap會自動創建一個Google友好的站點地圖sitemap為你的所有內容。

網址:https://www.alledia.com/extensions/osmap/

安裝完成將會在元件選單看見OSMap選項。

 

Posted in Joomla

Continue Reading

Comment

jQuery Include HTML:jQuery替代iframe插入Include HTML方法

使用jQuery來達到如iframe、asp include 和 php include 的效果
 

jQuery能做到的比iframe連結另一個網頁html內容來的活用,使用css做樣式變化,也較有彈性。再次比較asp includephp include 這樣的方式,無須使用以上asp和php伺服器就能達到你想要的include html。(注意:此方法get()屬於ajax需要在server上執行。)

Posted in Javascript

Continue Reading

Comment

Find the last offers by SkyBet at www.bettingy.com BettingY.com Bonuses