Skip to content

Instantly share code, notes, and snippets.

@JiaFeiX
JiaFeiX / Number to Chinese.html
Last active August 29, 2015 14:13
JS将数字转换为中文大写
<script language="javascript">
function zhouji(str){
return str.replace(/\d/g,function(m){return arr[m];})
}
arr=new Array("日","一","二","三","四","五","六","七","八","九");
</script>
<script language="javascript">
document.write(zhouji('1380'));
</script>
@JiaFeiX
JiaFeiX / Css Menu.html
Created February 17, 2012 08:00
纯CSS制作支持IE6、IE7、Firefox的下拉菜单
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<title>纯CSS的下拉菜单 支持IE6 IE7 Firefox</title>
<style type="text/css">
*{margin:0;padding:0;}
.menu{font-size:12px;position:relative;z-index:100;}
.menu ul{list-style:none;}