0

帮助

我拼命尝试在 Internet Explorer 6 的 DIV 中的右边框上放置背景图像。

至今没有成功。

这是我的 CSS:

.test
{
    width: 100px;
    border-right: red thin solid;
    border-top: red thin solid;
    border-left: red thin solid;
    border-bottom: red thin solid;


    background-position-x: 100%;
    background-position-y: 0px;
    background: url(roundcorner_righttile_11x11.png);
    background-repeat: repeat-y;
}

的HTML:

<div class="test">
 text
</div>

Div 应该最终动态扩展。“100 px”仅用于测试。

也许是因为它是一个png文件?

我很感激任何帮助。

4

2 回答 2

1
.test
{
    width: 100px;
    border: red thin solid;    
    background: url(roundcorner_righttile_11x11.png) right top repeat-y;
}

<div class="test">
 text
</div>
于 2009-08-19T11:44:03.670 回答
1

尝试:

.test
{
    width: 100px;
    border-right: red thin solid;
    border-top: red thin solid;
    border-left: red thin solid;
    border-bottom: red thin solid;

    background-position: right top;
    background: url(roundcorner_righttile_11x11.png);
    background-repeat: repeat-y;
}
于 2009-08-19T11:50:07.137 回答