【问题标题】:Text is not showing up文字未显示
【发布时间】:2012-05-24 11:08:43
【问题描述】:

http://i.imgur.com/xEUo3.png 我正在尝试让文本显示在黄色框中。但我不知道为什么它不起作用。

这是我正在使用的代码。只是在黄框里没用。

 <div id="Header"></div>
    <div id="Main">
  <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="#">Startsida</a></li>
    <li><a href="#">Medlemmar</a></li>
    <li><a href="#">Galleri</a></li>
    <li><a href="#">Forum</a></li>
    <li><a href="#">Kontakt</a></li>
     </ul>
  <div id="Start">Textytexttext</div>
</div>
<div id="Footer"></div>



@charset "utf-8";

#Header {
    background-color: #F00;
    height: 200px;
    width: 1000px;
    margin: auto;
}


#Main {
    background-color: #0C0;
    height: 700px;
    width: 1000px;
    margin: auto;
}
#Start {
    background-color: #FF0;
    width: 990px;
    height: 690px;
    position: absolute;
    clip: rect(46px,auto,auto,10px);
}
#Footer {
    background-color: #666;
    height: 20px;
    width: 1000px;
    margin: auto;
}

【问题讨论】:

    标签: html css text


    【解决方案1】:

    这和这个样式有关clip: rect(46px,auto,auto,10px);如果你删除它就会出现文本。看到这个jsFiddle

    【讨论】:

      【解决方案2】:

      这是clip: rect(46px,auto,auto,10px); 的行。你为什么用它?我敢肯定还有另一种方法可以不使用它。

      编辑:刚刚看到巴里打败了我。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-08-24
        • 2023-04-03
        • 2020-01-11
        • 1970-01-01
        相关资源
        最近更新 更多