in Css wäre das einfach
Variante 1. externes stylesheet
deine style.css:
Code:
input[type="text"], input[type="password"] {
border:none;
background:url("img/bg.png") no-repeat;
width:50px;
height:20px;
outline:none;
}
und in deiner index.html im <head>
Code:
<link rel="stylesheet" type="text/css" href="style.css" />
Variante 2. im <head> direkt
Code:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
input[type="text"], input[type="password"] {
border:none;
background:url("img/bg.png") no-repeat;
width:50px;
height:20px;
outline:none;
}
</style>
</head>
<body>
</body>
</html>
sind natürlich alles fiktive Werte.