Versio

include style.css

Overzicht Reageren

Mitchel V

Mitchel V

07/02/2011 19:05:24
Quote Anchor link
Hallo.

ik probeer style.css te include:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
<html>
<head>
<title>iPhone App</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="content">
Test
</div>
</body>
</html>


in de zelfde DIR heb ik het bestand style.css.
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
.content {
    height: 713px;
    width: 365px;
    background: url('images/bg.png');
    margin-left: auto;
    margin-right: auto;
}


maar dit werkt niet?
wat doe ik fout?
 
PHP hulp

PHP hulp

25/05/2012 04:14:20
Gesponsorde koppelingen:
BHosted Hosting al vanaf € 1,- per maand

Controleer nu gratis jouw domeinnaam:

  
 
Jurrian Nijland

Jurrian Nijland

07/02/2011 19:08:31
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<link href="style.css" rel="stylesheet" type="text/css">


Die laatste slash moet weg volgens mij, dan krijg je;
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
<html>
<head>
<title>iPhone App</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="content">
Test
</div>
</body>
</html>
 
PHP Jasper

PHP Jasper

07/02/2011 19:09:08
Quote Anchor link
Wat werkt er juist niet? Kloppen al je paden?

Toevoeging op 07/02/2011 19:10:06:

Jurrian Nijland op 07/02/2011 19:08:31:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<link href="style.css" rel="stylesheet" type="text/css">


Die laatste slash moet weg volgens mij, dan krijg je;
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
<html>
<head>
<title>iPhone App</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="content">
Test
</div>
</body>
</html>


Neen bij xhtml moet er een / achter


Toevoeging op 07/02/2011 19:11:28:

Wat ik ook soms zie: <link rel="stylesheet" href="style.css" type="text/css" media="screen" />

Geen idee of dat juist(er) is.
 
Mitchel V

Mitchel V

07/02/2011 19:12:40
Quote Anchor link
De style wordt niet geinclude o.O
ik wordt er gek van want ik weet niet wat ik fout doe..

met firebug zegt hij dat er geen style is gevonden
dit werkt wel:

<style type="text/css">

</style>
Gewijzigd op 07/02/2011 19:13:32 door Mitchel V
 
PHP Jasper

PHP Jasper

07/02/2011 19:15:08
Quote Anchor link
Je path klopt niet? Staat hij online?
 
Mitchel V

Mitchel V

07/02/2011 19:16:05
Quote Anchor link
ik pm hem je wel even. dat is omdat google deze website goed door spit en dat komen de linkjes in google naar voren :)
 
Roel van de Water
Moderator

Roel van de Water

07/02/2011 19:25:40
 
Mitchel V

Mitchel V

07/02/2011 19:29:45
Quote Anchor link
http://bit.ly/eJc8hw

Toevoeging op 07/02/2011 19:39:48:

wat mij opviel, ik kijk op mijn iphone op de link en hij laat hem wel goed zijn, maar in mijn safari op mn mac niet???
hoe kan dit
 
PHP Jasper

PHP Jasper

07/02/2011 19:41:38
Quote Anchor link
in chrome en firefox lijkt hij ook goed?
 
Mitchel V

Mitchel V

07/02/2011 19:48:14
 
PHP Jasper

PHP Jasper

07/02/2011 19:51:36
 
Mitchel V

Mitchel V

07/02/2011 19:53:57
Quote Anchor link
Ik wordt een beetje heeeeel erg gek en boos xD
Kan iemand mij helpen met dit probleem?
 
PHP Jasper

PHP Jasper

07/02/2011 19:54:41
Quote Anchor link
verwijder je cache eens.
 
Mitchel V

Mitchel V

07/02/2011 20:00:00
Quote Anchor link
omg bedankt o.O
Stomme cache, normaal leegt hij hem wel o.O
Thankss
 
PHP Jasper

PHP Jasper

07/02/2011 20:01:31
Quote Anchor link
np ;) heb ik ook al eens gehad.. :)
 



Overzicht Reageren

Get Adobe Flash player