網頁

2017年4月18日 星期二

A tag點選事件穿透上層Div

最近一個案子首頁滿版底圖中空youtube影片顯示,現在很多都這樣設計,但偏偏其右側偏中有個scroll的圖片加連結,切版拿到時,發現不讓景點出現在四週留白,連結會不能點選(因為被底圖的DIV所蓋住了,最快方式就是讓底圖無法被click,找半天發現CSS就能設定,如下:

.bg{
     pointer-events: none; //在CSS中加這段即可
}

不過IE似乎問題不少,但這篇HTML/CSS make clickable through transparent DIV layer有提到覺得IE很麻煩設定,可以試著用這個Pointer Events Polyfill

參考網址:
Click through a DIV to underlying elements
HTML/CSS make clickable through transparent DIV layer
Pointer-events:none or Click Through div

查詢CentOS的版本

記錄查詢CentOS版本的指令
$cat /etc/redhat-release
CentOS release 5.11 (Final)

2016年12月23日 星期五

使用henplus匯出資料庫資料

使用dump-out這個指令,不過下這指令前要先設定auto-commit為on

先設使用底下指令設定auto-commit為on
set-session-property auto-commit  on

使用方式如下:
usage: dump-out <filename> <tablename>

所以可以這樣下
dump-out xxx.sql table_name

參考網址:
http://henplus.sourceforge.net/

2016年11月24日 星期四

如何確認目前使用的php.ini位置

年紀大了真的要做記錄,mac上的php更新太多,有時都搞不清楚是用哪個,最快的方式是直接在php檔上寫入,再直接看路徑。

<?php $inipath = php_ini_loaded_file();
echo $inipath;

其實主要是想改上傳檔案大小,這邊再記錄一下更動php上傳檔案的大小

參考網址:
How to know which php.ini is used?
更動php上傳檔案的大小

2016年6月30日 星期四

ASP.NET HTTP error 500.21

新接個案子,來試試.net。拿到案子原本的程式後,好不容易弄出個deploy檔,匯入後一直回應"HTTP 錯誤 500.21 - Internal Server Error ",看不出來哪有問題,該裝都裝了,看了2012-08-06 置頂文章 【ASP.NET】HTTP 錯誤 500.21 - Internal Server Error 錯誤碼0x8007000d這篇後,使用wpilauncher.exe重裝"iis:.NET擴充性4.5"及"IIS: ASP.NET 4.5",重開機後就ok了

這邊記錄一下 =__=


參考網址:
2012-08-06 置頂文章 【ASP.NET】HTTP 錯誤 500.21 - Internal Server Error 錯誤碼0x8007000d