内部内容背景不会在 IE 中显示
我正在努力让我的内部背景图像在 IE 中显示,在 FF 和 chrome 中运行良好。想不通。
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-block">
<div id="repeating-content">
<div id="interior-content">
<cc1:CMSEditableRegion ID="txtMain" runat="server" DialogHeight="312" RegionType="HtmlEditor" RegionTitle="Main Content" />
</div>
</div>
<div id="side-navigation">
<cms:CMSListMenu ID="CMSListMenuSub" runat="server" HighlightAllItemsInPath="true" ClassNames="CMS.MenuItem" RenderCssClasses="true" CSSPrefix="side1;side2" DisplayHighlightedItemAsLink="true" Path="/{0}/%"/>
</div>
<div style="clear: both;"></div>
#repeating-content-landing
{
float: left;
margin: 0px 0px 0px 40px;
background: #959398 url(../site-images/landing-page/final-landing-page-design.jpg);
width: 820px;
}
#interior-content
{
padding: 32px 32px 32px 32px;
background: #999999 url(../site-images/interior-content.gif)repeat-y;
min-height: 312px;
}
#interior-content-landing
{
padding: 0px 0px 0px 0px;
background: #999999 url(../site-images/landing-page/final-landing-page-design.jpg) no-repeat;
min-height: 700px;
}
<style />
I am struggling to get my interior background image to display in IE, works fine in FF and chrome. Cant figure it out.
<div id="banner">
<div id="banner-image"><cms:CMSEditableImage ID="BannerPhoto" runat="server" ImageHeight="284" ImageWidth="892" /></div>
</div>
<div id="interior-content-block">
<div id="repeating-content">
<div id="interior-content">
<cc1:CMSEditableRegion ID="txtMain" runat="server" DialogHeight="312" RegionType="HtmlEditor" RegionTitle="Main Content" />
</div>
</div>
<div id="side-navigation">
<cms:CMSListMenu ID="CMSListMenuSub" runat="server" HighlightAllItemsInPath="true" ClassNames="CMS.MenuItem" RenderCssClasses="true" CSSPrefix="side1;side2" DisplayHighlightedItemAsLink="true" Path="/{0}/%"/>
</div>
<div style="clear: both;"></div>
#repeating-content-landing
{
float: left;
margin: 0px 0px 0px 40px;
background: #959398 url(../site-images/landing-page/final-landing-page-design.jpg);
width: 820px;
}
#interior-content
{
padding: 32px 32px 32px 32px;
background: #999999 url(../site-images/interior-content.gif)repeat-y;
min-height: 312px;
}
#interior-content-landing
{
padding: 0px 0px 0px 0px;
background: #999999 url(../site-images/landing-page/final-landing-page-design.jpg) no-repeat;
min-height: 700px;
}
<style />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信除非属性值间隔正确,否则 CSS 无法正确解析。您的网址和重复之间没有空格:
发件人:
收件人:
I believe the CSS does not parse correctly unless the property values are spaced out properly. You have no space between your url and repeat:
From:
To:
另一件要尝试的事情是将各个项目分开:
希望这会有所帮助。
The other thing to try is to break the individual items apart:
Hope this helps.