0

我正在开发一个可以在 ie 中运行但不能在 Safari 中运行的遗留应用程序。代码中的图像不会在 Safari 中呈现。

     <section class="feature pointer clickableSection tooltipContainer" id="SearchSection" 
                    data-scd-nextScreen="@Url.Action("FullSearch", "Company")"data-placement="bottom"
                    data-toggle="tooltip" data-title="Click here to SEARCH Addresses">
            <img src="@Url.Content("~/images/phonebook.png")" alt="Click here to SEARCH Addresses" />
            <h3><span style="text-decoration: underline">Search Addresses</span><span id="searchHeading"></span></h3>
            <div class="loadMessage"></div>       
        </section>

我已经启动并运行了 Safari Web Inspector,但我看不到哪里可以找到问题所在。我是使用这个工具的新手。

4

1 回答 1

0

我发现问题出在哪里。在我没有发布的 CSS 中,它有;

section.feature img {
    color: #999;
    /*content: attr(alt);*/
    font-size: 1.5em;
    font-weight: 600;
    height: 140px;
    width: 200px;
}

我已经注释掉了与 Safari 不兼容的行,即 content: attr(alt);

于 2014-01-27T11:01:38.937 回答