学习整理
文章平均质量分 68
cao8222
这个作者很懒,什么都没留下…
展开
-
如何在网页设计IE与Firefox的CSS兼容?
1.DOCTYPE 影响 CSS 处理 2.FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行 3.FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-left,margin-right) 方可居中 4.FF: 设置 padding 后, div 会增加 he原创 2008-12-05 00:28:00 · 407 阅读 · 0 评论 -
学习div float 在ff和ie下的布局区别
作者:miyiyi[at]gmail[点]com来源:http://www.blabla.cn/html_ref/firefox_ie_diff01.html时间:2006-12-20基本HTML代码 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Div Float Samplediv { margin:3px; }.d原创 2008-12-05 00:00:00 · 1551 阅读 · 0 评论 -
图片等比例缩放
1.var showImgSize = function(imgsize,areasize,obj) { var new_w = new_h = 0; var img = new Image(); img.src = $(obj).attr(src); if(img.width>0) { ori_w = img.width; ori_h =转载 2008-12-06 15:10:00 · 1255 阅读 · 0 评论 -
div 高度自适应 和其他一些技巧
html也要设置100% ,对后面的div可能会有影响html,body{height:100%;margin:0;}设置 div为绝对定位. style="width:500px; height:100%!important; background:#003333; position:absolute;"./#/需要自动高度的地方{min-height:500px;height:auto原创 2008-12-08 09:39:00 · 570 阅读 · 0 评论 -
smarty modifier.truncate.php 汉字截取修改
/** * Smarty truncate modifier plugin * * Type: modifier * Name: truncate * Purpose: Truncate a string to a certain length if necessary, * optionally splitting in the middle of a w原创 2008-12-11 14:49:00 · 1071 阅读 · 0 评论 -
CSS Hack 汇总快查
转载连接 http://andymao.com/andy/post/76.html 屏蔽IE浏览器(也就是IE下不显示) *:lang(zh) select {font:12px !important;} /*FF,OP可见,特别提醒:由于Opera最近的升级,目前此句只为FF所识别*/ select:empty {转载 2008-12-11 15:46:00 · 355 阅读 · 0 评论 -
相册js
.photopagelist{ width:83px; border-width:20px 1px; border-color:#ccc; border-style:solid;}.prepage{ width:83px; height:20px; *width:83px; border:1px solid #ccc; border-width原创 2008-12-12 16:07:00 · 851 阅读 · 0 评论 -
NicEdit
/* NicEdit - Micro Inline WYSIWYG * Copyright 2007-2008 Brian Kirchoff * * NicEdit is distributed under the terms of the MIT license * For more information visit http://nicedit.com/ * Do not remove th原创 2008-12-13 18:56:00 · 2757 阅读 · 0 评论 -
nicEdit 中图片上传,和上传进度条的显示
/* NicEdit - Micro Inline WYSIWYG * Copyright 2007-2008 Brian Kirchoff * * NicEdit is distributed under the terms of the MIT license * For more information visit http://nicedit.com/ * Do not remove th原创 2008-12-17 21:02:00 · 3980 阅读 · 1 评论