开发者

Background image css opera issue

Am having 开发者_如何学编程an issue in opera. I have a series on hyperlinnks in a ul li with backgorund images applied. The pointer cursor isnt displaying when I hover over the links.

Is this a know bug, code below

  • /cricket" title="Cricket" id="cricket-link" style="background-image:url(/wp-content/themes/blank2L/images/sidebar-cricket-bg.jpg);" onmouseover="$().hoverSidebarImage('/wp-content/themes/blank2L/images/sidebar-cricket-bghover.jpg', 'cricket'); return false;" onmouseout="$().originalSidebarImage('/wp-content/themes/blank2L/images/sidebar-cricket-bg.jpg', 'cricket'); return false;">Cricket
  • #sidebar ul {
    margin: 0;
    padding: 0 0 27px 16px;
    display: block;
    float: left;
    width: 180px;
    }
    
    #sidebar ul li {
    background-image: url(images/left-nav-bg.jpg);
    background-repeat: no-repeat;
    margin: 0;
    margin-bottom: 10px;
    padding: 0;
    display: block;
    float: left;
    width: 180px;
    height: 40px;
    list-style-type: none;
    cursor:pointer !important;
    }
    
    
    #sidebar ul li a {
    background-repeat: no-repeat;
    background-position: 2px 2px;
    margin: 0;
    padding: 8px 8px 0 4px;
    display: block;
    float: left;
    width: 168px;
    height: 32px;
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    cursor:pointer !important;
    } 
    


    you should use hover stage for this id

    #sidebar ul li hover{
    background-repeat: no-repeat;
    background-position: 2px 2px;
    margin: 0;
    display: block;
    float: left;
    width: 168px;
    height: 32px;
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    cursor:pointer !important;
    }
    

    add this css in your style.


    Issue solved, changed mouseover and mouseout events to be return true;

    0

    上一篇:

    下一篇:

    精彩评论

    暂无评论...
    验证码 换一张
    取 消

    最新问答

    问答排行榜