taobaostyle.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. body,
  2. button,
  3. input,
  4. select,
  5. textarea {
  6. font: 12px/1.5 tahoma, arial, 'Hiragino Sans GB', '\5b8b\4f53', sans-serif;
  7. }
  8. a{
  9. text-decoration: none;
  10. }
  11. /* 设置顶部容器样式 */
  12. .top-bar {
  13. width: 100%;
  14. height: 35px;
  15. background-color: #f5f5f5;
  16. }
  17. /* 去除超链接的默认样式 */
  18. .top-bar a {
  19. color: #6C6C6C;
  20. }
  21. /* 设置顶部内部容器样式 */
  22. .top-bar .top-bar-wrapper {
  23. width: 1190px;
  24. height: 35px;
  25. line-height: 35px;
  26. margin: 0 auto;
  27. /* background-color: #bfa; */
  28. display: flex;
  29. justify-content: space-between;
  30. }
  31. /* 设置顶部左侧区域样式 */
  32. .top-bar-left,
  33. .top-bar-right {
  34. display: flex;
  35. }
  36. .top-bar-left li,
  37. .top-bar-right li {
  38. padding: 0 6px;
  39. }
  40. /* 设置地区列表样式 */
  41. .region-item-list {
  42. display: none;
  43. width: 315px;
  44. height: 360px;
  45. overflow-y: scroll;
  46. position: absolute;
  47. box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  48. }
  49. /* 设置地区字体颜色 */
  50. .region-list {
  51. color: #3c3c3c;
  52. position: relative;
  53. }
  54. /* 地区列表鼠标移入效果 */
  55. .region-list:hover .region-item-list {
  56. display: block;
  57. }
  58. .region-list:hover {
  59. background-color: #fff;
  60. }
  61. .region-list .region-item-list .region-detail:hover {
  62. background-color: #f4f4f4;
  63. }
  64. .region-detail {
  65. /* width: 249px; */
  66. height: 29px;
  67. line-height: 29px;
  68. padding-left: 8px;
  69. }
  70. /* 设置高亮显示 */
  71. .icon_hightlight,
  72. .font_hightlight {
  73. color: #f22e00;
  74. }
  75. /* 设置移入效果 */
  76. .mytaobao-detail,
  77. .collect-detail,
  78. .seller-list,
  79. .service-list {
  80. display: none;
  81. position: absolute;
  82. box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  83. }
  84. .mytaobao:hover .mytaobao-detail,
  85. .collect:hover .collect-detail,
  86. .seller:hover .seller-list,
  87. .service:hover .service-list {
  88. display: block;
  89. }
  90. .mytaobao:hover,
  91. .collect:hover,
  92. .seller:hover,
  93. .service:hover {
  94. background-color: #fff;
  95. }
  96. /* 设置头部区域 */
  97. .head-bar {
  98. width: 100%;
  99. height: 97px;
  100. padding-top: 24px;
  101. /* background-color: #bfa; */
  102. }
  103. .head-bar-wrapper {
  104. width: 1190px;
  105. height: 88px;
  106. margin: 0 auto;
  107. /* background-color: yellow; */
  108. position: relative;
  109. }
  110. /* 设置左侧logo */
  111. .logo {
  112. width: 190px;
  113. height: 80px;
  114. float: left;
  115. margin-top: 8px;
  116. /* background-color: gray; */
  117. }
  118. h1 {
  119. font-size: 100%;
  120. }
  121. .logo .logo-bd {
  122. display: block;
  123. margin-left: 22px;
  124. padding-top: 58px;
  125. width: 142px;
  126. line-height: 88px;
  127. /* overflow: hidden; */
  128. text-indent: -9999px;
  129. background: url('../img/taobao_logo.png') 0 0 no-repeat;
  130. }
  131. /* 设置搜索框样式 */
  132. .search {
  133. float: left;
  134. width: 738px;
  135. height: 38px;
  136. line-height: 38px;
  137. left: 42px;
  138. margin-top: 12px;
  139. border-radius: 19px;
  140. background-clip: padding-box;
  141. position: relative;
  142. border: 2px solid #ff5000;
  143. font-size: 14px;
  144. display: flex;
  145. }
  146. .search-suggest-tabs {
  147. height: 38px;
  148. line-height: 38px;
  149. text-align: center;
  150. position: relative;
  151. width: 65px;
  152. background-color: #fff;
  153. border-top-left-radius: 17px;
  154. border-bottom-left-radius: 17px;
  155. z-index: 9999;
  156. }
  157. .search .search-suggest-tabs-tab{
  158. display: none;
  159. height: 38px;
  160. color: #333;
  161. line-height: 38px;
  162. text-align: center;
  163. }
  164. .search .search-suggest-tabs-tab a{
  165. color: #333;
  166. }
  167. /* 设置搜索框左侧鼠标移入效果 */
  168. .search-suggest-tabs:hover .search-suggest-tabs-tab{
  169. display: block;
  170. background-color: #fff;
  171. }
  172. .search-suggest-tabs:hover{
  173. border-bottom-left-radius: 0;
  174. }
  175. .search-suggest-tabs-tab a:hover {
  176. color: #f40;
  177. }
  178. /* 设置分割线 */
  179. .search .search-split{
  180. font-size: 24px;
  181. position: absolute;
  182. height: 38px;
  183. line-height: 38px;
  184. left: 61px;
  185. width: 1px;
  186. color: #f3f0f0;
  187. top: -2px;
  188. }
  189. /* 设置搜索按钮 */
  190. .search .search-btn{
  191. position: absolute;
  192. width: 72px;
  193. height: 34px;
  194. background: #ff5000;
  195. color: #fff;
  196. font-size: 18px;
  197. font-weight: 700;
  198. border: none;
  199. border-radius: 17px;
  200. float: right;
  201. top: 2px;
  202. right: 2px;
  203. }
  204. /* 设置搜索框 */
  205. .search .search-inp{
  206. position: absolute;
  207. width: 598px;
  208. height: 38px;
  209. /* top: 8px; */
  210. left: 67px;
  211. padding: 0 10px;
  212. font-size: 14px;
  213. border: none;
  214. box-sizing: border-box;
  215. }
  216. /* 设置下载淘宝二维码 */
  217. .down-tb img{
  218. width: 62px;
  219. }
  220. .down-tb span{
  221. display: block;
  222. }
  223. .down-tb{
  224. /* display: block; */
  225. position: absolute;
  226. border: 1px solid #eee;
  227. right: 74px;
  228. top: -10px;
  229. }
  230. /* 搜索框下部区域 */
  231. .search-list{
  232. position: absolute;
  233. width: 633px;
  234. /* background-color: gray; */
  235. top: 40px;
  236. left: 10px;
  237. }
  238. .search-list-detail{
  239. display: flex;
  240. width: 592px;
  241. height: 28px;
  242. line-height: 28px;
  243. /* background-color: #bfa; */
  244. }
  245. .search-list-detail a{
  246. white-space: nowrap;
  247. margin-right: 8px;
  248. color: #666;
  249. }
  250. .search-list-detail a:hover{
  251. color: #f40;
  252. }
  253. /* 中部轮播区域 */
  254. .middle{
  255. width: 1190px;
  256. height: 423px;
  257. margin: 0 auto;
  258. position: relative;
  259. /* background-color: #bfa; */
  260. }
  261. /* 设置中部左侧导航栏 */
  262. .middle-left-wrapper{
  263. position: absolute;
  264. width: 270px;
  265. height: 368px;
  266. margin-top: 24px;
  267. margin-left: 24px;
  268. font-size: 14px;
  269. border-radius: 12px;
  270. background-color:#f7f9fa;
  271. }
  272. .middle-left-wrapper h2{
  273. padding: 16px 0 0 20px;
  274. font-size: 18px;
  275. line-height: 24px;
  276. color: #111;
  277. font-weight: bold;
  278. }
  279. .middle-left-list{
  280. padding: 16px 0 8px 20px;
  281. font-size: 14px;
  282. }
  283. .middle-left-list li{
  284. overflow: hidden;
  285. height: 20px;
  286. line-height: 20px;
  287. font-size: 14px;
  288. margin-bottom: 18px;
  289. width: 212px;
  290. color: #666;
  291. }
  292. .middle-left-list a{
  293. color: #666;
  294. }
  295. .middle-left-list li:hover a{
  296. color: #f40;
  297. }
  298. .middle-left-list li:hover{
  299. color: #f40;
  300. }
  301. .middle-left-list a:hover{
  302. text-decoration: underline #f40;
  303. }
  304. .middle-left-list span{
  305. width: 7px;
  306. height: 20px;
  307. overflow: hidden;
  308. padding: 0 8px;
  309. }
  310. .middle-left-list .iconfont{
  311. margin-right: 12px;
  312. font-weight: bold;
  313. }
  314. /* 设置中间轮播图及右侧登录区域 */
  315. .middle-right-wrapper{
  316. width: 882px;
  317. height: 423px;
  318. float: right;
  319. /* background-color: yellow; */
  320. }
  321. /* 设置轮播图上方导航栏 */
  322. .middle-right-wrapper-shang{
  323. width: 856px;
  324. height: 42px;
  325. border-radius: 12px;
  326. margin: 24px 26px 0 0;
  327. display: flex;
  328. position: relative;
  329. background-color: #f7f9fa;
  330. justify-content: center;
  331. align-items: center;
  332. font-size: 16px;
  333. line-height: 16px;
  334. }
  335. .middle-right-wrapper-shang .shang1,
  336. .middle-right-wrapper-shang .shang2{
  337. display: flex;
  338. }
  339. .middle-right-wrapper-shang .shang1 a,
  340. .middle-right-wrapper-shang .shang2 a{
  341. float: left;
  342. padding: 0 20px;
  343. }
  344. .middle-right-wrapper-shang .shang1 li.pipe,
  345. .middle-right-wrapper-shang .shang2 li.pipe{
  346. color: #e0e0e0;
  347. }
  348. .middle-right-wrapper-shang li a{
  349. color: inherit;
  350. }
  351. .middle-right-wrapper-shang .shang1 a{
  352. font-weight: bold;
  353. }
  354. .middle-right-wrapper-shang li a:hover{
  355. color: #fe5000;
  356. }
  357. /* 设置轮播图区域 */
  358. .middle-right-xia{
  359. display: flex;
  360. }
  361. .middle-right-img{
  362. width: 564px;
  363. height: 315px;
  364. border-radius: 12px;
  365. margin-top: 12px;
  366. margin-right: 3px;
  367. background-color: #fff;
  368. position: relative;
  369. }
  370. /* 轮播图 */
  371. .middle-right-img .imgList li{
  372. position: absolute;
  373. }
  374. .middle-right-img .imgList img{
  375. border-radius: 12px;
  376. width: 100%;
  377. vertical-align: none;
  378. }
  379. /* 设置小圆点 */
  380. .pointer{
  381. position: absolute;
  382. border-radius: 10px;
  383. bottom: 16px;
  384. height: 13px;
  385. /* width: 100px; */
  386. text-align: center;
  387. left: 50%;
  388. background-color: rgba(255,255,255,.3);
  389. }
  390. .pointer a{
  391. display: block;
  392. float: left;
  393. width: 8px;
  394. height: 8px;
  395. border-radius: 50%;
  396. margin: 3px;
  397. background-color: #fff;
  398. }
  399. .pointer a::selection,
  400. .pointer a.active{
  401. background-color: #ff5000;
  402. }
  403. /* 设置登录区域 */
  404. .middle-right-login{
  405. width: 316px;
  406. height: 357px;
  407. padding-right: 0;
  408. margin-right: 0;
  409. background-color: #fff;
  410. /* position: relative; */
  411. }
  412. .middle-right-login .avatar{
  413. width: 100%;
  414. height: 165px;
  415. padding-top: 20px;
  416. /* background-color: yellow; */
  417. /* position: absolute; */
  418. display: flex;
  419. flex-direction: column;
  420. justify-content: space-evenly;
  421. align-items: center;
  422. }
  423. .avatar img{
  424. width: 60px;
  425. height: 60px;
  426. border-radius: 50%;
  427. }
  428. .avatar .nick-info{
  429. font-size: 16px;
  430. }
  431. /* 设置三个按钮区域 */
  432. .login-list{
  433. display: flex;
  434. width: 100%;
  435. height: 42px;
  436. /* background-color: yellow; */
  437. font-size: 16px;
  438. font-weight: bold;
  439. }
  440. .login-list a{
  441. display: block;
  442. width: 80px;
  443. height: 42px;
  444. line-height: 42px;
  445. /* border: 1px solid red; */
  446. border-radius: 21px;
  447. text-align: center;
  448. }
  449. .login-list .btn-login{
  450. margin: 0 10px 0 30px ;
  451. background-color: #ff5d00;
  452. color: #fff;
  453. }
  454. .login-list .btn-register{
  455. margin: 0 10px 0 0;
  456. background-color: #ff7600;
  457. color: #fff;
  458. }
  459. .login-list .btn-open{
  460. outline: 1px solid #ff915e;
  461. color: #ff5000;
  462. }
  463. /* 设置登录下方区域 */
  464. .mytao{
  465. width: 286px;
  466. height: 82px;
  467. /* background-color: yellow; */
  468. margin: 24px 0 0 30px;
  469. }
  470. .mytao .mytao-down{
  471. display: flex;
  472. flex-wrap: wrap;
  473. }
  474. .mytao a{
  475. display: block;
  476. height: 41px;
  477. color: #3c3c3c;
  478. font-size: 14px;
  479. text-align: center;
  480. margin-right: 22px;
  481. }
  482. .mytao .mytao-down i{
  483. display: block;
  484. font-size: 24px;
  485. line-height: 20px;
  486. }
  487. /* 设置推荐区域样式 */
  488. .recommend{
  489. width: 1190px;
  490. position: relative;
  491. /* height: 1000px; */
  492. margin: 0 auto;
  493. /* background-color: yellow; */
  494. }
  495. .recommend-wrapper{
  496. width: 1190px;
  497. height: 800px;
  498. padding: 0 19px;
  499. box-sizing: border-box;
  500. }
  501. /* 设置标题 */
  502. .recommend-header{
  503. height: 24px;
  504. margin-bottom: 20px;
  505. margin-left: 6px;
  506. /* background-color: gray; */
  507. }
  508. .recommend-header .rw-title{
  509. font-size: 24px;
  510. line-height: 24px;
  511. font-weight: bold;
  512. color: #111;
  513. }
  514. .recommend-header .rw-logo{
  515. height: 20px;
  516. margin: 4px 0 0 6p;
  517. }
  518. /* 设置推荐列表区域 */
  519. .recommend-wrapper .recommend-bd{
  520. /* position: relative; */
  521. display: flex;
  522. flex-wrap: wrap;
  523. width: 1170px;
  524. margin-left: -18px;
  525. }
  526. .recommend-wrapper .recommend-bd .rbd-list{
  527. float: left;
  528. width: 370px;
  529. height: 172px;
  530. margin: 0 0 18px 18px;
  531. background-color: #f7f9fa;
  532. border: 1px solid #f7f9fa;
  533. border-radius: 12px;
  534. }
  535. .recommend-bd .rbd-list .item-link{
  536. display: inline-block;
  537. width: 348px;
  538. height: 150px;
  539. margin: 11px;
  540. /* background-color: #bfa; */
  541. /* display: flex; */
  542. }
  543. /* 设置图片 */
  544. .item-link .img-wrapper{
  545. position: absolute;
  546. width: 150px;
  547. height: 150px;
  548. border-radius: 10px;
  549. }
  550. .item-link .img-wrapper img{
  551. width: 100%;
  552. border-radius: 10px;
  553. }
  554. /* 设置文字 */
  555. .item-link .describe{
  556. display: inline-block;
  557. width: 186px;
  558. height: 116px;
  559. margin-left: 162px;
  560. overflow: hidden;
  561. /* background-color: gray; */
  562. }
  563. .item-link .describe .d-title{
  564. display: inline-block;
  565. max-height: 46px;
  566. font-size: 15px;
  567. margin: 6px 0 2px 0;
  568. overflow: hidden;
  569. line-height: 23px;
  570. color: #333;
  571. }
  572. .item-link .describe .d-title img{
  573. height: 16px;
  574. margin-top: 3px;
  575. margin-right: 6px;
  576. vertical-align: top;
  577. }
  578. .item-link .describe .tag-list{
  579. height: 22px;
  580. overflow: hidden;
  581. }
  582. .item-link .describe .tag-list .tag-item{
  583. display: inline-block;
  584. height: 20px;
  585. padding: 0 4px;
  586. font-size: 12px;
  587. line-height: 18px;
  588. vertical-align: top;
  589. border: 1px solid #ff5000;
  590. border-radius: 3px;
  591. }
  592. /* 设置价格 */
  593. .item-link .price{
  594. display: inline-block;
  595. margin-left: 162px;
  596. font-size: 22px;
  597. color: #ff5000;
  598. }
  599. .item-link .price em{
  600. font-size: 14px;
  601. font-family: "Microsoft Yahei";
  602. }
  603. /* 设置右侧固定工具栏 */
  604. .toolbar{
  605. position: fixed;
  606. right: 0;
  607. bottom: 50%;
  608. width: 60px;
  609. height: 348px;
  610. background-color: #f7f9fa;
  611. border-radius: 18px 0 0 18px;
  612. transform: translateY(50%);
  613. overflow: hidden;
  614. }
  615. .toolbar-list{
  616. width: 60px;
  617. height: 296px;
  618. padding: 26px 0;
  619. display: flex;
  620. flex-direction: column;
  621. /* background-color: yellow; */
  622. }
  623. .toolbar-list .message{
  624. width: 60px;
  625. height: 47px;
  626. margin-top: -10px;
  627. }
  628. .toolbar-list a{
  629. display: flex;
  630. flex-direction: column;
  631. justify-content: center;
  632. text-align: center;
  633. color: #333;
  634. }
  635. .toolbar-list i{
  636. font-size: 22px;
  637. }
  638. .toolbar-list .toolbar-item{
  639. height: 47px;
  640. margin-top: 36px;
  641. }
  642. .toolbar-list .toolbar-back{
  643. height: 47px;
  644. padding: 30px 0 26px 0;
  645. }
  646. @media(min-height:700px){
  647. .toolbar{
  648. position: fixed;
  649. right: 0;
  650. bottom: 50%;
  651. width: 60px;
  652. height: 421px;
  653. background-color: #f7f9fa;
  654. border-radius: 18px 0 0 18px;
  655. transform: translateY(50%);
  656. /* overflow: hidden; */
  657. }
  658. }