开发者

I don't want to apply styles to my button [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 1开发者_运维知识库1 years ago.

I want to put a button without style inside a big page that use several CSS. So, I don't want to apply these styles to my button.

Thanks!


You can apply a CSS class to your button and override all of the rules already being applied to it by other CSS rules.

<input class="blandbutton" />

.blandbutton {
    /* Override rules already set to the button */
    /* If you have a CSS rule that gives it a border of 1px solid cyan,
       this will cause any element with the blandbutton class to use THIS 
       as it's more specific. */

    border: 1px solid black;
}


Add a class to your button, and override the styles:

<input class="mybutton" />

.mybutton
{
background:none;
}


Without any code or context, the most I can do is link you to the YUI Contextual CSS Reset stylesheet.

Just include it as a stylesheet:

<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.4.1/build/cssreset-context/cssreset-context-min.css">

And add this class to your element:

 class="yui3-cssreset"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜