1.从最小宽度时候开发,调试到iphone4来开发

2.宽度百分比,高度由具体内容决定,

3.文字需要设置最大高度,溢出隐藏

white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
max-width: 54px;

4.运用less开发,定义全局字体大小,颜色(标题,内容),盒子,响应式宽度

5.图片内部空白,由外层div盒子实现

----待续

6.元素居中

行内 text-align:center;

块级 1.(父元素)position:relative;(子元素)position:absolute;left:50%;margin-left:-(宽度一半);2.width+margin:0 auto;

 

相关文章:

  • 2021-06-30
  • 2021-07-28
  • 2022-02-23
  • 2021-07-15
  • 2021-11-15
  • 2021-09-23
  • 2021-05-29
  • 2021-06-24
猜你喜欢
  • 2021-12-29
  • 2021-10-05
  • 2021-06-15
  • 2021-12-17
  • 2021-09-27
  • 2022-12-23
  • 2021-04-24
相关资源
相似解决方案