我想要完成的是使我的對象與我的瀏覽器窗口進行比例縮放。當我增加瀏覽器時,對象只是直接向上移動,而不是停留在相同的位置並使用瀏覽器進行縮放。我有這個對象的視頻很好,這是我遇到問題的最頂層的對象。如果任何人有任何建議,真的會有所幫助。謝謝!在響應式設計中縮放對象
這是一個JsFiddle,但我不知道它會有多大的幫助。
https://jsfiddle.net/tad1jcxt/
HTML:
<figure class="stayssame">
<video controls loop poster="placeholder.png" autoplay>
<source src="video.mp4" type="video/mp4">
<!-- <source src="movie.ogg" type="video/ogg">-->
Your browser does not support the video tag.
</video>
<h1 id="headline">Intermediate Web Design:
<br>
Fun, Insightful, Experience
</h1>
<object type="image/svg+xml" data="comweb2.svg" ></object>
</figure>
CSS:
object{
top:8.5%;
left:32%;
height: 100px;
width:200px;
}
#headline{
text-align: center;
position: absolute;
top:10%;
left:35%;
color:#00E3FF;
line-height:20px;
font-family: 'Orbitron', sans-serif;
word-spacing: 1px;
font-size:12px;
}
請創建一個代碼段,而不是僅發佈代碼。 – connexo
@connexo我添加了一個JsFiddle是你想要的嗎? – Cakers
請讓自己熟悉SO文本編輯器授予的選項。 – connexo