English 中文(简体)
图像将不完全显示
原标题:Image won t fully appear

下面是我为网站使用的 CSS 模板。 当我试图将Logo 添加到 div < code title 时, 我遇到了一个问题, 只有一半的图像出现( 高度 ) 。 我认为我的边距有问题, 但我无法理解为什么图像不会显示全高度( 宽看起来不错 ), 不管我如何调整大小或改变边距大小 。

你能提出解决办法吗?

html {
    overflow: hidden;
    height: 99%;
}

body {
    background: $ffffff;
    height: 99%;
    margin: 0;
    padding: 0;
    line-height: 150%;
    text-align: center;
}

* {
    font-size: 8pt; 
    font-family: Tahoma, Verdana, sans-serif; 
    color: #000000;
    text-align: left;
}

/* === Containers === */

#mainContentArea {
    margin: 0 auto 0 auto; 
    display: table; 
    height: 100%;  
    position: relative; 
    overflow: hidden; 
    width: 600px;
}

.link,.linkActive {
    width:75px;
    margin-right:10px;
    float: left;
    margin-top:24px;
    text-align:center;
    font-family:Georgia, "Times New Roman", Times, serif;
    background-image:url(tab.gif);
    position:relative; bottom:0px;
}

.link:hover { background-image:url(tab2.gif); }

a { text-decoration:none; }

.link a {
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    font-weight:bold;
}

#linkGroup {
    margin-right:10px;
    height:40px;
    width:600px;
}

#title {
    width:230px;
    height:40px;
    margin-right:20px;
    margin-top:15px;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:20px;
    font-weight:bold;
    text-align:center;
    float:left;
}

.contentTitle {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    color:#213E74;
    font-size:19px;
    margin-left:15px;
    margin-right:12px;
    margin-bottom:12px;
    width:573px;
}

.pageContent {
    font-family: Arial, Helvetica, sans-serif;
    color:#000000;
    font-size:12px;
    margin-left:20px;
    margin-right:20px;
    width:560px;
}


#blueBox {
    position: absolute;
    vertical-align: middle;
    background-color:#E7EDF8;
    width:600px;
    clear:both;
}

#header {
    width:600px;
    height:20px;
    background-color:#FFFFFF;
    background-image:url(header.gif);
    background-repeat:no-repeat;
}

#footer {
    width:600px;
    height:20px;
    background-color:#FFFFFF;
    background-image:url(footer.gif);
    background-repeat:no-repeat;
    text-align:center;
    padding-right:10px;
    color:#BDCDEC;
}

#footer a {
    font-size:9px;
    color:#BDCDEC;
}

#contentBox { margin-top:25px; }

html, body { text-align: center; }

p {text-align: left;}
最佳回答

删除 margin- top: 15px; title 中为我工作 。

问题回答

删除

   width:230px;
   height:40px;

从 CS 并保持

<img src="image " width="" height=""></img>




相关问题
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!

热门标签