[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: не срабатывает ellipsis
dimonise
всем привет. не могу понять почему не срабатывает свойство ellipsis - точнее как, строку обрезает но троеточие не ставит проверял во всех попутярных браузерах - картина везде одинаковая. вот код вывода данных из базы:
<?php
$a = mysql_query("select * from `users` where `confirm`='1' and `active`='1' and `company_email` != 'admin' ORDER BY `id` DESC LIMIT 10;");

while($b = mysql_fetch_assoc($a))
{
echo "<div id='inindex'>
<table style='width:100%' >
<tr>
<td rowspan='5' style='width:80px;padding-right:10px'>
<img src='"
.base_url().$b['logo']."' height='90px' width='85px' style='border-radius:6px;cursor:pointer' onclick='full_card_start($b[id])'>
</td>
"
;
echo "<td><h4 style='font-family:Tahoma;font-size:18px;color:#333333;margin-top:2px;margin-bottom:2px;cursor:pointe r;' onclick='full_card_start($b[id])'>".$b['company_name']."</h4></td></tr>";
echo "<tr><td><span style='font-family:Tahoma, regular;font-size:14px;text-decoration:underline;color:#3399cc'>".$b['company_site']."</span></td></tr><tr><td>";
$c= mysql_query("select * from `user_business` left join `business` on `business`.`id_bus` = `user_business`.`id_bus` where `user_business`.`id_user`=$b[id]");
while($d = mysql_fetch_assoc($c)){echo "<span style='font-family:Tahoma, regular;font-size:12px;color:#333333;margin-top:0px;margin-bottom:0px;'>".$d['business']."</span> / ";}
echo "</td></tr><tr><td>";
//страны
$c= mysql_query("select * from `user_country` left join `country` on `country`.`id_c` = `user_country`.`id_country` where `user_country`.`id_user`=$b[id]");
while($d = mysql_fetch_assoc($c)){
echo "<span style='font-family:Tahoma, regular;font-size:12px;color:#333333;margin-top:0px;margin-bottom:0px;' class='block'>$d[country]</span> / ";
}
echo "</td></tr></table></div>";

}

?>


вот css

.block {
text-overflow: ellipsis;
width:100%;
white-space: nowrap;
overflow:hidden;
-o-text-overflow: ellipsis;
}
#inindex{
margin-bottom:20px;
white-space: nowrap;
overflow:hidden;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
}
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.