|
 2.2 Кб |
|
| Пожалуйста Помогите создать текст как на картинке (
Вот код:
<?php
$ip=$_SERVER['REMOTE_ADDR'];
echo "$ip";
?>
|
Стиль текста:
color: #b22626; font-family: 'Times New Roman'; font-size: 32px; font-weight: bold; line-height: normal; text-align: center; word-spacing: 0px
|
| |
|
|
|
|
|
|
|
для: Helper
(14.08.2013 в 11:32)
| |
.style{
color: #b22626;
font-family: 'Times New Roman';
font-size: 32px;
font-weight: bold;
line-height: normal;
text-align: center;
word-spacing: 0px
}
<?php
$ip=$_SERVER['REMOTE_ADDR'];
echo '<div class="style">' . $ip . '</div>';
?>
|
| |
|
|
|
|
|
|
|
для: Jovidon
(14.08.2013 в 14:57)
| | Стиль не присвоился, текст так и остался | |
|
|
|
|
|
|
|
для: Helper
(14.08.2013 в 20:23)
| | Вариант № рас
<html><head><style>
.style{
color: #b22626;
font-family: 'Times New Roman';
font-size: 32px;
font-weight: bold;
line-height: normal;
text-align: center;
word-spacing: 0px
}
</style></head><body>
<?php
$ip=$_SERVER['REMOTE_ADDR'];
echo '<div class="style">' . $ip . '</div>';
?>
</body></html>
|
Вариант № два
<div style="color: #b22626; font-family: 'Times New Roman'; font-size: 32px; font-weight: bold; line-height: normal; text-align: center; word-spacing: 0px">
<?=$_SERVER['REMOTE_ADDR']?>
</div>
|
И вариантов еще полно. | |
|
|
|
|
|
|
|
для: Sfinks
(14.08.2013 в 21:16)
| | Спасибо большое, очень помог | |
|
|
|