Quantcast
Channel: Últimos conteúdos
Viewing all articles
Browse latest Browse all 14190

Barra de rolagem não está funcionando vejam

$
0
0
<title>Mostra notícias</title>
<link rel="stylesheet" href="mostra.css" media="all" />
 
<style type="text/css">
#rolagem {
overflow: auto;
          width:inherit;
          height:inherit;
 color:#333333;
 font-family: verdana;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
color: #333333;
text-align: lefth;
text-indent: 4px;
  
}
.texto {
font-family: verdana;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
color: #333333;
text-align: left;
text-indent: 4px;
}
</style>
 
</head>
 
<body>
 
<table border="0" class="noticias">
        
  
      
    <div id="rolagem">  
 
<?php
include"conecta.php";
 
$sql = pg_query("SELECT * FROM noticias ORDER BY id DESC");
$conta = @pg_num_rows($sql);
 
if($conta <= 0){
echo '<h2 align="center">Nenhuma Imagem Postada</h2>';
}else{
 
while($imagem = pg_fetch_array($sql)){
 
echo
'
<div id="img" >
<tr><td><img src="Imagens/'.$imagem['img_not'].'" height="100" title="'.$imagem['id'].'"></td>
</div>';
 
$texto = substr($imagem['texto_not'], 0, 55); 
 
if (strlen($imagem['texto_not']) > 55)  $texto .= '...'; 
 
echo
"<td>"."<b>".$imagem['titulo_not']."<br>"."</b>"."<br>".$texto;
  echo "<br/>";
  
 echo'<div><br> 
<a href="mostra_texto.php?acao='.$texto['texto_not'].'&cod='.$imagem['id'].'">'.substr("Ver mais", 0,65)."...".'</a></tr></td>
 
        </div>';
 
 
 
 
}
}
 
?>

Viewing all articles
Browse latest Browse all 14190

Trending Articles