主要布局的css设计:

如图:

 经典css博客布局:

#globallink{
    width
:760px; height:163px;    /* 设置块的尺寸,高度大于banner图片 */
    margin
:0px; padding:0px;
    
/* 再设置背景颜色,作为导航菜单的背景色 */
    background
: #9ac7ff url(banner.jpg) no-repeat top;
    font-size
:12px;
}


#parameter
{
    position
:relative;
    float
:left;
    width
:210px;
    padding
:0px;
    margin
:0px;
}

#main
{
    float
:left;
    position
:relative;
    font-size
:12px;
    margin
:0px 20px 5px 20px;
    width
:510px;
}


#footer
{
    clear
:both;            /* 消除float的影响,排版相关的章节已经大量涉及 */
    text-align
:center;
    background-color
:#daeeff;
    margin
:0px; padding:0px;
    color
:#004a87;
}

相关文章:

  • 2021-07-21
  • 2021-09-30
  • 2022-01-21
  • 2021-05-27
  • 2021-06-25
  • 2021-05-20
  • 2021-04-25
  • 2021-11-28
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-02-28
  • 2021-11-18
相关资源
相似解决方案