相思资源网 Design By www.200059.com
本文我们制作一下子栏目资讯内容,供大家参考,具体内容如下
谷歌浏览器解析的顺序调整,需要全部加载后执行
$(window).load(function() {
$('.text').eq(0).css('margin-top', ($('.auto').eq(0).height() - $('.text').eq(0).height()) / 2 + 'px');
});
注:对于 Firefox 浏览器,可以按 Ctrl+Shift+M,调整移动端尺寸。
子栏目标题
<div class="jumbotron"> <div class="container"> <hgroup> <h1>资讯</h1> <h4>企业内训的最新动态、资源等...</h4> </hgroup> </div> </div>
栏目 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;
}
资讯内容
<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="/UploadFiles/2021-04-02/info1.jpg">
资讯内容 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;
}
对于.info-content h4,在中屏和大屏需要保持一行。
.info-content h4 {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
如果大家还想深入学习,可以点击这里进行学习,再为大家附3个精彩的专题:
Bootstrap学习教程
Bootstrap实战教程
Bootstrap插件使用教程
以上就是Bootstrap制作子栏目资讯内容的想关代码,希望大家喜欢。
相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com
暂无Bootstrap项目实战之子栏目资讯内容的评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。