html 响应全宽横幅|标签HTML
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 响应全宽横幅|标签HTML相关的知识,希望对你有一定的参考价值。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Testing Page</title>
<!-- Normalize.css -->
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/6.0.0/normalize.css">
<!--
// Optional Bootstrap
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> -
-->
<!-- Your Css -->
<style>
body{
margin:0;
font-family: sans-serif;
}
/* Banner Css */
.inner-banner-box{
overflow:hidden;
}
.inner-banner-box img{
width:100%;
}
@media screen and (max-width: 1030px){
.inner-banner-box img {
width: 120%;
margin: 0 -10%;
}
}
@media screen and (max-width: 767px){
.inner-banner-box img {
width: 180%;
margin: 0 -40%;
}
}
</style>
</head>
<body>
<h1>Responsive Full Width Banner</h1>
<div class="inner-banner-box">
<!-- The image should be a very wide banner -->
<img src="http://www.ebc-designs.com/wp-content/uploads/2015/04/custom_banner_design.jpg" alt="Banner Image">
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<!--
// Optional Bootstrap
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
-->
<script>
$(document).ready(function(){
})
</script>
</body>
</html>
以上是关于html 响应全宽横幅|标签HTML的主要内容,如果未能解决你的问题,请参考以下文章
转换为 html 的 Swf 横幅没有响应
iOS:Admob 智能横幅不占用全宽
html 完全响应的横幅,横幅内有可点击的元素
html正文在tailwindcss中没有得到全宽
全宽 div 由小描述文本 css 响应
列是 IE 8 中的全宽 - Css bootstrap