Salut,
ma feuille css ne prends pas, ou plutot ne prends plus.... et encore mieux : meme si je l'efface son code (les couleurs par exemple) reste present (trop fort !!!). par contre si j'efface la <div> sur ma feuille html (php), l'effet disparait.
ca fonctionnait niquel hier, je viens de ralumer et tout bloque....
quelqu un a une idee ?? (fatiguant de perdre son temps avec une pauvre feuille css....)
Code HTML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <! DOCTYPE html> <html> <head> <meta charset="utf-8"/> <link href="style.css" rel="stylesheet" type="text/css"/> <title>Le Blog</title> </head> <body class="superCont"> <?php echo $content; ?> </body> </html>
le fichier css est placer dans le même dossier que le contrôleur (index.php). Architecture MVVM.
style.css
Class (dossier)
index.php
View(dossier)
j'ai oublie (pardon)
feuille css
Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 .superCont { width: 90%; margin:auto; } .news { border: black 1px solid; width: 80%; margin: auto; margin: 10px auto; background: #D8EFF8; } h1 { color:red; }
feuille php: viewNews
Code PHP : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 <?php ob_start(); ?> <h1 >Les dernières news !</h1> <p>Derniers billets du blog :</p> <p><?php if(isset($messErr)) { echo 'attention !!! ' .$messErr; } ?></p> <div class="container"> <p> <form method="post" action="index.php"> <p> <label for ="pseudo">Pseudo :</label><br /> <input type="text" name="pseudo" id="pseudo" maxlength="30"/> </p> <p> <label for ="title">Title :</label><br /> <input type="text" name="title" id="title" maxlength="100"/> </p> <p> <label for ="text">Text :</label><br /> <textarea name="text" id="text" rows="7" cols="50" required></textarea> </p> <p> <input type="submit" name="news" value="envoyer" /> </p> </form> </p> <div> <?php foreach ($news as $aff) {?> <p class="news">Auteur : <?=htmlspecialchars($aff->Pseudo())?>. Titre : <?=htmlspecialchars($aff->Title())?><br /> Article :<br /> <?=htmlspecialchars($aff->TextN())?><br /> <?=htmlspecialchars($aff->Quand())?><br /> <?php echo '<a href="index.php?id_readN='.$aff->Id().'">lire article</a><br />'; echo'<a href="index.php?id_news='.$aff->Id().'">voir commentaire : '.htmlspecialchars($managerCo->nbrComments($aff->Id())).'</a>'?><br /> </p> <?php } ?> <p>page : <?php if(isset($page)){echo $page;}?> </p> </div> </div> <p>il y a <?php if(isset($nbr)){echo $nbr;}?> pages<br /> <form method='post' action='index.php'> <input type="number" step="1" min="1" max="<?=$nbr?>" name="page" required/> <input type="submit" name="choixPage" value="autre page" /> </form></p> <a href="index.php?acceuil=''">retour aux news</a> <?php $content = ob_get_clean(); require('template.php'); ?>
Partager