


How do you say it? It should be said that it is a style problem. Thank you for your help_html/css_WEB-ITnose
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;}
<!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=gb2312" /><title>无标题文档</title><link rel="stylesheet" type="text/css" href="style.css"><script src="jquery-1.7.2.js" type="text/javascript"></script><style type="text/css">.even{ background-color:#E4EDF9;}.odd{ background-color:#FFFFFF;}</style><script type="text/javascript">$(document).ready(function(){ //隔行表色 $("tr:even").addClass("even"); $("tr:odd").addClass("odd"); });</script><body> <form id="form1" runat="server"> <table align="center" cellpadding="1" cellspacing="1" class="table_border" width="98%"> <tr height="22" align="center"> <td align="left" class="forumRow" width="40%"> 当前位置:设置 </td> </tr> </table> <br /> <table width="98%" border="0" cellpadding="5" cellspacing="0" align="center" class="table_border"> <tr> <th colspan="2" valign="middle">设置</th> </tr> <tr> <td align="right" width="40%">文件名称:</td> <td align="left" width="60%"><input type="text"></td> </tr> <tr> <td align="right" width="40%">文件路径:</td> <td align="left" width="60%"><input type="text"></td> </tr> <tr> <td align="right" width="40%">图片路径:</td> <td align="left" width="60%"><input type="text"></td> </tr> </table> </form></body></html>
The background image is high enough
I just want to know where the extra 10 comes from
I can’t find the problem.
Reply to the discussion (solution)
It should be the reason for the browser’s default padding and margin.
You did not reset the stylesheet initially.
tr, th{
margin: 0;
padding: 0;
}
In addition, for front-end style debugging, it is inevitable to use tools such as firebug, so get familiar with it.
It should be the default padding and margin of the browser.
You did not reset the stylesheet initially.
tr, th{
margin: 0;
padding: 0;
}
In addition, for front-end style debugging, it is inevitable to use tools such as firebug, so get familiar with it.
I have never used tools like firebug for this~ Are there other tools?
And why not add
tr, th{
margin: 0;
padding: 0;
}
Isn’t the default 0?
The th element defaults to padding:5px;
You can reset it
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;
}
Got it~ Got it

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.
