English 中文(简体)
我的四国集团之间为什么有差距?
原标题:Why are there gaps between my DIV s?
最佳回答

你可能会插入你忘记的一些风格。 从我假设的题目来看,我会看一下这样的情况。

<ul id="nav">
    <li><a href="#">Home</a></li>
    <li><a href="#">Blog</a></li>
    <li><a href="#">Gallery</a></li>
</ul>

<div id="something">
</div>

您的微量链接或清单项目看似有5px的差值,而您的四舍五入则有20px的上下层差值。 恳请你在努力解决麻烦时把这一点补充到你身上。

margin: 0 !important;
padding: 0 !important;
border: 0 !important; 

这应当超越任何可能发生冲突的风格。 如果它不工作,我们需要看到帮助进一步解决问题的守则。

[UPDATE] You should declare a DOCTYPE instead of simply putting html tags. center tags are deprecated.

try:

#nav ul{
    list-style-type:none;
    margin:0;
    padding:0;    
    /* REMOVE
    padding-top:6px;
    padding-bottom:6px;  
    */
}  
/***********************************
-- ADD
***********************************/
hr {
    margin: 0;
}
h2 {
    margin: 0;
}

你们把婚礼和休婚幅度改为0,但又在你身上添加。 脑tag正在造成一些轮.,头tag正在造成其余。

问题回答

边境零宽度

style="border:0px" 

a. 检查边界

style="border-color:red"

人力资源(线)和H2(家庭所有权)都是因违约而设的路障,有线性断裂和间隙。 您应修改这些要素的幅度,或将显示线上(显示:线上)。

还尝试:

    border-collapse: collapse;
    border: 0;




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签