table下css的定位 - Web 开发 / HTML(CSS)
一个table下,有一个div定义的css层。需要两者左边对齐。但是,由于li属性总是使得它离左边有一定距离,没法对齐。想了好久,没有办法。
请大家帮忙,这个只能用用table和css来做,谢谢
CSS code:
#result_header {height:25px; width:632px; background-color: rgb(204,204,204); border-top: solid 1px #06C;}
<!--result_header #font{float:left;font:Verdana, Geneva, sans-serif;font-weight:bold;} -->
#result_header ul{height:inherit; display:block; margin:0px;}
#result_header ul li{width:16px; display:inline; float:right;}
#result_content{width:632; border-top: 2px #03F; position:absolute;}
#result_content ul{float:left; list-style:none;}
#result_content ul li{display:inline;}
HTML code:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" media="screen, projection" type="text/css" href="result.css" />
</head>
<body>
相关问答:
<span id="Label1">如果能看到这个标签 说明我们已经能从HTML 页面上获取了这个元素控件传递到Silverlight应用程序中 </span>
<br />
<input type="sub ......
网上可不可以下载到 html版的MSDN呀
没有,你可以直接下MSDN,安装上,后者用网络版的MSDN.
楼上正解.
引用
没有,你可以直接下MSDN,安装上,后者用网络版的MSDN.
可以
找张盘吧
下载MSDN,可选择需 ......
有什么方法可以快速提取下面table表中单元格里面的数据和window.open函数中的链接数据了?
<table style="width: 100%; border-collapse: collapse" cellpadding="0">
<tr ......
用css缩写 使用缩写可以帮助减少你CSS文件的大小,更加容易阅读。css缩写的主要规则请参看《常用css缩写语法总结》,这里就不展开描述。
二.明确定义单位,除非值为0
忘记定义尺寸的单位是CSS新手普遍的错误。在HT ......