现在很多手机网站打开都会把网站的LOGO顶部导航什么或者底部的固定到网页顶部或者底部不动,有点像APP的样子,那样能更方便浏览者操作,这个其实很简单就能实现,它主要是用到position属性的fixed值。
大家在学习CSS的时候接触到position属性值:
值 | 描述 |
---|---|
现在很多手机网站打开都会把网站的LOGO顶部导航什么或者底部的固定到网页顶部或者底部不动,有点像APP的样子,那样能更方便浏览者操作,这个其实很简单就能实现,它主要是用到position属性的fixed值。
大家在学习CSS的时候接触到position属性值:
值 | 描述 |
---|---|