上一页 1 ··· 3 4 5 6 7
摘要: <div> <div><img src="http://images.cnblogs.com/menu_01.jpg" width="163" height="8" alt=""></div> <div style="background: url('/images/menu_02.jpg') repeat-y top left;"><jdoc:include type="modules" na 阅读全文
posted @ 2012-02-22 18:40 码农13 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 去所有空格:str=str.replace(/\t+/g,"").replace(/\n+/g,"").replace(/\r+/g,"").replace(/\s+/g,"");去头尾多余空格:str=str.replace(/\t+/g,"").replace(/\n+/g,"").replace(/\r+/g,"").replace(/(^\s+)|(\s+$)/g,"");只是去头尾空格:function trim(str){ 阅读全文
posted @ 2012-02-22 18:37 码农13 阅读(146) 评论(0) 推荐(0) 编辑
摘要: vertical-align:middle;line-heigth:00px; 阅读全文
posted @ 2012-02-22 18:34 码农13 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <style>.tbl {table-layout:fixed;}</style><table class="tbl" border="1" width="80"><tr><td>abcdefghigklmnopqrstuvwxyz 1234567890</td></tr></table>table-layout:fixed,可以在内置属性里设 阅读全文
posted @ 2012-02-22 18:32 码农13 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 很多时候 我们都想在IE里实现这样的布局:一个容器box有一个固定的高度 当内容超出固定高度时自动拉伸 即使内容比较少时 也可以保持一个最小高度这个布局对FF来说是小事一桩 只要给box定义一个min-height值就可以了 但遗憾的是IE不能识别这个属性 那我们有什么办法让IE也支持min-height吗?答案是肯定的,必须的。下面以一份简单的html为例我们可以这样定义CSS:.box{ margin:0 auto; padding:10px; border:1px solid #ccc; width:500px; min-height:45px;/*为FF定义min-heigh... 阅读全文
posted @ 2012-02-22 18:31 码农13 阅读(110) 评论(0) 推荐(0) 编辑
摘要: <html><body><style>body{background:#ff0;}.td3{font-size: 14px;color: #FFFFFF;background-color: #000000;BORDER-RIGHT: #f6f6f6 1px solid; /* 显示右边框为1px,如果不想显示就为0px */border-top:11px #fff solid; /* 显示上边框为1px,如果不想显示就为0px */BORDER-LEFT: #f9f9f9 0px solid;/* 显示左边框为1px,如果不想显示就为0px */BORDER 阅读全文
posted @ 2012-02-22 18:30 码农13 阅读(430) 评论(0) 推荐(0) 编辑
摘要: matlab太大了,想导出一个可执行的文件,exe或jar或dll吧,然后用程序调用。我导出的exe,用php调用安装matlab,安装vc6编译器。没用过C++,下了个VC6.0安装了,系统就有vc6编译器了。Matlab命令行窗口:mex -setupmbuild -setup都选VC6M文件:funBt_fun.m随便一点了就function c= funBt_fun(input)c=input+1;Matlab命令窗口:cd XXX进入M文件所在路径mcc -m funBt_fun.m 进行编译生成funBt_fun.exePHP调用:$commandBt="E:/funBt 阅读全文
posted @ 2012-02-22 18:28 码农13 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 解决从Mysql读取中文时的乱码问题:建表时先加上default charset=utf8;插入中文数据之前(Mysql命令提示符下)是用set names gb2312;在php页面中设置是mysql_query('SET NAMES UTF8');在php页面(已设定为utf8后)中插入中文数据不会出现乱码,应该插入数据库的时候就是以utf8字符集插入中文数据的故不会出现问题!在php页面前面不要忘了加上header('content-type;text/html;charset=utf-8');大家在MySQL命令提示符下想查看数据,中文数据有可能是如下 阅读全文
posted @ 2012-02-22 18:24 码农13 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7