- 5月 18 週三 201121:41
廣告
- 4月 14 週二 202011:08
解決CKEditor中img標籤自動添加style樣式的問題-禁止自動設置width和height
CKEDITOR.replace(
"ckeditorId"
,{disallowedContent:'img{width,height};img[width,height]';
});
"ckeditorId"
,{disallowedContent:'img{width,height};img[width,height]';
});
- 6月 27 週四 201919:46
[css]強迫匯出excel的欄位格式轉為純文字
<style>
td{mso-number-format:"\@" !important;}
</style>
td{mso-number-format:"\@" !important;}
</style>
- 6月 05 週三 201911:49
[html]使用frame無框轉址
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
</HEAD>
<FRAMESET ROWS="0,*" cols="*" framespacing="0" border="0" frameborder="0">
<FRAME SRC="" NAME="a1" noresize="noresize" >
<FRAME SRC="網址" NAME="a2">
</FRAMESET><noframes></noframes>
</HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
</HEAD>
<FRAMESET ROWS="0,*" cols="*" framespacing="0" border="0" frameborder="0">
<FRAME SRC="" NAME="a1" noresize="noresize" >
<FRAME SRC="網址" NAME="a2">
</FRAMESET><noframes></noframes>
</HTML>
- 5月 31 週五 201917:58
[css]解決英文字穿過text-decoration-line底線問題
a{
box-shadow: 0 1px;
- 11月 06 週二 201810:33
[Jquery]停止所有youtube播放(iframe embed)
$("iframe").each(function() {
var src= $(this).attr('src');
$(this).attr('src',src);
});
var src= $(this).attr('src');
$(this).attr('src',src);
});
- 4月 18 週三 201809:59
[Mysql]將字串欄位轉成數字排序或加總金額(使用CAST)
指令(加總金額)
SELECT SUM( CAST( award_cash AS DECIMAL( 10, 0 ) ) ) FROM `award`
指令(排序)
SELECT * FROM award ORDER BY CAST( award_cash AS DECIMAL( 10, 0 ) )
SELECT SUM( CAST( award_cash AS DECIMAL( 10, 0 ) ) ) FROM `award`
指令(排序)
SELECT * FROM award ORDER BY CAST( award_cash AS DECIMAL( 10, 0 ) )
- 4月 02 週一 201816:47
[Jquery]讓html檔也能使用include方法
<div id="top"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$("#top").load( "top.html");
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$("#top").load( "top.html");
</script>
- 3月 19 週一 201815:51
[html]textarea預設文字並換行
請在預設文字中插入
例:
<textarea name="contact_txt" cols="45" rows="5" id="contact_txt">大熊*0 中熊*0 小熊*0</textarea>
- 3月 16 週五 201814:22
[html5]使用正則 pattern 判斷日期格式
<input placeholder="日期" type="text" name="date1" required
pattern="(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))"
title="請輸入日期格式 YYYY-MM-DD">
pattern="(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))"
title="請輸入日期格式 YYYY-MM-DD">