2008-07-08

关于div的隐藏

关键字: div
div的visibility可以控制div的显示和隐藏,但是隐藏后页面显示空白 style="visibility: none;" document.getElementById("typediv1").style.visibility="hidden";//隐藏 document.getElementById("typediv1").style.visibility="visible";//显示 通过设置display属性可以使div隐藏后释放占用的页面空间,如下 style="display: none;" document.getElementById("typediv1" ...
2008-07-03

nl2br和htmlspecialchars的使用

关键字: nl2br htmlspecialchars php
string nl2br (string $string) 说明:将换行符用 <br/>代替 范例:<?php echo nl2br("foo isn't\n bar"); ?> 将输出: foo isn't<br /> bar string htmlspecialchars ( string $string [, int $quote_style [, string $charset [, bool $double_encode ]]] ) 说明:将特殊字符转成 HTML 的字符串格式 ( &....; )。最常用到的场合可能就是处理客户留言的留言版了 ...
2008-05-07

Apache2.2和PHP5.2的配置

关键字: apache php
1.将下载的php的zip包解压缩到c:\php 2.默认安装apache2.2.4后,安装目录为:C:\Program Files\Apache Software Foundation\Apache2.2 3.按照php.net网站的设置方法(http://www.php.net/manual/en/install.windows.apache2.php)将php做为模块对apache进行配置: # For PHP 4 do something like this: LoadModule php4_module "c:/php/php4apache2.dll" # Don't ...
lveyo
搜索本博客
最近加入圈子
存档
最新评论