摘要: <div style="position:absolute; width:740px; height:340px; left:50%; top:50%; margin:-170px 0 0 -370px; background:#f00;"></div> 阅读全文
posted @ 2012-12-08 16:13 一千零一夜 阅读(141) 评论(0) 推荐(0) 编辑
摘要: .clearfix:after{visibility:hidden;display:block;font-size:0;content:"\20";clear:both;height:0;}* html .clearfix{zoom:1;}/* IE6 */.clear{ clear:both;}:first-child+html .clearfix{zoom:1;}/* IE7 */.clearfix{zoom:1;}使用方法:在浮动层的外层调用clearfix样式clear:both;或者在浮动层下加:div样式添加上一个样式 阅读全文
posted @ 2012-12-08 16:04 一千零一夜 阅读(108) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>无标题页</title> <style type="text/css"> ul{list-s 阅读全文
posted @ 2012-11-15 05:13 一千零一夜 阅读(190) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>无标题页</title> <style type="text/css"> .r1{width 阅读全文
posted @ 2012-11-14 10:29 一千零一夜 阅读(197) 评论(0) 推荐(0) 编辑
摘要: var regex = /^[\u4e00-\u9fa5\w]{4,12}$/; //昵称长度在4-12个字节之间,由中文,英文字母、数字和下划线组成var regex = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; //请输入有效的手机号码//手机var pp=/^(13[0-9]|15[0|3|6|7|8|9]|18[0-9])\d{8}$/;//电话var reTel=/^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ex... 阅读全文
posted @ 2012-11-13 18:21 一千零一夜 阅读(237) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReceiverEmail_List.aspx.cs" Inherits="Web_Admin_ReceiverEmail_ReceiverEmail_List" %><%@ Register src="../ascx/navigation.ascx" tagname="navigation" tagprefix="uc1" % 阅读全文
posted @ 2012-11-13 17:53 一千零一夜 阅读(314) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using Comm;/// <summary>///ShowPage 的摘要说明/// </summary>public class ShowPage : System.Web.UI.Page{ protected Util gjShowPage = new Util(); protected MySqlExecute mseShowPage = new MySqlExecute(); public ShowPage() { base.PreInit += new... 阅读全文
posted @ 2012-11-13 17:51 一千零一夜 阅读(222) 评论(0) 推荐(0) 编辑
摘要: using System.Web;using System.Data;using System;/// <summary>///Util 的摘要说明/// </summary>public class Util{ /// <summary> /// 过滤字符串中的html代码 /// </summary> /// <param name="Str">传入字符串</param> /// <returns>过滤后的字符串</returns> public string LostHTM 阅读全文
posted @ 2012-11-13 17:50 一千零一夜 阅读(188) 评论(0) 推荐(0) 编辑
摘要: function isSQL(st){ var in_str = "'|and|exec|insert|select|delete|update|count|*|%|chr|mid|master|truncate|char|declare|;|or|-|+|,"; var arrStr = in_str.split('|'); var l = arrStr.length; for(var i = 0; i < l; i++) { if(st.indexOf(arrStr[i]) >= 0) return true; } return fa 阅读全文
posted @ 2012-11-13 17:48 一千零一夜 阅读(870) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Collections;using System.Text.RegularExpressions; /*----------------------------------------------------------------------------- * 公司: * 作者: 肖品 * 文件描述: 中文获取拼音 * 创建时间: 2011-8-27 9:40:58 * 版本: v1.0 ----... 阅读全文
posted @ 2012-11-13 17:47 一千零一夜 阅读(885) 评论(0) 推荐(0) 编辑