antiblock
diamwall
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
morfo2

Redimensionar Vídeo

Question

Actualmente ao inserir um link do YouTube o vídeo fica automaticamente embed e não é possível redimensionar nem fisicamente pelo circulo que aparece no canto superior esquerdo nem por edição do código HTML.

<div class="ipsEmbeddedVideo" contenteditable="false">
	<div>
		<iframe allowfullscreen="true" frameborder="0" height="XXX" src="https://www.youtube.com/embed/aHjpOzsQ9YI?feature=oembed" width="YYY"></iframe>
	</div>
</div>
Venho por este meio requisitar que seja implementado essa função e que seja definido um limite máximo para que também não haja vídeos a ocupar uma página inteira. As imagens também têm o mesmo problema.

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Tanta linha... basta fazer
 

<object width="420" height="315"
data="url">
</object>

ou com iframes

 

 <iframe width="420" height="315"
src="url">
</iframe> 


Para redimensionar, basta colocar as dimensões do media object em percentagens em relação ao parent dele... E fica responsivo...

Edited by IronMan (see edit history)

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega

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
Sign in to follow this