Hallo Phphulpers,
Ik heb een <input type="button" (of submit) />. Kleurtje geven gaat prima. Ook hover gaat prima, maar niet in Internet Explorer. Weet iemand hoe het ook in IE werkend te krijgen is?
SanThe.
2.687 views
<button type="submit">Verzenden</button>
input.on
{
margin : 5px;
background-color : red;
color : yellow;
}
input.on:hover
{
background-color : yellow;
color : red;
}
#buttonSubmit{
background:#000;
}
#buttonSubmit:HOVER{
background:#FFF;
}
SanThe schreef op 15.09.2008 14:33Hallo Phphulpers,
Ik heb een <input type="button" (of submit) />. Kleurtje geven gaat prima. Ook hover gaat prima, maar niet in Internet Explorer. Weet iemand hoe het ook in IE werkend te krijgen is?
SanThe.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Robert Deiman" />
<title>Button hover</title>
<style type="text/css">
body{
behavior:url(csshover.htc)
}
input.submit{
color:#ffccff;
font-style:italic;
font-weight:bold;
background-color:#CCFFFC;
border: 1px outset #00FFCC;
}
input.submit:hover{
color:#ffccff;
font-style:italic;
font-weight:bold;
background-color:#CCFFCC;
border: 1px inset #00FFCC;
}
</style>
</head>
<body>
<form action="#" method="post">
<input type="submit" value="verzenden" class="submit" />
</form>
</body>
</html>edit
Let wel op, ik heb dit ooit proberen te gebruiken in combinatie met de pngfix, dat ging niet helemaal goed.
button:hover,
button.hover
{
background-color : yellow;
color : red;
}
$("button").hover(
function()
{
$(this).addClass("hover");
},
function()
{
$(this).removeClass("hover");
}
);