小编Dot*_*nnn的帖子

内容重叠div

我有重叠内容的问题.当我为HTML编写此代码时,content_left中的文本与我希望它包含的整个区域重叠.当我将高度更改为自动时,它无法解决问题.内容重叠到右侧,底部被切断.

#wrapper {
  height: 1500px;
  margin: 20px auto auto auto;
  padding: 0;
  background: url(wrapper.png);
}

.content_left {
  float: left;
  width: 600px;
  padding: 20px 0 0 30px;
  margin-left: -300px;
  position: relative;
  height: auto;
}
Run Code Online (Sandbox Code Playgroud)
<div id="wrapper">

  <div id="header">

    <div id="logo">
    </div>

    <div id="header_right">
    </div>
  </div>
  <div class="content_left">
    hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh
    hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh
    hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh hfhfhfhfhfhfhfhfhfhfhffhfhhfhfhfhfhfhfhfhfhfhfhffhfh
  </div>

  <div class="content_right">
  </div>

  <div class="footer">
    Footer goes here
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

示例jsfiddle示例

html css overlapping

3
推荐指数
2
解决办法
1万
查看次数

链接未显示在<td>标记内

我试图在其中包含一个链接<td></td>,但它根本没有显示.

<tr align=left>
    <td><span style="font-weight:bold;">Website</span></td>                       
    <td><a href="http://www.zionsb.org"></a></td>
</tr> 
Run Code Online (Sandbox Code Playgroud)

CSS

td {  
    text-transform: none;
    line-height: 115%;
    vertical-align: middle; 
    padding: 5px 0 5px 5px;        
}
Run Code Online (Sandbox Code Playgroud)

请问我哪里错了?

html css html-table

2
推荐指数
1
解决办法
1495
查看次数

标签 统计

css ×2

html ×2

html-table ×1

overlapping ×1