CSS布局与传统表格(table)布局最大的区别
2008-04-30 22:02
CSS布局与传统表格(table)布局最大的区别在于:原来的定位都是采用表格,通过表格的间距或者用无色透明的GIF图片来控制文布局版块的间距;而现在则采用层(div)来定位,通过层的margin,padding,border等属性来控制版块的间距。 1.定义DIV 分析一个典型的定义div例子: #sample{ MARGIN: 10px 10px 10px 10px; PADDING:20px 10px 10px 20px; BORDER-TOP: #CCC 2px solid; BORDER-RIGHT: #CCC 2px solid; BORDER-BOTTOM: #CCC 2px so... [阅读全文]
扔掉 Table 使用 XHTML+CSS的布局
2008-04-30 21:33
在CSDN社区上,时不时能够看到一些页面整体布局的问题,要求用div做一些table才能做到的,否则就以此为把柄说XHTML+CSS布局方法不好。其实,首先要做的是改变思维,以适应XHTML+CSS的布局。 面向页面设计而非面向浏览器设计 XHTML +CSS能够实现的是一种流布局,也就是随着内容的长度自动增长区域,并且最终导致整个页面增长,这时候浏览器就必须显示滚动条。table强迫症的一个 征兆就是极力避免流布局,希望以浏览器的可视区域为布局目标,要求在可视区域中划分内容区域而不是在页面上划分内容区域。实际上XHTML是无法针对浏览 器设计的,因为它仅仅包含语义,或者说是内容,而浏览器如何... [阅读全文]
nytimes.com手工编写HTML和CSS代码
2008-04-30 21:06
NYTimes.com 网站的设计主管、2年前加入 NYT 的越南裔设计师 Khoi Vinh 在《纽约时报》的不定时栏目 “Ask the Times” 上回答了读者的提问。在被问到为什么不管任何平台用什么浏览器或显示分辨率,《纽约时报》网站看起来始终如一的漂亮和舒服时,他回答:“我们喜欢用文字编辑器如 HomeSite,TextPad 或者 TextMate,去手工编写所有的HTML和CSS代码,而不是使用所见即所得(wysiwyg)的 HTML 和CSS 的编辑工具如 Dreamweaver。我们只是发现这能产生更好和更快的效果。” ... [阅读全文]
配置Apache服务器
2008-04-30 16:12
Apache服务器的设置文件位于/usr/local/apache/conf/目录下,传统上使用三个配置文件httpd.conf,access.conf和srm.conf,来配置Apache服务器的行为。 httpd.conf提供了最基本的服务器配置,是对守护程序httpd如何运行的技术描述;srm.conf是服务器的资源映射文件,告诉服务器各种文 件的MIME类型,以及如何支持这些文件;access.conf用于配置服务器的访问权限,控制不同用户和计算机的访问限制;这三个配置文件控制着服务 器的各个方面的特性,因此为了正常运行服务器便需要设置好这三个文件。 除了这三个设置文件之外,Apach... [阅读全文]
Windows 下配置Apache2, PHP5, MYSQL5 和 Zend
2008-04-30 16:06Windows XP下全新安装Apache2,PHP5,MYSQL5,Zend的简单过程 一、下载地址: Apache2.0.50 :http://httpd.apache.org/download.cgi PHP5.0.2 :http://cn2.php.net/get/php-5.0.2-Win32.zip/from/a/mirror MYSQL5.0.2:http://dev.mysql.com/downloads/mysql/5.0.html Zend2.5.2 :http://www.zend.com/store/free_download.php?pid=13] 软件的安装偶就不说... [阅读全文]
Apache 配置 - Apache 网络服务器终极教程
2008-04-30 15:33
根据著名的WWW服务器调查公司所作的调查,世界上百分之五十以上的WWW服务器都在使用Apache,是世界排名第一的WEB服务器。Apache的诞生极富有戏剧性。当NCSA WWW服务器项目停顿后,那些使用NCSA WWW服务器的人们开始交换他们用于该服务器的补丁程序,他们也很快认识到成立管理这些补丁程序的论坛是必要的。就这样,诞生了Apache Group,后来这个团体在NCSA的基础上创建了Apache。 Apache的主要特征是: 可以运行上所有计算机平台; 支持最新的HTTP 1.1协议; 简单而强有力的基于文件的配置; 支持通用网关接口CGI; 支持虚拟主机; 支持HTTP认证; 集成... [阅读全文]
Develop Effective Forum Leadership
2008-04-30 12:00Your online community can only grow so much while you’re moderating everything yourself. There comes a time when you’ll need to delegate many of your moderation responsibilities to a trusted team. In this article, Patrick discusses how to select and train these moderators to ensure that ... [阅读全文]
Wordpress 修改 - 限制标题长度
2008-04-30 06:11
在边栏或其他地方调用文章时,有时候为了界面美观需要限制一下文章标题的字数,可以用下面的代码实现: <?php $my_query = new WP_Query('showposts=5'); while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php if (strlen(the_title('','',FALSE)) > 30) { $title_short = substr(the_title('','',FALSE), 0, 30); preg_match('/^(.*... [阅读全文]
2008年最新一次 Google PR 更新了
2008-04-30 03:57
刚刚从 Google Toolbar 看到 Google PR 已经更新。这是2008年的第二次 Google PR 更新。我用的是这个数据中心 72.14.253.101 看到的。 如果不知道怎么让 Google 工具栏从不同数据中心获取 Google PR 的数据,请看下面的步骤: 在 Windows XP 系统下,点击开始然后运行,输入或者复制粘贴下面的代码然后回车: C:\WINDOWS\system32\drivers\etc 如果你是用的 Windows XP 以外的其他系统,你的 hosts 文件可以在下面位置找到: Linux/Unix /etc/hosts Windows 3... [阅读全文]
第二届SEO大赛正式启动
2008-04-29 04:12
SEO大赛关键词 中文:西藏 英文:tibet xizang 大赛关键词是咨询了国际SEO专家的意见并分别审视了Tibet及xizang在英文搜索引擎的竞争态势才决定下来的,相信任何一个人都看得出,这可能会演变成不仅仅是一场SEO大赛,但是我们还是希望大家用SEO的心态来看待这个事件,就是Dont be evil。 SEO大赛规则 官方网站:http://www.tibetisxizang.com/ SEO大赛规则与奖项 大赛规则要考虑的因素实在是多,感谢连日来大家的建议,大赛的奖金和奖品三天来得到很多的询问和建议。我们将陆续推出。 首先是比赛时间的设定,比赛早已经开始,结束的时间我们为200... [阅读全文]
美国Web2.0展会六家最优秀网站
2008-04-29 02:32
北京时间4月28日消息,为期四天的2008年Web2.0展会于上周五在美国旧金山结束。《红鲱鱼》杂志主编、著名互联网评论人拉菲·尼德曼(Rafe Needleman)评出了本届展会中最优秀的六家Web2.0网站。 2008年Web2.0展会最优秀网站 Acquia:一家提供社交发布系统Drupal相关产品和服务的开源软件公司。Drupal基于Linux小红帽以及Trixbox(Asterisk)平台,其商业化得到了业内人士的好评,曾获得Webware 100大奖, Chirpscreen:一个小巧的网络软件,可以帮助你了解Twitter、Facebook、Flickr等社交网站上好友的行踪,还... [阅读全文]
Google Web Site Optimizer Tool: I Told You So
2008-04-25 12:00Ever wondered whether your design recommendation was actually the best option? Ever disagreed with a stakeholder over the best creative execution? Google’s new Website Optimizer tool makes testing different visuals quick and painless, and provides full reports to present to clients, as Alex ex... [阅读全文]
Ubuntu Hardy Heron - 8.04 LTS Desktop and Server Edition Released
2008-04-25 00:04This is a very important release with long term support of 3 and 5 years respectively for the desktop and server edition. Named Hardy Heron, this release is also targeted at corporate environment and the desktop user alike.... [阅读全文]
An Absolute Beginner’s Tutorial On Flex 3
2008-04-23 12:00If you’re thinking of submitting an article in SitePoint’s Flex/AIR competition, but don’t know where to start, then Rhys is here to help! In this beginner’s article, you’ll learn the very basics for using MXML and ActionScript 3.0 to develop Rich Internet Applications ... [阅读全文]
20 Ways to Keep Clients Coming Back For More
2008-04-18 12:00Do you have a high turnover of clients? Constantly fighting to win new work? The answer could be looking you in the face every day — your existing clients! Let Akash explain how and why client retention is key to freelance success. ... [阅读全文]
10 Years On: SitePoint’s Co-founder Spills the Beans
2008-04-16 12:0010 years ago, an enthusiastic Aussie entrepreneur and a young Canadian webmaster got together to launch the site that would become sitepoint.com. In this revealing interview, SitePoint’s Co-founder Mark Harbottle reflects on the highlights since those early days, and hypothesizes on what the f... [阅读全文]
ZimbraME Bringing Open Source To Your Mobile
2008-04-04 18:05The leader in next generation messaging and collaboration is known for making cool stuff. ZimbraME, Zimbra J2ME application is a program that you run on your ordinary cell phone that provides an over-the-air gateway into your Zimbra server.... [阅读全文]
The immediacy of PHP
2008-04-04 03:33I’ve been writing a little bit of PHP again today. That platform has really received an unfair reputation. For the small things I’ve been used it for lately, it’s absolutely perfect. I love the fact that it’s all just self-contained. … ... [阅读全文]
最新评论