java写的小米商城_开发”小米商城官网首页”(静态页面)

*{

padding:0;

margin:0;

}

.wrap{

width:100%;

overflow: hidden;/*有父子关系的margin 防止外边距合并*/background-color: rgba(245,245,245,0.98); /*设置透明度*/}

a{text-decoration: none;}

ul>li{ list-style: none;} /*儿子选择器*/.topheader{

height: 40px;

line-height:40px;/*行高*/font-size:12px;

background-color: #333;

}

.topheader a{

color:#b0b0b0;/*字体颜色*/}

.topheader a:hover{/*伪类选择器 hover鼠标悬停时超链接状态*/color: white;

}

.topheader .sep{

color: #424242;

margin:0 2px; /*外边距*/}

.container{

width: 1225px; overflow: hidden;margin:0auto;

}

.topheader-navi{float: left;

}

.topheader-cart,.topheader-info{float: right

}

.topheader-cart .icon{ /*给购物车添加背景图片*/background: url("../images/shop1.png") 3px 24px;

width: 35px;

height: 22px;

display: inline-block;/*行内块元素 同时具有行内和和块级元素,和其他元素在一行,距离都可以设置*/position: relative;

top:6px;

}

.topheader-cart a{/*display: block; !*块级元素,每个块级元素都从新的一行开始,距离都可设置*!*/margin-left: 15px;

padding:015px;

}

.topheader-cart a:hover{

background-color: white;

color: rgba(255,103,0,0.98);

}

.header{

height: 100px;

line-height: 100px;

overflow: hidden;

}

.header-logo,.header-navi{float: left;

height: 100px;

}

.header-logo .logo{

margin-right: 10px;

margin-top: 20px;}

.header-search{float: right;

position: relative;

}

.header-navi ul li{float: left;

margin:0auto;

padding:010px;

color: black

}

.header-navi ul li a{

color: #333;

font-size: 16px;

}

.header-navi ul li a:hover{

color: rgba(255,103,0,0.98);

}

.header-search input[type="text"]{

height: 44px;

width: 243px;

border: 1px solid #e0e0e0;

margin-right: -1px;

}

.header-search input[type="text"]:hover{

border: 1px solid #b0b0b0;

}

.header-search input[type="text"]:focus{ /*获取焦点时的样式*/outline:none;/*轮廓是绘制于元素周围的一条线,位于边框边缘的外围,可起到突出元素的作用*/}

.hot-words{

font-size: 12px;

position: absolute;

right: 40px;}

.hot-words a{

background-color: #eee;

color: #757575;

padding: 3px 6px;

position: relative;

top: 2px;

right: 16px;

}

.hot-words a:hover{

background-color: rgba(255,103,0,0.98);

color: white;

}

.header-search input[type="submit"]{

height: 45px; width: 45px;

background: url("../images/search1.png") no-repeat 3px 6px;

border: 1px solid #e0e0e0;

position: relative;

top: 17px;

cursor: pointer;/*设置鼠标形状, 变成小手了*/left:-5px;

}

.header-search input[type="submit"]:hover{

background: url("../images/search2.png") no-repeat 8px 8px;

background-color: rgba(255,107,0,0.98);

}

.content .con-up .up-l{

background-color: rgba(89,89,89,0.9);

width: 240px;

position: absolute;

}

.con-up ul:before,.con-up ul:after{ /*用子盒子来填充父盒子 解决浮动产生的问题*/content:"";

height: 26px;

display: block;

}

.con-up ul li{

padding: 10px 25px;

}

.con-up ul li:hover{

background-color: rgba(255,103,0,0.98);

}

.con-up ul li a{

color: white;}

.con-up ul li span{ /*设置空格*/

float: right;

color: white;}

.con-down{

overflow: hidden;

padding-top: 10px;

}

.con-down .down-l{

width: 240px;

overflow: hidden;

background-color: rgba(95,87,80,1);float: left;

}

.con-down ul{

overflow: hidden;

}

.con-down .down-l ul li{float: left;

width: 78px;

height: 83px;

border: 1px solid #665e57;

text-align: center; /*两端居中*/}

.down-l ul li p{

color: #b0b0b0;

position: relative;

font-size: 15px;

}

.down-l ul li p:hover{

color: white;

}

.down-l .p-1{

background: url("../images/手机.png") no-repeat center;

background-size: 50px; height: 60px;}

.down-l .p-2{

background: url("../images/企业团购.png") no-repeat center;

background-size: 50px; height: 60px;}

.down-l .p-3{

background: url("../images/F码通道.png") no-repeat center;

background-size: 50px; height: 60px;}

.down-l .p-4{

background: url("../images/米粉卡.png") no-repeat center;

background-size: 50px; height: 60px;}

.down-l .p-5{

background: url("../images/以旧换新.png") no-repeat center;

background-size: 50px; height: 60px;}

.down-l .p-6{

background: url("../images/话费充值.png") no-repeat center;

background-size: 50px; height: 60px;}

.con-down .down-2{float: left;}

.con-down .down-2ul li{float: left;

}

.down-2img{

width: 315px;

height: 170px;

margin-left: 13px;

}

.down-2img:hover{

box-shadow: 0 5px 1px #b0b0b0; /*box-shadow 向框添加一个或多个阴影*/}

.bar-right{

position:fixed;/*z-index: 3;*/right:0;

top: 250px;

background-color: white; }

.bar-right ul li{

font-size: 14px;

padding: 10px;

border: 1px solid #e0e0e0;

}

.bar-right ul li:hover{

color: rgba(255,103,0,0.98);

cursor: pointer;

}

.bar-right ul li p{

text-align: center;

padding-top: 5px;

}

.bar-right .fixed-1{

background: url("../images/扫一扫.png") no-repeat center;

background-size: 30px; height: 30px;

}

.bar-right .fixed-2{

background: url("../images/个人中心.png") no-repeat center;

background-size: 30px;

height: 30px;}

.bar-right .fixed-3{

background: url("../images/联系客服.png") no-repeat center;

background-size: 30px;

height:30px ;

}

.bar-right .fixed-4{

background: url("../images/购物车.png") no-repeat center;

background-size: 30px;

height:30px ;

}

.footer p{

text-align: center;

color: #b0b0b0;

font-size: 16px;}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1. 技术选型:使用 Spring MVC 框架进行开发,其中使用 MyBatis 作为 ORM 框架,使用 Redis 来缓存部分数据,使用 Solr 来进行搜索,使用 Nginx 进行反向代理与负载均衡。 2. 数据库设计:根据需求设计了商品表、用户表、订单表、购物车表等,使用 MyBatis Generator 自动生成了对应的 Java 实体类和 Mapper 接口。 3. 开发流程:采用敏捷开发的方式,使用 Git 进行版本控制,使用 Maven 进行项目管理,使用 Jenkins 进行自动化构建和部署。 4. 安全性:使用 Spring Security 进行权限控制,防止 SQL 注入和 XSS 攻击,使用 SSL/TLS 协议进行数据传输加密。 5. 性能优化:使用 Redis 缓存部分数据,使用 Solr 进行搜索,使用 Nginx 进行反向代理与负载均衡,使用 CDN 加速静态资源访问,对数据库进行索引优化等。 6. 测试与部署:使用 JUnit 进行单元测试,使用 Selenium 进行功能测试,使用 Jenkins 进行自动化构建和部署,使用 Docker 进行容器化部署。 7. 前端开发:采用 Bootstrap 框架和 jQuery 库进行前端开发,使用 AJAX 进行异步数据交互,使用 Thymeleaf 模板引擎进行页面渲染。 8. 项目总结:在开发过程中,需要不断地进行需求分析、设计、编码、测试和部署等环节,并且要关注项目的可维护性、可扩展性和可靠性,同时要不断地学习新技术和提高自己的编程能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值