【问题标题】:How can i replace green box into in yellow box and yellow box into in green box ? So is there any css property ? help out如何将绿色框替换为黄色框,将黄色框替换为绿色框?那么有没有css属性?帮忙
【发布时间】:2017-11-27 10:40:38
【问题描述】:

https://www.sololearn.com/Discuss/884349/?ref=app

这是sololearn Playground中的代码。

【问题讨论】:

  • edit您的问题直接在问题正文中显示相关代码,不要仅仅依赖外部资源的链接。

标签: javascript html css alignment box


【解决方案1】:

在您的 css 中替换左右部分的颜色属性。

应该如下:

  #left-panel {
    background-color: orange;
    height: 100px;
  }

  #right-section {
    background-color: green;
    height: 500px;
  }

【讨论】:

  • 但内容会出错,因为左侧面板中的内容有自己的内容,与右侧部分相同。
猜你喜欢
  • 1970-01-01
  • 2020-09-11
  • 1970-01-01
  • 2021-07-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-05-08
  • 2015-09-14
相关资源
最近更新 更多