I don't want to apply styles to my button [closed]
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"
精彩评论