我最近购买了一个引导主题,我尝试应用于我的MVC3 Web App项目。MVC3中的CSS背景图片 - 续
我有问题在social-icons.css中获取背景图片来渲染。
在_Layout.cshtml我已经引用:
link href="@Url.Content("~/Content/social-icons.css")" rel="stylesheet" type="text/css"
在头
。
在社会icons.css:
[class^="social-"],
[class*="social-"] {
display: inline-block;
width: 40px;
height: 40px;
margin-right: .3em;
line-height: 40px;
vertical-align: text-top;
background-image: url("img/icons/social-icon-set.png");
background-position: 40px 40px;
background-repeat: no-repeat;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
-webkit-border-radius: 50em;
-moz-border-radius: 50em;
border-radius: 50em;
}
我已经检查了社会icons.css 和社会图标 - set.png两者的路径和一切似乎就起来了。
我检查了Q & A在这里,这并没有帮助我。 CSS background images in MVC3
想要提前为任何不清楚的信息道歉。
你好Farrowdm ,并欢迎来到StackOverflow。 你的问题对我来说很好看,所以我希望我们能够帮忙。 – 2013-03-13 13:41:13