SiteServer/sscms 首页产品版块排版及代码(二)

在这里插入图片描述

    <!-- products -->
<section class="products">
   <div class="productTitle" data-aos="fade-down">
            <h3>产品展示</h3>
            <p><span>匠心制造品质,信誉的象征!</span></p>
   </div>
   <div class="productWrap wrap">
        <div class="proMenu" data-aos="fade-right">
          <h4>产品中心</h4>
          <ul>
             <stl:channels channelIndex="产品展示">
             <li><stl:a>{Channel.Title}</stl:a></li>
             </stl:channels>
          </ul>
        </div>
        <div id="productsBox" class="swiper-container">
            <ul class="swiper-wrapper">
                <stl:contents channelIndex="产品展示" totalNum="6" scope="all" order="AddDate">
                    <li class="swiper-slide tempImage_{content.itemIndex-1}" data-aos="fade-down" data-aos-delay="{content.itemIndex}00">
                        <div class="wrap">
                            <div class="pic">
                                <img src="{content.ImageUrl}" alt="{content.Title}">
                            </div>
                            <div class="proText">
                                <stl:a>{content.Title}</stl:a>
                            </div>
                        </div>
                    </li>
                </stl:contents>
            </ul>
        </div>
        </div>
    </section>
    <!-- /products -->
<script>
var mySwiperproductsBox = new Swiper('#productsBox', {
	slidesPerView: 3,
                spaceBetween: 20,
                slidesPerColumn: 2,
                slidesPerColumnFill : 'row',
                breakpoints: { 
                    320: {  //当屏幕宽度大于等于320
                    slidesPerView: 1,
                    spaceBetween: 0
                    },
                    768: {  //当屏幕宽度大于等于768 
                    slidesPerView: 1,
                    spaceBetween: 0
                    },
                    1280: {  //当屏幕宽度大于等于1280
                    slidesPerView: 3,
                    slidesPerColumn: 2,
                    spaceBetween: 10,
                    }
	}
});
</script>
/* 首页产品展示版块 */

.products{
    background:url(../upload/probg.jpg) no-repeat center top,#ffffff;
    padding:0px 0px 60px;
}
.products .productTitle{
    text-align: center;
    padding-bottom: 60px;
}
.products .productTitle h3{
    color: #f8bd01;
    font-size: 40px;
    padding-top:74px;
}
.products .productTitle p span{
    position: relative;
    color: #fff;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    font-size: 20px;
    padding: 0 20px;
}
.products .productTitle span:before,.products .productTitle span:after {
    position: absolute;
    top: 50%;
    content: '';
    width: 40px;
    height: 2px;
    background-color: #f8bd01;
    margin-top: -1px;
}
.products .productTitle span:before {
    right: 100%;
}
.products .productTitle span:after {
    left: 100%;
}
.productWrap .proMenu{
    width:22%;
}
.productWrap .proMenu h4 {
    margin: 0;
    line-height: 80px;
    text-align: center;
    font-size: 24px;
    background-color: #f8bd01;
}
.productWrap .proMenu ul li{
    background: #efefef;
    position: relative;
    border-bottom: 1px solid #fff;
    line-height: 65px;
}
.productWrap .proMenu ul li a{
    display: block;
    background: url(../upload/cp_ico01.png) no-repeat 25px center;
    padding-left: 55px;
}
#productsBox{
    width:70%;
}
#productsBox li {
    height:auto;
}
#productsBox li .wrap{
    width:100%;
}
#productsBox li .proText{
    width:100%;
}
#productsBox li .proText h3{
    font-size: 28px;
    color:#fff;
    padding-top: 60px;
    font-weight: normal;
}
#productsBox li .proText p{
    font-size: 14px;
    padding:40px 0px 40px;
    color:#666;
    line-height: 1.75;
}
#productsBox li .proText a{
    font-size: 16px;
    background-color: #e0e0e0;
    color:#333;
    width:100%;
    height: 46px;
    line-height: 46px;
    padding:10px 0px;
    display: inline-block;
    text-align: center;
    /* border:1px solid #e0e0e0; */
    position:relative;
    z-index: 1;
    overflow:hidden;
}
#productsBox li .proText a:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:135%;
    height:100%;
    background:#f8bd01;
    z-index: -99;
    transform-origin:0 0;
    -ms-transfomr-origin:0 0;
    -webkit-transfomr-origin:0 0;
    transform:translateX(-100%) skewX(-45deg);
    -ms-transform:translateX(-100%) skewX(-45deg);
    -webkit-transform:translateX(-100%) skewX(-45deg);
    transition: transform .2s;
}
#productsBox li .proText a:hover:before{
    transform:translateX(0) skewX(-45deg);
}
#productsBox li .proText a:hover{
    color:#333;
}
#productsBox li .pic{
    width:100%;
    height:210px;
    background: #fff;
    padding:10px;
    box-sizing: border-box;
    line-height: 0 !important;
    overflow: hidden;
}
/* /首页产品版块结束 */



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
SsCMS简易企业网站管理系统完全开源版,后台默认用户名、密码、认证码均为admin SsCMS简易企业网站管理系统 1.3 更新内容: 1.大幅度简化后台管理菜单。 2.增加网站模板管理修改功能。 3.添加一套蓝色简洁企业模板,大家可根据需要修改使用。 4.新增SEO模块,具体功能页面尚不完善,正在编写中。 5.本版本暂时保留生成静态功能,新版本中将以伪静态功能替换。 6.网站管理员默认用户名密码不变,后台目录改为adminnew。 备注:该版本兼容1.2版本模板,但去除了下载模块和其他信息模块,其他信息板块将在新版本中以其他形式出现。      另外,由于为了兼容旧版本系统,1.3版本的代码比较繁琐,新版本中将大幅度简化代码,希望大家谅解。。 主要功能: 1.采用UTF-8编码。 2.程序采用ASP Access制作。 3.同时支持asp动态浏览和html静态页生成。 4.采用模板技术,模板完全分离,可以自己编写html模板。 5.后台集成ckeditor ckfinder编辑器。 6.管理员可定义管理权限。 7.新闻和产品支持无限级分类。 程序安装的必要条件: 服务器配置: 推荐配置:Windows 2000/2003+IIS 5.0/6.0或者更高版本 本系统需要服务器支持FSO(FileSystemObject),如果你的空间不支持FSO,请联系你的空间商。 安装说明: 1、请将官方程序包解压后上传至您的虚拟主机即可正常使用; 2、后台管理面板登录:http://域名/admin/,系统默认设置为Web根目录,如需子目录使用,请 手工修改“Inc/Consts.inc”文件中: Const SysRootDir = "/" 为 Const SysRootDir = "/qtwebs/" 其中 qtwebs 为子目录名称。 全新安装:将压缩包内的所有文件上传到空间,运行网站地址便可以自动安装! SsCMS网站管理系统前台模版分离 打破以前非分离模版 例子: 所有模版文件都在template文件夹下 如头部文件:  即为: $Header$  左侧文件: $Left$  等都以标签形式输出

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值