關於.net頁面提交後css失效或部分失效的問題

來源:互聯網
上載者:User

問題描述:在提交後出現css部分失效,如div位置,字型大小。
問題解決:原因是,過去的提示句我們一律使用了Response.write("<script>alert("***")</script>"),用了.write輸出 js指令碼.
alert等破壞了css 載入。解決辦法將Response.write("<script>alert("***")</script>")改換成Page.RegisterStartupScript("Startup","<script>alert("***")</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.