Bootstrap Project Practical Children column information content
- 2021-02-17 06:13:52
- OfStack
In this paper, we produce 1 sub-column information content, for your reference, the specific content is as follows
Google browser parsing order adjustment, need to be fully loaded after execution
$(window).load(function() {
$('.text').eq(0).css('margin-top', ($('.auto').eq(0).height() - $('.text').eq(0).height()) / 2 + 'px');
});
Note: For Firefox browser, you can press Ctrl+Shift+M to adjust the size of the mobile terminal.
Subcolumn title
<div class="jumbotron">
<div class="container">
<hgroup>
<h1> information </h1>
<h4> The latest development, resources and so on of enterprise internal training ...</h4>
</hgroup>
</div>
</div>
Column CSS
.jumbotron {
margin: 50px 0 0 0;
padding: 60px 0;
background: #ccc url(../img/bg.jpg);
color: #ccc;
}
.jumbotron h1 {
font-size: 26px;//768,30; 992,33; 1200,36;
padding: 0 0 0 20px;
}
.jumbotron h4 {
font-size: 16px;//768,16; 992,17; 1200,18
padding: 0 0 0 20px;
}
Information content
<div id="information">
<div class="container">
<div class="row">
<div class="col-md-8 info-left">
<div class="container-fluid" style="padding:0;">
<div class="row info-content">
<div class="col-md-5 col-sm-5 col-xs-5">
<img src="img/info1.jpg"
class="img-responsive" alt="">
</div>
<div class="col-md-7 col-sm-7 col-xs-7">
<h4> Released by the State Administration of Radio, Film and Television TVOS2.0 Huawei and Alibaba are involved in research and development </h4>
<p class="hidden-xs">
TVOS2.0 Is in the TVOS1.0 With huawei MediaOS And Alibaba YunOS On the basis of fusion, create a new 1 Smart TV operating system. Huawei is responsible for most of the development, while Alibaba is responsible for the built-in TV shopping mall.
</p>
<p>
admin 15 / 10 / 11
</p>
</div>
</div>
</div>
</div>
<div class="col-md-4 info-right hidden-xs hidden-sm">
<blockquote>
<h2> Popular information </h2>
</blockquote>
<div class="container-fluid">
<div class="row">
<div class="col-md-5 col-sm-5 col-xs-5"
style="margin:12px 0;padding:0;">
<img src="img/info3.jpg"
class="img-responsive" alt="">
</div>
<div class="col-md-7 col-sm-7 col-xs-7"
style="padding-right:0">
<h4> The title </h4>
<p>
admin 15 / 10 / 11
</p>
</div>
</div>
</div>
</div>
</div>
</div>
Information content CSS
#information {
padding: 40px 0;
background: #eee;
}
.info-right {
background-color: #fff;
box-shadow: 2px 2px 3px #ccc;
}
.info-right blockquote {
padding: 0;
margin: 0;
}
.info-right h2 {
font-size: 20px;
padding: 5px;
}
.info-right h4 {
line-height: 1.6;
}
.info-content {
background-color: #fff;
box-shadow: 2px 2px 3px #ccc;
margin: 0 0 20px 0;
}
.info-content img {
margin: 12px 0;
}
.info-content h4 {
font-size: 14px;//768,16; 992,18; 1200,20;
padding: 2px 0 0 0;
}
.info-content p {
line-height: 1.6;
color: #666;
}
For.info -content h4, you need to keep 1 line in the middle and large screens.
.info-content h4 {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
If you want to learn more, you can click here to learn more, and here are three wonderful topics for you:
Bootstrap tutorial
Bootstrap actual combat course
Use the tutorial for the Bootstrap plug-in
The above is the Bootstrap production of sub-column information content to close the code, I hope you like it.