首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >YUI和Purecss按钮颜色

问YUI和Purecss按钮颜色
EN

Stack Overflow用户
提问于 2014-10-22 15:58:03
回答 1查看 213关注 0票数 1

我用YUI皮肤生成器创建了一个简单的CSS,但是,当我尝试在MVC项目中使用它时,颜色系统是不正确的

我的皮肤是:皮肤,喷出的按钮颜色是红色的,但是,我只得到一个灰色或蓝色的按钮:

​

我的cshtml代码:

代码语言:javascript
复制
@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta name="viewport" content="width=device-width" />
    <title>UniFlex</title>
    <link href="@Url.Content("~/css/pure/pure-min.css")" rel="stylesheet" />
    <link href="@Url.Content("~/Content/pure-skin-min.css")" rel="stylesheet" />
</head>
<body>
    <div style="margin-top: 60px;margin-left:auto; margin-right: auto;width:330px;">
        <img src="@Url.Content("~/Imagens/logo.png")">
    </div>

    <div style="width:500px; margin-right:auto; margin-left:auto;">
        <form class="pure-form pure-form-aligned">
            <fieldset>
                <div class="pure-control-group">
                    <label for="name">Usuario:</label>
                    <input id="name" type="text" placeholder="Username">
                </div>

                <div class="pure-control-group">
                    <label for="password">Senha:</label>
                    <input id="password" type="password" placeholder="Password">
                </div>
                <button class="pure-button pure-button-primary">A Pure Button</button>
            </fieldset>
        </form>
    </div>
</body>
</html>

怎么了?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-22 16:10:35

好的,我忘了把css的名字放在正文里

代码语言:javascript
复制
<body class="pure-skin-mine">



<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta name="viewport" content="width=device-width" />
    <title>UniFlex - Bradesco</title>
    <link href="@Url.Content("~/css/pure/pure-min.css")" rel="stylesheet" />
    <link href="@Url.Content("~/Content/pure-skin-mine.css")" rel="stylesheet" />
</head>
<body class="pure-skin-mine">
    <div style="margin-top: 60px;margin-left:auto; margin-right: auto;width:330px;">
        <img src="@Url.Content("~/Imagens/bradesco-logo.png")">
    </div>
...

现在工作做得很好!

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26511825

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档