4. BahhTeeUz (4800) [off]
|
TXT |
50| 2 Jun 2017, 18:20
Saytga ulash:
<?
<!DOCTYPE html>
<html>
<head>
.....
<link rel="stylesheet" href="style.css">
</head>
<body>
.....
</body>
</html>
?>
Ko'rib turganingizdek bu <head> tegi orasida o'qiladi.
Aytaylik, siz boshqa papkadan olib o'rnatnoqchisiz buning uchun
@import buyrug'idan foydalanamiz.
<?
<!DOCTYPE html>
<html>
<head>
.....
<style media="all">
<a href='/@import'>@import</a> url(style.css);
</style>
</head>
</html>
?>
Ulashning yana bir turi bunda aloxida fayl emad balkim head tegining o'ziga ya'ni mana bunday:
<?
<!DOCTYPE html>
<html>
<head>
.....
<style>
body {
color: red;
}
</style>
</head>
<body>
.....
</body>
</html>
?>
7. BahhTeeUz (4800) [off]
|
TXT |
50| 2 Jun 2017, 18:40
BAXABEK (2 Jun 2017, 18:33):
Cssdagi xatoliklarni qanday tuzatsa bo'ladi?
BAXABEK, misol qanday xatolik?