どのようにユーザーコントロールを知cssクラスASP.NET
-
09-06-2019 - |
質問
そのため、ヘッダ部分のユーザー管理asp.netユーザーコントロールをないスタイルシートファイルです。でcssクラスのユーザーコントロールは認められませんvisual studioにより、生産の下方修正を発表している。どうしたいのでユーザー制御を知ることに関するcssのクラスでであれば警戒感、存在しないcssのクラスは、このクラスではありませんがありますか?
編集:または行くべき異なるデザインのような露cssクラスとまっていただいた皆様ありがとう"HeaderStyle-CssClass"のGridView?
解決
こうした:
<link rel="Stylesheet" type="text/css" href="Stylesheet.css" id="style" runat="server" visible="false" />
この商品はVisual Studioに考えてきたスタイルシートのページになることはありませんが描画されます。
こちらはより簡潔ないということで複数の参照;
<% if (false) { %>
<link rel="Stylesheet" type="text/css" href="Stylesheet.css" />
<script type="text/javascript" src="js/jquery-1.2.6.js" />
<% } %>
など このブログ からフィルハ.
他のヒント
追加のスタイルをおusercontrol入cssます。
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="WCReportCalendar.ascx.vb"
Inherits="Intra.WCReportCalender" %>
<style type='text/css'>
@import url("path of file.css");
// This is how i used jqueryui css
@import url("http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css");
</style>
your html
利用できる CSS
直接的に userControl
.
それを使 UserControl
:
<head>
<title></title>
<style type="text/css">
.wrapper {
margin: 0 auto -142px;
/* the bottom margin is the negative value of the footer's height */
}
</style>
</head>
このことです。
所属していません StackOverflow