随笔分类 -  代码&模版

摘要:让div 透明,兼容IE FFtransparent_class{filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity:0.5;opacity:0.5;}filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5;在里说得很清楚了:Note: Firefox 3.5 and later do not support -moz-opacity. By now, you should be using simply opacity.现在都要改用opa 阅读全文
posted @ 2012-05-13 19:11 CobbySung 阅读(378) 评论(0) 推荐(0)
摘要:body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {padding: 0;margin: 0;}table {border-collapse: collapse;border-spacing: 0;}fieldset,img {border: 0;}address,caption,cite,code,dfn,em,strong,th,var {font-weight: normal;font-style: normal;}ol,ul {list-sty 阅读全文
posted @ 2012-05-13 19:09 CobbySung 阅读(274) 评论(0) 推荐(0)
摘要:<!--底部漂浮--><div style="position: fixed; left:0px; bottom:0px; z-index:1000; width:100%; overflow:visible; text-align:center; _position:absolute; _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight); margin:0 auto; clear:both; cursor:pointer;" 阅读全文
posted @ 2012-05-10 16:40 CobbySung 阅读(1293) 评论(0) 推荐(0)
摘要:.clearfix:after{content:".";display:block;height:0;line-height:0;clear:both;visibility:hidden;}.clearfix{display:inline-block;}/* Hide from IE Mac */.clearfix{display:block;}/* End hide from IE Mac *//* end of clearfix */例子:<div style="border:2px solid red;"> <div style= 阅读全文
posted @ 2012-05-10 15:15 CobbySung 阅读(502) 评论(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><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-05-09 09:51 CobbySung 阅读(203) 评论(0) 推荐(1)
摘要:版本:PHPMailer_v2.0.4<?phprequire("class.phpmailer.php");$mail = new PHPMailer();$mail->IsSMTP(); $mail->Host = "smtp.163.com"; $mail->Port=25;$mail->SMTPAuth = true; $mail->Username = "xxxx@163.com"; // SMTP用户名$mail->Password = "xxxxx"; // 阅读全文
posted @ 2012-05-09 09:24 CobbySung 阅读(690) 评论(0) 推荐(1)