当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > CSS实例教程:用ul li做圆角表格
No. « ‹ 112 113 114 115 › »
关键字
这两天和表格纠结上了...工作需要做表格,但是不想重复相同的方法,前两天用dl dt dd,今天用ul li做个圆角表格,圆角用了背景图片。再次声明:数据输出型的表格不推荐使用div+css。测试浏览器:IE6\IE7\IE8\FF3.0\Opera 9.6
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title> new document </title> <meta name="generator" content="editplus"> <meta name="author" content=""> <meta name="keywords" content=""> <meta name="description" content=""> <style type="text/css"> <!-- *{ margin:0px; padding:0px; } body{ text-align:center; font-family:"宋体" } #table{ margin:0 auto; width:960px; text-align:left; } li{ width:958; *width:100%; height:36px; line-height:36px; border:1px solid #c9dff7; border-bottom:none; list-style-type:none; vertical-align:bottom; } li.title{ width:960px; height:34px; line-height:34px; background:url(http://www.ruanchen.com/"runCode(this.offsetParent.getElementsByTagName('textarea')[0])" type="button" value="运行代码" /> [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
登陆 还没注册?