简体   繁体   English

ASP.NET中的CSS代码

[英]CSS code in ASP.NET

Where should I put the css code for the images of /home/portfolio in Visual Studio ASP.NET project? 在Visual Studio ASP.NET项目中,应该将/ home / portfolio图像的css代码放在哪里?

<div id="site_content" class="col-md-3">
  <ul id="gallery">
    <li>
      <a href="">
        <img src="~/images/portfolio1.jpg" width="400" height="300" />
        <p>My portfolio file 1</p>
      </a>
    </li>
    <li>
      <a href="">
        <img src="~/images/portfolio2.jpg" alt="" />
        <p>My portfolio file 2</p>
      </a>
    </li>
  </ul>
</div>

I want this to be without list-style-type and to be responsive 我希望这没有列表样式类型并且要响应

You can try like this: 您可以这样尝试:

In SolutionExplorer ---> Right click to project ---> Add existing item and then select your Stylesheet(CSS). 在SolutionExplorer中--->右键单击以进行项目--->添加现有项,然后选择样式表(CSS)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM