flex.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* ljj-flex通用类名 */
  2. .flex{
  3. display:-webkit-box;
  4. display:-webkit-flex;
  5. display:flex;
  6. }
  7. .flex_coloumn{
  8. display:-webkit-box;
  9. display:-webkit-flex;
  10. display:flex;
  11. flex-direction: column
  12. }
  13. .f_xy_c{
  14. -webkit-justify-content: center;
  15. justify-content: center;
  16. -webkit-align-items: center;
  17. align-items: center;
  18. }
  19. .f_y_c{
  20. -webkit-align-items: center;
  21. align-items: center;
  22. }
  23. .f_x_c{
  24. -webkit-justify-content: center;
  25. justify-content: center;
  26. }
  27. .f_x_e{
  28. -webkit-justify-content: flex-end;
  29. justify-content: flex-end;
  30. }
  31. .f_g_1{
  32. -webkit-flex-grow:1;
  33. flex-grow:1;
  34. }
  35. .f_s_0{
  36. -webkit-flex-shrink:0;
  37. flex-shrink:0;
  38. }
  39. .f_x_s{
  40. -webkit-justify-content: space-between;
  41. justify-content: space-between;
  42. }
  43. .f_wrap{
  44. -webkit-flex-wrap: wrap;
  45. flex-wrap: wrap;
  46. }
  47. .ellipsis{
  48. white-space:nowrap;/*强制文本在一行内显示*/
  49. text-overflow:ellipsis; /*溢出省略号,支持ie、safari(webkit)*/
  50. -o-text-overflow:ellipsis; /*溢出省略号,支持opera*/
  51. overflow:hidden;/*溢出隐藏*/
  52. }
  53. /* 文本两端对齐 */
  54. .text_s{
  55. text-align:justify;
  56. text-justify:distribute-all-lines;/*ie6-8*/
  57. text-align-last:justify;/* ie9*/
  58. -moz-text-align-last:justify;/*ff*/
  59. -webkit-text-align-last:justify;/*chrome 20+*/
  60. }
  61. @media screen and (-webkit-min-device-pixel-ratio:0){/* chrome*/
  62. .text_s:after{
  63. content:".";
  64. display: inline-block;
  65. width:100%;
  66. overflow:hidden;
  67. height:0;
  68. }
  69. }
  70. [v-cloak] {
  71. display: none;
  72. }