tp2
This commit is contained in:
34
TP/TP2/ex3/calculatrice.php
Normal file
34
TP/TP2/ex3/calculatrice.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="http://www.iut-fbleau.fr/css/tacit.css">
|
||||
<link rel="stylesheet" href="./css/style.css">
|
||||
</head>
|
||||
<body container>
|
||||
<h3>Calculatrice</h3>
|
||||
<form method="POST">
|
||||
<!-- opérande 1 -->
|
||||
|
||||
<input placeholder="un nombre" type="number" step="any" name="op1" />
|
||||
|
||||
<!-- opération -->
|
||||
|
||||
<select name="operation">
|
||||
<option value="+">+</option>
|
||||
<option value="-">-</option>
|
||||
<option value="x">x</option>
|
||||
<option value="/">/</option>
|
||||
</select>
|
||||
|
||||
<!-- opérande 2 -->
|
||||
|
||||
<input placeholder="un nombre" type="number" step="any" name="op2" />
|
||||
|
||||
<!-- bouton -->
|
||||
|
||||
<button type="submit" name="soumis"> Calculer</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
6
TP/TP2/ex3/css/style.css
Normal file
6
TP/TP2/ex3/css/style.css
Normal file
@@ -0,0 +1,6 @@
|
||||
input[type="text"],
|
||||
select
|
||||
{
|
||||
display:inline-block;
|
||||
width:auto;
|
||||
}
|
Reference in New Issue
Block a user