CSS菜单好奇的问题 [英] CSS Menu Curious Probelm

查看:77
本文介绍了CSS菜单好奇的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从下面的菜单代码中,我在头部区域的同一文件中使用样式部分工作正常...但是一旦我复制&将此代码粘贴到样式表中的styles.css ....但不能像以前的相同文件样式一样...



对我有什么建议?感谢您的指导...



CSS部分给出的代码:

Hi, from the below menu code once I used the style part in same file of head area is working fine...But once I copy & paste this codes to styles.css in style sheet.... but not working like the previous same file style...

Any suggestion for me? Thanks for the guidances...

CSS Code given in head part:

<style type="text/css" >
        .red #slatenav{position:relative;display:block;height:42px;font-size:15px;font-weight:bold; background:transparent url(MyImages/MenuLine.jpg) repeat-x top left;font-family: Calibri; }
    .red #slatenav ul{margin:0px;padding:0;list-style-type:none;width:auto;}
    .red #slatenav ul li{display:block;float:left;margin:0 1px 0 0; }
    .red #slatenav ul li a{display:block;float:left;color:#fff;text-decoration:none;padding:12px 28px 0 28px;height:28px;border: 1px #606060 solid;}
</style>





我的菜单代码





My Menu Codes

<div class="red">
     <div id="slatenav">
          <ul>
              <li id="Home"><a href="#" title="css menus"></a></li>
              <li><a href="#" title="css menus">About Us</a></li>
              <li><a href="#" title="css menus">Solutions</a></li>
           <li><a href="#" title="css menus">Services</a></li>
           <li><a href="#" title="css menus">Technical Support</a></li>
        </ul>
     </div>
</div>





谢谢



Thanks

推荐答案

这可能是一个问题..它是样式表和文件夹之间的文件夹问题....

再次感谢
This might be an Issues..It's a folder problem....between stylesheet & folder..
Thanks Again


No ...看起来像一个问题...



下面的链接方法将不起作用,问题..对于css参考图像



以下链接方法不适用于图像
No...Its look like an issue...

The below link method will work no, problem.. for css refering the images

The below link method will not work for images


这篇关于CSS菜单好奇的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆