123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- body {
- width: 100%;
- min-width: 320px;
- max-width: 640px;
- margin: 0 auto;
- font-family: -apple-system, Helvetica, sans-serif;
- font-size: 14px;
- color: #666;
- line-height: 1.5;
- }
- ul{
- list-style: none;
- margin: 0;
- padding: 0;
- }
- a {
- color: #666;
- text-decoration: none;
- }
- img {
- vertical-align: middle;
- }
- /*点击高亮我们需要清除清除 设置为transparent 完成透明*/
- * {
- -webkit-tap-highlight-color: transparent;
- }
- /*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/
- input {
- -webkit-appearance: none;
- }
- /*禁用长按页面时的弹出菜单*/
- img,
- a {
- -webkit-touch-callout: none;
- }
- .app {
- height: 45px;
- }
- .app ul li {
- float: left;
- height: 45px;
- line-height: 45px;
- background-color: #333;
- text-align: center;
- color: white;
- }
- .app ul li:nth-child(1) {
- width: 8%;
- }
- .app ul li:nth-child(1) img {
- width: 10px;
- }
- .app ul li:nth-child(2) {
- width: 10%;
- }
- .app ul li:nth-child(2) img {
- width: 30px;
- vertical-align: middle;
- }
- .app ul li:nth-child(3) {
- width: 57%;
- }
- .app ul li:nth-child(4) {
- width: 25%;
- background-color: #f66515;
- }
- .search-wrap {
- position: fixed;
- height: 44px;
- min-width: 320px;
- max-width: 640px;
- width: 100%;
- overflow: hidden;
- }
- .search-btn {
- position: absolute;
- left: 0;
- top: 0;
- width: 40px;
- height: 44px;
- }
- .search-btn::before{
- content: "";
- display: block;
- width: 20px;
- height: 18px;
- background: url(../images/s-btn.png) no-repeat;
- background-size: 20px 18px;
- margin: 14px 0 0 15px;
- }
- .search-login {
- position: absolute;
- right: 0;
- top: 0;
- width: 40px;
- height: 44px;
- line-height: 44px;
- text-align: center;
- color: white;
- }
- .search {
- position: relative;
- height: 30px;
- margin: 0 50px;
- background-color: #fff;
- border-radius: 15px;
- margin-top: 7px;
- }
- .jd-icon {
- width: 20px;
- height: 15px;
- position: absolute;
- top: 8px;
- left: 13px;
- background: url(../images/jd.png) no-repeat;
- background-size: 20px 15px;
- }
- .jd-icon::after {
- content: '';
- display: block;
- width: 1px;
- height: 15px;
- position: absolute;
- background-color: #ccc;
- top: 0;
- right: -8px;
- }
- .sou {
- position: absolute;
- top: 8px;
- left: 50px;
- width: 18px;
- height: 15px;
- background: url(../images/jd-sprites.png) no-repeat -81px 0;
- background-size: 200px auto;
- }
- .slider img {
- width: 100%;
- }
- .swiper-container {
- width: 100%;
- height: 100%;
- }
- .swiper-slide {
- text-align: center;
- font-size: 18px;
- background: #fff;
- /* Center slide text vertically */
- display: -webkit-box;
- display: -ms-flexbox;
- display: -webkit-flex;
- display: flex;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
- -webkit-box-align: center;
- -ms-flex-align: center;
- -webkit-align-items: center;
- align-items: center;
- }
- .brand div{
- float: left;
- width: 33.33%;
- }
- .brand div img {
- width: 100%;
- }
- .barnd {
- border-radius: 2px 2px 0 0;
- }
- /* nav */
- nav {
- padding-top: 5px;
- }
- nav a {
- float: left;
- width: 20%;
- text-align: center;
- }
- nav a img {
- width: 40px;
- margin: 10px 0;
- }
- nav a span {
- display: block;
- }
- /* news */
- .news {
- margin-top: 20px;
- }
- .news a {
- float: left;
- /* CSS3 盒子模型,盒子的宽度包含border和padding */
- box-sizing: border-box;
- }
- .news a:nth-child(1) {
- width: 50%;
- }
- .news a:nth-child(n+2) {
- width: 25%;
- border-left: 1px solid #ccc;
- }
- .news img {
- width: 100%;
- }
|