【发布时间】:2016-03-10 10:28:01
【问题描述】:
我想在我的 asp.net 4 项目中使用 bootsrap。
我使用 nuget 在 Visual Studio 中安装了引导程序:
我有全局 css 文件:
/*Global styles*/
body, form
{
direction: rtl;
font-family: Arial;
font-size: 16px;
color: #333333;
margin: 0px;
padding: 0px;
background-position: bottom;
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #f8f8f8;
}
input[Type=text], input[Type=password], input[Type=button], input[Type=submit], input[Type=reset], input[Type=file], select, textarea
{
margin: .2em .05em;
border: 1px solid #333333;
color: #333333;
}
input[Type=text], input[Type=password], input[Type=file], select, textarea
{
max-width: 225px;
width: 98%;
}
input[Type=text]:disabled, input[Type=password]:disabled, input[Type=file]:disabled, select:disabled, textarea:disabled
{
background-color: #E6F6FA;
}
input[Type=button], input[Type=submit], input[Type=reset]
{
background-color: #EEEEEE;
cursor: pointer;
}
input[Type=button]:hover, input[Type=submit]:hover, input[Type=reset]:hover
{
background-color: #DCDCDC;
}
我需要使用引导程序定义按钮和其他元素的样式,我想在全局 css 文件中定义它。
所以我的问题是如何在 css 文件中使用引导程序?
【问题讨论】:
标签: css asp.net twitter-bootstrap