Jump to content
JOWEB

Código slide pra fixar o tamanho das imagens

Recommended Posts

Olá pessoal.

Preciso de ajuda novamente a algum tempo vendo uns videos no Youtube encontrei um video onde ensinava como deixa a imagens dos slide com tamanho único, onde o mesmo código eu adicionava no código CSS. Estou usando o tema colorMag, o mesmo tem um slide logo no topo do site so que quando mando uma imagens que nao tem o tamanha 800x445px a imagens faz com que o site fica dançando. Alguém pode me ajudar.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By camargo.2018
      Alguem sabe como posso fazer pra puxar imagens do google 
       
      Ex:
      $pesquisa = "fernando e sorocaba";
      e ele me retorna somente uma imagem
       
       
      pfv me ajudem !!!!!
    • By heddyman
      pessoal estou precisando muito de uma ajuda com esse algoritimo de lista encadeada...
       
      #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct aluno { int ru; char nome[45]; char email[60]; struct aluno * proximo; } t_cad; int main(int argc, char *argv[]) { t_cad * ini_cad; t_cad * prox_cad; int cont; int c; ini_cad = (t_cad*)malloc(sizeof(t_cad)); if (ini_cad == NULL) exit(1); prox_cad = ini_cad; while (1) { printf("Digite o RU:"); scanf_s("%d", &prox_cad->ru); printf("Digite o Nome:"); scanf_s("%s",&prox_cad->nome); printf("Digite o email:"); scanf_s("%s", &prox_cad->email); printf("Deseja continuar??? (1)SIM e (0)NAO"); scanf_s("\n %d", &cont); if (cont == 1) { prox_cad->proximo = (t_cad *)malloc(sizeof(t_cad)); prox_cad = prox_cad->proximo; } else break; } printf("\n"); prox_cad->proximo = NULL; prox_cad = ini_cad; while (prox_cad != NULL) { printf("ru: %d\n nome:\n email:", prox_cad->ru, prox_cad->nome, prox_cad->email); prox_cad = prox_cad->proximo; } return 0; } não consigo descobrir o que tem de errado mas na hora de trabalhar ele trava
    • By arielkbs
      Olá pessoal sou novo no fórum, e estou com um problema em um painel de administração, ao tentar cadastrar um novo servidor, ou usuário, a página fica em branco.
       
      Peço ajuda a quem puder me apresentar uma solução!
       
      Código da página: adicionar_exe.php
      <?php require_once("../../../pages/system/seguranca.php"); require_once("../../../pages/system/config.php"); require_once("../../../pages/system/classe.ssh.php"); protegePagina("admin"); if((isset($_POST["nomesrv"])) and (isset($_POST["ip"])) and (isset($_POST["login"])) and (isset($_POST["senha"])) and (isset($_POST["tipo"]))){ // salvadorsucessos@gmail.com $tiposerver=$_POST['tiposerver']; $localiza=$_POST['localiza']; $siteserver=$_POST['siteserver']; $validade=$_POST['validade']; $limite=$_POST['limite']; $regiao=$_POST['regiao']; $site=$_POST['sitevps']; if(!is_numeric($validade)){ echo '<script type="text/javascript">'; echo 'alert("Só é permitido numeros na validade");'; echo 'window.location="../../home.php?page=servidor/adicionar";'; echo '</script>'; exit; } if(!is_numeric($limite)){ echo '<script type="text/javascript">'; echo 'alert("Só é permitido numeros no limite");'; echo 'window.location="../../home.php?page=servidor/adicionar";'; echo '</script>'; exit; } switch($regiao){ case 1:$regi='asia';break; case 2:$regi='america';break; case 3:$regi='europa';break; case 4:$regi='australia';break; default:$regi='nada';break; } if($regi=='nada'){ echo '<script type="text/javascript">'; echo 'alert("Selecione uma Região");'; echo 'window.location="../../home.php?page=servidor/adicionar";'; echo '</script>'; exit; } $SQLServidor = "select * from servidor WHERE ip_servidor = '".$_POST['ip']."' "; $SQLServidor = $conn->prepare($SQLServidor); $SQLServidor->execute(); if(($SQLServidor->rowCount()) > 0){ echo '<script type="text/javascript">'; echo 'alert("Ja existe servidor com o ip '.$_POST['ip'].'");'; echo 'window.location="../../home.php?page=servidor/adicionar";'; echo '</script>'; }else{ //Realiza a comunicacao com o servidor $ip_servidor= $_POST['ip']; $loginSSH= $_POST['login']; $senhaSSH= $_POST['senha']; $ssh = new SSH2($ip_servidor); $servidor_online = $ssh->online($_POST['ip']); if ($servidor_online) { $servidor_autenticado = $ssh->auth($_POST["login"],$_POST["senha"]); if($servidor_autenticado){ if($tiposerver=='free'){ $tipodeservidor='free'; }else{ $tipodeservidor='premium'; } $SQLInsert = "INSERT INTO servidor (ip_servidor, nome, login_server, senha , site_servidor , localizacao , validade , limite, tipo, regiao) VALUES ('".$_POST['ip']."', '".$_POST['nomesrv']."', '".$_POST['login']."', '".$_POST['senha']."', '".$siteserver."', '".$localiza."', '".$validade."', '".$limite."', '".$tipodeservidor."', '".$regi."')"; $SQLInsert = $conn->prepare($SQLInsert); $SQLInsert->execute(); $SQLNServidor = "SELECT LAST_INSERT_ID() AS last_id "; $SQLNServidor = $conn->prepare($SQLNServidor); $SQLNServidor->execute(); $id = $SQLNServidor->fetch(); if($_POST['tipo'] == "full"){ $ssh->exec(" wget http://".$site."/scripts/install.sh "); $ssh->output(); $ssh->exec(" apt-get install dos2unix "); $ssh->output(); $ssh->exec(" dos2unix install.sh "); $ssh->output(); $ssh->exec(" chmod 777 install.sh "); $ssh->output(); $ssh->exec(" chmod +x install.sh "); $ssh->output(); // IP SERVIDOR $ipservidor = $_POST["ip"]; $ipservidor = escapeshellarg($ipservidor); // SITE ARQUIVOS $arquivossite = $site; $arquivossite = escapeshellarg($arquivossite); $ssh->exec(" ./install.sh ".$ipservidor." ".$arquivossite); $ssh->output(); echo '<script type="text/javascript">'; echo 'alert("A instalacao foi concluida!");'; echo 'window.location="../../home.php?page=servidor/servidor&id_servidor='.$id['last_id'] .' ";'; echo '</script>'; }else{ $ssh->exec(" wget http://".$site."/scripts/update/alterarlimite.sh "); $ssh->output(); $ssh->exec(" chmod 777 alterarlimite.sh "); $ssh->output(); $ssh->exec(" chmod +x alterarlimite.sh "); $ssh->output(); $ssh->exec(" wget http://".$site."/scripts/update/criarusuario.sh "); $ssh->output(); $ssh->exec(" chmod 777 criarusuario.sh "); $ssh->output(); $ssh->exec(" chmod +x criarusuario.sh "); $ssh->output(); $ssh->exec("wget http://".$site."/scripts/update/remover.sh "); $ssh->output(); $ssh->exec(" chmod 777 remover.sh "); $ssh->output(); $ssh->exec(" chmod +x remover.sh "); $ssh->output(); $ssh->exec("wget http://".$site."/scripts/update/sshmonitor.sh "); $ssh->output(); $ssh->exec(" chmod 777 sshmonitor.sh "); $ssh->output(); $ssh->exec(" chmod +x sshmonitor.sh "); $ssh->output(); $ssh->exec(" wget http://".$site."/scripts/update/KillUser.sh "); $ssh->output(); $ssh->exec(" chmod 777 KillUser.sh "); $ssh->output(); $ssh->exec(" chmod +x KillUser.sh "); $ssh->output(); $ssh->exec(" wget http://".$site."/scripts/update/AlterarSenha.sh "); $ssh->output(); $ssh->exec(" chmod 777 AlterarSenha.sh"); $ssh->output(); $ssh->exec(" chmod +x AlterarSenha.sh"); $ssh->output(); $ssh->exec(" wget http://".$site."/scripts/update/usuarios.db "); $ssh->output(); $ssh->exec(" chmod 777 usuarios.db "); $ssh->output(); $ssh->exec(" chmod +x usuarios.db "); $ssh->output(); echo '<script type="text/javascript">'; echo 'alert("Servidor pronto para uso!");'; echo 'window.location="../../home.php?page=servidor/servidor&id_servidor='.$id['last_id'] .' ";'; echo '</script>'; } }else{ echo '<script type="text/javascript">'; echo 'alert("Não foi possivel logar no servidor");'; echo 'window.location="../../home.php?page=servidor/adicionar";'; echo '</script>'; } }else{ echo '<script type="text/javascript">'; echo 'alert("Servidor OFF");'; echo 'window.location="../../home.php?page=servidor/adicionar";'; echo '</script>'; } } }else{ echo '<script type="text/javascript">'; echo 'alert("Preencha todos os campos!");'; echo 'window.location="../../home.php?page=servidor/adicionar";'; echo '</script>'; } ?>  
       
       
    • By thiagofdiniz
      Estou fazendo um curso técnico e estou com uma duvida sobre um exercício que me foi passado com a seguinte pergunta:
      Elabore um algoritmo que leia dois números, some cinco ao de menor valor, compare os dois valores e mostre o maior.
       
      Mas no meu código, ele está somando e mostrando o de menor valor, e não o de menor
      Será que alguém pode me ajudar não estou conseguindo enxergar o erro.. 
      x=int(input('Digite um número e aperte ENTER')) y=int(input('Digite um número e aperte ENTER')) if x>y: y=y+5 if x>y: print(x) else: print(y) else: x<y x=x+5 if x<y: print(y) else: print(x)  
    • By shacapell
      Olá pessoal!
      Entendo um pouco de html e tenho um blog em xml, então preciso da ajuda de vocês.
      Eu queria tirar essa função de slide de posts e colocar uma imagem de fundo do mesmo tamanho e um texto com link por cima. Vejam > www.babadeanimais.net
       
      Outra coisinha, nos posts e páginas está configurado para a primeira imagem ficar no topo ocupando todo o espaço. Queria tirar isso, mas nem sei onde está no código.
       
      #main-slider .slick-prev,.main-gallery .slick-prev,#main-slider .slick-next,.main-gallery .slick-next,.related-stuff .slick-prev,.related-stuff .slick-next{font-size:25px;color:#000;display:block;text-align:center;background:#fff;outline:0;padding:0;width:35px;height:50px;position:absolute;top:50%;margin-top:-15px;cursor:pointer;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease} button.slick-nav.slick-prev i{color:#252525} button.slick-nav.slick-next i{color:#252525} span.feat-cat a{color:#FFF;padding:5px 15px;background-color:$(theme.sec.color);border-radius:40px} h2.feat-title a{color:#252525} .feat-readmore a{color:#FFF;padding:6px 10px;background-color:$(theme.color);box-shadow:3px 3px 0 0 $(theme.sec.color)} .feat-readmore a:hover{box-shadow:none} .related-stuff .slick-prev,.related-stuff .slick-next{top:30%} #main-slider .slick-prev{left:200px} .main-gallery .slick-prev,.related-stuff .slick-prev{left:-40px} .main-gallery .slick-next,.related-stuff .slick-next{right:-40px} .main-gallery:hover .slick-prev,.related-stuff:hover .slick-prev{left:0} .main-gallery:hover .slick-next,.related-stuff:hover .slick-next{right:0} .slick-prev:before,.slick-next:before{content:''} #main-slider .slick-next{right:200px} .item{position:relative} #section-featured{position:relative;min-height:50px;width:100%} #main-slider div img{max-width:100%;height:490px;object-fit:cover;width:100%} #main-slider div span.title{font-size:19px;color:#fff;position:absolute;bottom:0;left:0;width:100%;padding:25px;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s} div#main-slider{width:100%;overflow:hidden} div#bt-slider-main .title{display:none} .feat-wrapper{position:absolute;left:10px;bottom:120px;right:10px;padding:20px;width:60%;margin:0 auto} .feat-wrapper-inner{position:relative;height:100%;z-index:99;width:100%;display:table;padding:40px;vertical-align:middle;text-align:center;border-top:0;background:#fff;color:#fff;-webkit-box-shadow:9px 9px 0 0 #F1F1F1;-moz-box-shadow:9px 9px 0 0 #F1F1F1;box-shadow:9px 9px 0 0 #F1F1F1} .feat--inner{vertical-align:middle;display:table-cell} .feat-header{margin-bottom:0;padding:0 20px} .feat-cat:before{content:'';display:inline-block;height:2px;width:40px;background:#A2A2A2;margin-bottom:5px;margin-right:0} .feat-cat:after{content:'';display:inline-block;height:2px;width:40px;background:#A2A2A2;margin-bottom:5px;margin-left:0} span.feat-cat{font-size:12px;letter-spacing:1px;padding-bottom:2px;display:inline-block;margin:0 0 10px 5px;font-weight:400;text-transform:uppercase} .slick-slide{opacity:1;transition:.2s} .item.slick-slide.slick-active.slick-center{opacity:1;transition:.2s} .slick-slider{position:relative;display:block;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent} .slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0} .slick-list:focus{outline:none} .slick-list.dragging{cursor:pointer;cursor:hand} .slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)} .slick-track{position:relative;top:0;left:0;display:block} .slick-track:before,.slick-track:after{display:table;content:''} .slick-track:after{clear:both} .slick-loading .slick-track{visibility:hidden} .slick-slide{display:none;float:left;height:100%;min-height:1px} [dir='rtl'] .slick-slide{float:right} .slick-slide img{display:block} .slick-slide.slick-loading img{display:none} .slick-slide.dragging img{pointer-events:none} .slick-initialized .slick-slide{display:block} .slick-loading .slick-slide{visibility:hidden} .slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent} .slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:20px;height:20px;margin-top:-10px;padding:0;cursor:pointer;color:transparent;border:none;outline:none;background:transparent} .slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent} .slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1} .slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:.25} .slick-prev:before,.slick-next:before{font-family:'slick';font-size:20px;line-height:1;opacity:.75;color:#252525;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} .slick-prev{left:-25px} [dir='rtl'] .slick-prev{right:-25px;left:auto} .slick-next{right:-25px} [dir='rtl'] .slick-next{right:auto;left:-25px} .slick-slider{margin-bottom:30px} .slick-dots{text-align:center} .slick-dots li{position:relative;display:inline-block;width:20px;height:20px;margin:0 8px;padding:0;cursor:pointer} .slick-dots li button{font-size:0;line-height:0;display:block;width:20px;height:20px;padding:5px;cursor:pointer;color:transparent;border:0;outline:none;background:transparent} .slick-dots li button:hover,.slick-dots li button:focus{outline:none} .slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1;background-color:$(theme.color)} .slick-dots li button:before{position:absolute;top:0;display:block;left:0;content:'';text-align:center;opacity:.35;height:5px;width:22px;background-color:#656464;margin-top:5px;transition:.2s;border-radius:50px} .slick-dots li.slick-active button:before{opacity:.75;background-color:$(theme.color)} @media only screen and (max-width:767px) and (min-width:480px) { #main-slider .slick-prev,.main-gallery .slick-prev,.related-stuff .slick-prev{left:0} #main-slider .slick-next,.main-gallery .slick-next,.related-stuff .slick-next{right:0} #main-slider div img{height:350px} .feat-wrapper{bottom:15px;padding:10px;width:430px} h2.feat-title{line-height:32px;font-size:23px} .thumbnail{margin:0 auto} .item.slick-slide:before{opacity:1;background:0 0} } @media only screen and (max-width:479px) { .fixedheader .grid,span.feat-cat{display:none} .header img,.thumbnail{margin:0 auto} #main-slider .slick-next{right:0} #main-slider .slick-prev{left:0} #main-slider div img{height:275px} .gal4 img{height:250px} .feat-readmore{width:135px} img.thumb-single{max-height:300px} h2.feat-title{line-height:32px;font-size:23px} .feat-wrapper{bottom:15px;padding:5px;width:94%} } .large-12.column{text-align:center} @-webkit-keyframes justified-gallery-show-caption-animation { from{opacity:0} to{opacity:.7} } @-moz-keyframes justified-gallery-show-caption-animation { from{opacity:0} to{opacity:.7} } @-o-keyframes justified-gallery-show-caption-animation { from{opacity:0} to{opacity:.7} } @keyframes justified-gallery-show-caption-animation { from{opacity:0} to{opacity:.7} } @-webkit-keyframes justified-gallery-show-entry-animation { from{opacity:0} to{opacity:1} } @-moz-keyframes justified-gallery-show-entry-animation { from{opacity:0} to{opacity:1} } @-o-keyframes justified-gallery-show-entry-animation { from{opacity:0} to{opacity:1} } @keyframes justified-gallery-show-entry-animation { from{opacity:0} to{opacity:1} } .justified-gallery{width:100%;position:relative;overflow:hidden;margin-bottom:30px} .justified-gallery&gt;a,.justified-gallery&gt;div{position:absolute;display:inline-block;overflow:hidden;opacity:0;filter:alpha(opacity=0)} .justified-gallery&gt;a&gt;a&gt;img,.justified-gallery&gt;a&gt;img,.justified-gallery&gt;div&gt;a&gt;img,.justified-gallery&gt;div&gt;img{position:absolute;top:50%;left:50%;margin:0;padding:0;border:0} .justified-gallery&gt;a&gt;.caption,.justified-gallery&gt;div&gt;.caption{display:none;position:absolute;bottom:0;padding:5px;background-color:#000;left:0;right:0;margin:0;color:#fff;font-size:12px;font-weight:300;font-family:sans-serif} .justified-gallery&gt;a&gt;.caption.caption-visible,.justified-gallery&gt;div&gt;.caption.caption-visible{display:initial;opacity:.7;filter:&quot;-webkit-animation:justified-gallery-show-caption-animation 500ms 0 ease;-moz-animation:justified-gallery-show-caption-animation 500ms 0 ease;-ms-animation:justified-gallery-show-caption-animation 500ms 0 ease} .justified-gallery&gt;.entry-visible{opacity:1;filter:alpha(opacity=100);-webkit-animation:justified-gallery-show-entry-animation 500ms 0 ease;-moz-animation:justified-gallery-show-entry-animation 500ms 0 ease;-ms-animation:justified-gallery-show-entry-animation 500ms 0 ease} .justified-gallery&gt;.spinner{position:absolute;bottom:0;margin-left:-24px;padding:10px 0;left:50%;opacity:initial;filter:initial;overflow:initial} .justified-gallery&gt;.spinner&gt;span{display:inline-block;opacity:0;filter:alpha(opacity=0);width:8px;height:8px;margin:0 4px;background-color:#000;border-radius:6px} ]]></b:skin>  
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.