JS, CSS 引用樣式

來源:互聯網
上載者:User

CSS:

1.

<link type="text/css" href="<%=ResolveUrl("~/css/css.css")%>" rel="stylesheet"/>  asp.net相對伺服器路徑

<link type="text/css" href="/css/css.css" rel="stylesheet"/>

2.

<style type="text/css">
  .txtClass {
      font-size: 12px;
  }

</syle>

JS: 標籤不能簡寫, 必須<script></script>

1.

  <script type="text/javascript" src="<%=ResolveUrl("~/js/jquery-1.4.2.mini.js")%>" ></script>    asp.net相對伺服器路徑

<script type="text/javascript" src="/js/jquery-1.4.2.mini.js" ></script>

2.

<script language="javascript" type="text/javascript">
    function check_up_message(text)
    {
       
    }
</script>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.