由於IE7.8不接受HTML5
所以要加下面程式讓他支援此程式
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://ogp.me/ns/fb#">
完整程式:
由於IE7.8不接受HTML5
所以要加下面程式讓他支援此程式
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" xmlns:fb="http://ogp.me/ns/fb#">
完整程式:
Import CSV file directly into MySQL:
直接下MYSQL指令 先建立資料表以及欄位,再匯入scv檔案:
load data local infile 'D:/AppServ/www/test/geoip/ip2country/GeoIPCountryWhois.csv' into table tblUserIP fields terminated by ','
enclosed by '"'
lines terminated by '\n'
基本的網頁傳值,以前都換頁用POST/GET居多
但是使用此方法,需要轉頁
通常都會利用一個隱藏的input表單 偷偷利用js來做傳值的動作
程式如下:
<form action='./admin/edit_feature' method='post' id='product_list'>
從錯誤訊息來看是因為使用ZipArchive class沒有先把系統的php zip打開
所以才沒辦法使用。
在Windows的解決方法:
一. 在C槽裡面找到php.in
1. 把extension=php_zip.dll前面的分號除去
現在新版的瀏覽器FF/Chrome/IE9都已經不會有嵌入iframe有白框邊的問題了
唯獨IE8/IE7還是會有
解決方法如下:
<iframe name="container" frameborder="0" allowtransparency="true" id="container" src="{$func_url}" width="100%"
height="auto" marginwidth="100%" marginheight="100%" border="0" scrolling="no" onload="Javascript:SetCwinHeight()">
使用前要先下載並引入:jquery.cookie.js
(https://github.com/carhartl/jquery-cookie)
//設定 example 為 foo
$.cookie("example", "foo");
//設定 example 為 foo 且存活7天
$.cookie("example", "foo", { expires: 7 });
<iframe>
Basic
<iframe id="ytplayer" width="460" height="289" src="http://www.youtube.com/embed/fxs970FMYIo" frameborder="0" allowfullscreen></iframe>
/**
* html5doctor.com Reset Stylesheet v1.6.1 (http://html5doctor.com/html-5-reset-stylesheet/)
* Richard Clark (http://richclarkdesign.com)
* http://cssreset.com
*/
<script type="text/javascript">
var loadInfo = function(videoId) {
var gdata = document.createElement("script");
gdata.src = "http://gdata.youtube.com/feeds/api/videos/" + videoId
+ "?v=2&alt=jsonc&callback=storeInfo";
head裡面填入
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
function SetCwinHeight() {