通常在制作网站首页时需要使页面内容在水平和垂直方向上都居中。 表格布局时代常用的方法是内容之前添加换行。实际上通过CSS有更方便的办法。 这个方法出自creamu.com。 先来看看代码和效果吧。 <style> #w...
通常在制作网站首页时需要使页面内容在水平和垂直方向上都居中。 表格布局时代常用的方法是内容之前添加换行。实际上通过CSS有更方便的办法。 这个方法出自creamu.com。 先来看看代码和效果吧。 <style> #w...
<!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> ...
组件地址:http://www.gotproject.com/blog/post2.html <script src=”webkitdragdrop.js” type=”text/javascript”></script> <body> <div id=”obj_id” style=”dd”>jjjjjjjjjjjjj...
表格单元格 行内块(inline-block) 第一个比较好理解,第二个很多人可能会忽略。比如,很多人在图片与文本混排的时候想让图片相对于文本垂直居中除了用IE的私有特性 valign=”absmiddle”别无他法。记住,默认下...
Minimize HTTP Requests tag: content 80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scr...
(此方法在chrome下无效,另外找到一种方法对ff,ie,chrome都可用,在后面介绍)最有效的方法是先在要显示div的地方显示一个iframe,这个iframe的大小要和div一样大,然后在iframe上显示div。 IE中对iframe的src没有要...