摘要: 显然:UL+LI在布局上比table灵活得多。比较分两列或者多列显示:table:你需要在服务器上写一大堆代码判断是不是需要换行,或者切分是不是准确DIV:你只需要定义好css,剩下的做事情叫交给浏览器吧。最简单的代码:XML/HTML代码<style type="text/css"> .mycode{ width:300px; height:74px; float:left;} .mycode ul{ width:280px;} .mycode li{ width:100px; float:left; display:block;} </style> 阅读全文
posted @ 2011-09-16 22:51 Lux.Y 阅读(1744) 评论(2) 推荐(0)
摘要: <script type="text/javascript">function bookmarkPage(url,title) { if (!url) {url = window.location} if (!title) {title = document.title} var browser=navigator.userAgent.toLowerCase(); if (window.sidebar) { // Mozilla, Firefox, Netscape window.sidebar.addPanel(title, url,"") 阅读全文
posted @ 2011-09-16 20:53 Lux.Y 阅读(1940) 评论(0) 推荐(0)