开发者

My Css file isnt loading in my Asp.Net MVC 2 project

I added some css to the default css file to put css in one of my view pages but its not loading

<ul id="timeline">
 <% foreach (var update in Model.Updates)
    { %> 
  <li>
  <div class="message"> .......

css I put in the default file is

#timeline {list-style: none; padding:0;}
#timeli开发者_JAVA技巧ne li {border-top: dashed 1px #888; padding: 5px 0;}
#timeline li:hover {background: #eee;}
#timeline li div.message {font-size: 10pt;}
#timeline li div.message span{font-weight: bold;}
#timeline li div.time {font-size: 8pt; font-style:italic;}

I am using vs2010 on my home laptop...any ideas?


As seen in this live demonstration the CSS and the supposed HTML markup work fine. So you have either:

  • HTML that doesn't match the CSS rules
  • The CSS file is not found/included in your application because you specified a wrong path to it

In any cases FireBug could be very useful in diagnosing this types of problems.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜