Home  >  Article  >  Web Front-end  >  怎么说呢?应该说是样式问题吧,帮看看谢谢_html/css_WEB-ITnose

怎么说呢?应该说是样式问题吧,帮看看谢谢_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:47:50791browse

body{	font-family: "宋体", Verdana, Arial;	font-size: 12px;	margin: 0px;	background: #CED7F7;}.table_border{	border:solid 1px #C4CCD6;	background-color:#FFFFFF;}th{		font-weight:bold;	font:12px;	background-image:url(admin_bg_1.gif);	background-repeat:repeat-x;	color:white;	background-color:4455AA;	height:25px;}td{	font:"宋体" 12px;	line-height: 20px;	line-height: 150%;	table-layout: fixed;}input{	border:#7F9DB9 solid 1px;	background: #FFF;	font-size:12px;}span.tip{	font-size:12px;	position:static;}

无标题文档	
当前位置:设置

设置
文件名称:
文件路径:
图片路径:


背景图片高度够的

就想知道多出来的10是怎么来的
愣是找不出问题来



回复讨论(解决方案)

应该是浏览器默认的padding, margin的原因。
你开始并没有重置样式表。
tr, th{
   margin: 0;
   padding: 0;
}
另外,前端样式调试,免不了要用firebug之类的工具,熟悉一下吧。

应该是浏览器默认的padding, margin的原因。
你开始并没有重置样式表。
tr, th{
   margin: 0;
   padding: 0;
}
另外,前端样式调试,免不了要用firebug之类的工具,熟悉一下吧。


这个还真没用过firebug之类的工具~是否还有其他工具
还有为什么不加
tr, th{
   margin: 0;
   padding: 0;
}
默认就不是0了吗?

th元素默认是 padding:5px;
你重新设置下
th
{
font-weight:bold;
font:12px;
background-image:url(admin_bg_1.gif);
background-repeat:repeat-x;
color:white;
background-color:4455AA;
height:25px;
padding: 0px;
}

结贴了~知道了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn