我需要在侧边栏旁边放置pockeat项目,我尝试了很多在互联网上找到的解决方案,但没有一个能够正常工作。
这是我的代码:
.header {
background-color:#ffffff;
top:0;
height:10%;
width:100%;
color:#1c1919;
font-family:century gothic;
font-size:56px;
padding:15px;
text-decoration:none;
float:center;
text-align:center;
top:2%;
}
.navbar {
position:relative;
display:inline-block;
text-align:center;
overflow:hidden;
background-color:#ffffff;
height:8%;
width: 100%;
border-top:4px solid #1c1919;
border-bottom:4px solid #1c1919;
padding:5px;
}
.navbar a {
text-align:center;
text-decoration:none;
color:#1c1919;
font-family:century gothic;
font-size:32px;
padding:0 30px;
}
.sidebar {
background-color:#ffffff;
text-decoration:none;
font-family:century gothic;
height:82%;
width:20%;
border-right:2px solid #1c1919;
}
button.accordion {
background-color: #f2f2f2;
color: #1c1919;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
button.accordion.active, button.accordion:hover {
opacity:0.7;
}
button.accordion:after {
content: '\002B';
color: #1c1919;
font-weight: bold;
float: right;
margin-left: 5px;
}
button.accordion.active:after {
content: "\2212";
}
div.panel {
padding: 0 18px;
background-color:#ffffff;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.panel li a {
text-decoration:none;
font-family:century gothic;
font-size:15px;
text-align:left;
color: #1c1919;
padding:10px;
display:block;
}
.content-body {
background-color:#ffffff;
height:82%;
width:80%;
text-decoration:none;
padding:10px;
float:right;
}
.content {
height:60px;
width:50px;
background-color:#ffffff;
text-decoration:none;
font-family:century gothic;
padding:10px;
font-size:20px;
display:block;
}

<!navbar>
<div class="navbar">
<a href="#Newest">HOME</a>
<a href="#Newest">NEWEST</a>
<a href="#Recommended">RECOMMENDED</a>
<a href="#ATF">ALL TIME FAVE</a>
<a href="#Newest">CONTACT US</a>
</div>
<!sidebar>
<div class="sidebar">
<button class="accordion">Gadgets</button>
<div class="panel">
<ul>
<li><a href="#">Camera</a></li>
<li><a href="#">Watch</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Phone</a></li>
<li><a href="#">Bracelet</a></li>
</ul>
</div>
<button class="accordion">Furniture</button>
<div class="panel">
<ul>
<li><a href="#">Wheelchair</a></li>
<li><a href="#">Lights</a></li>
<li><a href="#">Table/ Chair</a></li>
<li><a href="#">Storage</a></li>
</ul>
</div>
<button class="accordion">Lifestyle</button>
<div class="panel">
<ul>
<li><a href="#">Window Blinds</a></li>
<li><a href="#">Ornaments</a></li>
<li><a href="#">Mask</a></li>
<li><a href="#">Socks</a></li>
<li><a href="#">Gardening</a></li>
</ul>
</div>
<button class="accordion">Instruments</button>
<div class="panel">
<ul>
<li><a href="#">Guitar</a></li>
<li><a href="#">Flute</a></li>
<li><a href="#">Tuner</a></li>
</ul>
</div>
<button class="accordion">Kitchen/Bathroom</button>
<div class="panel">
<ul>
<li><a href="#">Ready-to-Eat</a></li>
<li><a href="#">Bag</a></li>
<li><a href="#">Pot</a></li>
<li><a href="#">Kit</a></li>
</ul>
</div>
<button class="accordion">Pet</button>
<div class="panel">
<ul>
<li><a href="#">Cat</a></li>
<li><a href="#">Dog</a></li>
</ul>
</div>
<button class="accordion">Stationery</button>
<div class="panel">
<ul>
<li><a href="#">Pen Pouch</a></li>
<li><a href="#">Clock</a></li>
</ul>
</div>
<button class="accordion">Toy</button>
<div class="panel">
<ul>
<li><a href="#">Block</a></li>
<li><a href="#">Doll</a></li>
<li><a href="#">Card</a></li>
</ul>
</div>
<button class="accordion">Other</button>
<div class="panel">
<ul>
<li><a href="#">Pill Case</a></li>
<li><a href="#">Fitness</a></li>
<li><a href="#">Bicycle</a></li>
<li><a href="#">Wine</a></li>
</ul>
</div>
</div>
<!content>
<div class="content-body">
<div class="content">
<img src="/image/bento/20170521223952w6A7Gz9kL8KlUW1g.jpg-w600.jpg" style="height:80%; width:100%">
<br>Pockeat
</div>
</div>
&#13;
我很困惑,我不知道自己做错了什么。请帮我看看!先谢谢!
答案 0 :(得分:1)
第一个没有float
被添加到.sidebar
,2nd
两者的总width
(即.sidebar and .content-body
)应小于100%
您在.sidebar的border
添加了right-side
,如下所示,
background-color:#ffffff;
top:0;
height:10%;
width:100%;
color:#1c1919;
font-family:century gothic;
font-size:56px;
padding:15px;
text-decoration:none;
float:center;
text-align:center;
top:2%;
}
.navbar {
position:relative;
display:inline-block;
text-align:center;
overflow:hidden;
background-color:#ffffff;
height:8%;
width: 100%;
border-top:4px solid #1c1919;
border-bottom:4px solid #1c1919;
padding:5px;
}
.navbar a {
text-align:center;
text-decoration:none;
color:#1c1919;
font-family:century gothic;
font-size:32px;
padding:0 30px;
}
.sidebar {
background:#fff;
text-decoration:none;
font-family:century gothic;
height:82%;
width:20%;
border-right:2px solid #1c1919;
float:left;
overflow:hidden;
}
button.accordion {
background-color: #f2f2f2;
color: #1c1919;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
button.accordion.active, button.accordion:hover {
opacity:0.7;
}
button.accordion:after {
content: '\002B';
color: #1c1919;
font-weight: bold;
float: right;
margin-left: 5px;
}
button.accordion.active:after {
content: "\2212";
}
div.panel {
padding: 0 18px;
background-color:#ffffff;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.panel li a {
text-decoration:none;
font-family:century gothic;
font-size:15px;
text-align:left;
color: #1c1919;
padding:10px;
display:block;
}
.content-body {
background-color:#ffffff;
height:82%;
width:calc(80% - 5%);
text-decoration:none;
padding:10px;
float:right;
}
.content {
height:60px;
width:50px;
background-color:#ffffff;
text-decoration:none;
font-family:century gothic;
padding:10px;
font-size:20px;
display:block;
}
<div class="navbar">
<a href="#Newest">HOME</a>
<a href="#Newest">NEWEST</a>
<a href="#Recommended">RECOMMENDED</a>
<a href="#ATF">ALL TIME FAVE</a>
<a href="#Newest">CONTACT US</a>
</div>
<div class="sidebar">
<button class="accordion">Gadgets</button>
<div class="panel">
<ul>
<li><a href="#">Camera</a></li>
<li><a href="#">Watch</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Phone</a></li>
<li><a href="#">Bracelet</a></li>
</ul>
</div>
<button class="accordion">Furniture</button>
<div class="panel">
<ul>
<li><a href="#">Wheelchair</a></li>
<li><a href="#">Lights</a></li>
<li><a href="#">Table/ Chair</a></li>
<li><a href="#">Storage</a></li>
</ul>
</div>
<button class="accordion">Lifestyle</button>
<div class="panel">
<ul>
<li><a href="#">Window Blinds</a></li>
<li><a href="#">Ornaments</a></li>
<li><a href="#">Mask</a></li>
<li><a href="#">Socks</a></li>
<li><a href="#">Gardening</a></li>
</ul>
</div>
<button class="accordion">Instruments</button>
<div class="panel">
<ul>
<li><a href="#">Guitar</a></li>
<li><a href="#">Flute</a></li>
<li><a href="#">Tuner</a></li>
</ul>
</div>
<button class="accordion">Kitchen/Bathroom</button>
<div class="panel">
<ul>
<li><a href="#">Ready-to-Eat</a></li>
<li><a href="#">Bag</a></li>
<li><a href="#">Pot</a></li>
<li><a href="#">Kit</a></li>
</ul>
</div>
<button class="accordion">Pet</button>
<div class="panel">
<ul>
<li><a href="#">Cat</a></li>
<li><a href="#">Dog</a></li>
</ul>
</div>
<button class="accordion">Stationery</button>
<div class="panel">
<ul>
<li><a href="#">Pen Pouch</a></li>
<li><a href="#">Clock</a></li>
</ul>
</div>
<button class="accordion">Toy</button>
<div class="panel">
<ul>
<li><a href="#">Block</a></li>
<li><a href="#">Doll</a></li>
<li><a href="#">Card</a></li>
</ul>
</div>
<button class="accordion">Other</button>
<div class="panel">
<ul>
<li><a href="#">Pill Case</a></li>
<li><a href="#">Fitness</a></li>
<li><a href="#">Bicycle</a></li>
<li><a href="#">Wine</a></li>
</ul>
</div>
</div>
<div class="content-body">
<div class="content">
<img src="/image/bento/20170521223952w6A7Gz9kL8KlUW1g.jpg-w600.jpg" style="height:80%; width:100%">
<br>Pockeat
</div>
</div>
答案 1 :(得分:0)
只需将float:left
添加到sidebar div
&amp;全局添加box-sizing
。
检查下面的更新代码:
*,
*:before,
*:after {
box-sizing: border-box;
}
.header {
background-color: #ffffff;
top: 0;
height: 10%;
width: 100%;
color: #1c1919;
font-family: century gothic;
font-size: 56px;
padding: 15px;
text-decoration: none;
float: center;
text-align: center;
top: 2%;
}
.navbar {
position: relative;
display: inline-block;
text-align: center;
overflow: hidden;
background-color: #ffffff;
height: 8%;
width: 100%;
border-top: 4px solid #1c1919;
border-bottom: 4px solid #1c1919;
padding: 5px;
}
.navbar a {
text-align: center;
text-decoration: none;
color: #1c1919;
font-family: century gothic;
font-size: 32px;
padding: 0 30px;
}
.sidebar {
background-color: #ffffff;
text-decoration: none;
font-family: century gothic;
height: 82%;
width: 20%;
border-right: 2px solid #1c1919;
float: left;
}
button.accordion {
background-color: #f2f2f2;
color: #1c1919;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
button.accordion.active,
button.accordion:hover {
opacity: 0.7;
}
button.accordion:after {
content: '\002B';
color: #1c1919;
font-weight: bold;
float: right;
margin-left: 5px;
}
button.accordion.active:after {
content: "\2212";
}
div.panel {
padding: 0 18px;
background-color: #ffffff;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.panel li a {
text-decoration: none;
font-family: century gothic;
font-size: 15px;
text-align: left;
color: #1c1919;
padding: 10px;
display: block;
}
.content-body {
background-color: #ffffff;
height: 82%;
width: 80%;
text-decoration: none;
padding: 10px;
float: right;
}
.content {
height: 60px;
width: 50px;
background-color: #ffffff;
text-decoration: none;
font-family: century gothic;
padding: 10px;
font-size: 20px;
display: block;
}
<div class="navbar">
<a href="#Newest">HOME</a>
<a href="#Newest">NEWEST</a>
<a href="#Recommended">RECOMMENDED</a>
<a href="#ATF">ALL TIME FAVE</a>
<a href="#Newest">CONTACT US</a>
</div>
<div class="sidebar">
<button class="accordion">Gadgets</button>
<div class="panel">
<ul>
<li><a href="#">Camera</a></li>
<li><a href="#">Watch</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Phone</a></li>
<li><a href="#">Bracelet</a></li>
</ul>
</div>
<button class="accordion">Furniture</button>
<div class="panel">
<ul>
<li><a href="#">Wheelchair</a></li>
<li><a href="#">Lights</a></li>
<li><a href="#">Table/ Chair</a></li>
<li><a href="#">Storage</a></li>
</ul>
</div>
<button class="accordion">Lifestyle</button>
<div class="panel">
<ul>
<li><a href="#">Window Blinds</a></li>
<li><a href="#">Ornaments</a></li>
<li><a href="#">Mask</a></li>
<li><a href="#">Socks</a></li>
<li><a href="#">Gardening</a></li>
</ul>
</div>
<button class="accordion">Instruments</button>
<div class="panel">
<ul>
<li><a href="#">Guitar</a></li>
<li><a href="#">Flute</a></li>
<li><a href="#">Tuner</a></li>
</ul>
</div>
<button class="accordion">Kitchen/Bathroom</button>
<div class="panel">
<ul>
<li><a href="#">Ready-to-Eat</a></li>
<li><a href="#">Bag</a></li>
<li><a href="#">Pot</a></li>
<li><a href="#">Kit</a></li>
</ul>
</div>
<button class="accordion">Pet</button>
<div class="panel">
<ul>
<li><a href="#">Cat</a></li>
<li><a href="#">Dog</a></li>
</ul>
</div>
<button class="accordion">Stationery</button>
<div class="panel">
<ul>
<li><a href="#">Pen Pouch</a></li>
<li><a href="#">Clock</a></li>
</ul>
</div>
<button class="accordion">Toy</button>
<div class="panel">
<ul>
<li><a href="#">Block</a></li>
<li><a href="#">Doll</a></li>
<li><a href="#">Card</a></li>
</ul>
</div>
<button class="accordion">Other</button>
<div class="panel">
<ul>
<li><a href="#">Pill Case</a></li>
<li><a href="#">Fitness</a></li>
<li><a href="#">Bicycle</a></li>
<li><a href="#">Wine</a></li>
</ul>
</div>
</div>
<div class="content-body">
<div class="content">
<img src="/image/bento/20170521223952w6A7Gz9kL8KlUW1g.jpg-w600.jpg" style="height:80%; width:100%">
<br>Pockeat
</div>
</div>
答案 2 :(得分:0)
2%的边框会进入侧边栏宽度,使其总数达到22%,因此您的侧边栏需要为18%且边框为2%,请参阅更新后的CSS。我还删除了所有高度属性,但不需要它们。 div中的内容将自然适应。我做的另一个修改是将你使用的字体全局添加到&#34; body&#34; CSS中的选择器。
body {
font-family:century gothic;
}
.header {
background-color:#ffffff;
width:100%;
color:#1c1919;
font-size:56px;
padding:15px;
text-decoration:none;
float:center;
text-align:center;
top:2%;
}
.navbar {
position:relative;
display:inline-block;
text-align:center;
overflow:hidden;
background-color:#ffffff;
width: 100%;
border-top:4px solid #1c1919;
border-bottom:4px solid #1c1919;
padding:5px;
}
.navbar a {
text-align:center;
text-decoration:none;
color:#1c1919;
font-size:32px;
padding:0 30px;
}
.sidebar {
background-color:#ffffff;
text-decoration:none;
width:18%;
border-right:2px solid #1c1919;
float:left;
}
button.accordion {
background-color: #f2f2f2;
color: #1c1919;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
button.accordion.active, button.accordion:hover {
opacity:0.7;
}
button.accordion:after {
content: '\002B';
color: #1c1919;
font-weight: bold;
float: right;
margin-left: 5px;
}
button.accordion.active:after {
content: "\2212";
}
div.panel {
padding: 0 18px;
background-color:#ffffff;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.panel li a {
text-decoration:none;
font-size:15px;
text-align:left;
color: #1c1919;
padding:10px;
display:block;
}
.content-body {
background-color:#ffffff;
width:80%;
text-decoration:none;
padding:10px;
float:right;
}
.content {
background-color:#ffffff;
text-decoration:none;
font-size:20px;
display:block;
}
答案 3 :(得分:0)
这是因为你的侧边栏和你的内容体太大而无法浮动。
如果你想使用宽度:80%的填充,你应该使用:width: calc(80% - padding)
,边框相同。
.header {
background-color:#ffffff;
top:0;
height:10%;
width:100%;
color:#1c1919;
font-family:century gothic;
font-size:56px;
padding:15px;
text-decoration:none;
float:center;
text-align:center;
top:2%;
}
.navbar {
position:relative;
display:inline-block;
text-align:center;
overflow:hidden;
background-color:#ffffff;
height:8%;
width: 100%;
border-top:4px solid #1c1919;
border-bottom:4px solid #1c1919;
padding:5px;
}
.navbar a {
text-align:center;
text-decoration:none;
color:#1c1919;
font-family:century gothic;
font-size:32px;
padding:0 30px;
}
.sidebar {
background-color:#ffffff;
text-decoration:none;
font-family:century gothic;
height:82%;
width:20%;
float: left;
}
button.accordion {
background-color: #f2f2f2;
color: #1c1919;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
button.accordion.active, button.accordion:hover {
opacity:0.7;
}
button.accordion:after {
content: '\002B';
color: #1c1919;
font-weight: bold;
float: right;
margin-left: 5px;
}
button.accordion.active:after {
content: "\2212";
}
div.panel {
padding: 0 18px;
background-color:#ffffff;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.panel li a {
text-decoration:none;
font-family:century gothic;
font-size:15px;
text-align:left;
color: #1c1919;
padding:10px;
display:block;
}
.content-body {
background-color:#ffffff;
height:82%;
width:80%;
text-decoration:none;
float:left;
}
.content {
height:60px;
width:50px;
background-color:#ffffff;
text-decoration:none;
font-family:century gothic;
padding:10px;
font-size:20px;
display:block;
}
<!navbar>
<div class="navbar">
<a href="#Newest">HOME</a>
<a href="#Newest">NEWEST</a>
<a href="#Recommended">RECOMMENDED</a>
<a href="#ATF">ALL TIME FAVE</a>
<a href="#Newest">CONTACT US</a>
</div>
<!sidebar>
<div class="sidebar">
<button class="accordion">Gadgets</button>
<div class="panel">
<ul>
<li><a href="#">Camera</a></li>
<li><a href="#">Watch</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Phone</a></li>
<li><a href="#">Bracelet</a></li>
</ul>
</div>
<button class="accordion">Furniture</button>
<div class="panel">
<ul>
<li><a href="#">Wheelchair</a></li>
<li><a href="#">Lights</a></li>
<li><a href="#">Table/ Chair</a></li>
<li><a href="#">Storage</a></li>
</ul>
</div>
<button class="accordion">Lifestyle</button>
<div class="panel">
<ul>
<li><a href="#">Window Blinds</a></li>
<li><a href="#">Ornaments</a></li>
<li><a href="#">Mask</a></li>
<li><a href="#">Socks</a></li>
<li><a href="#">Gardening</a></li>
</ul>
</div>
<button class="accordion">Instruments</button>
<div class="panel">
<ul>
<li><a href="#">Guitar</a></li>
<li><a href="#">Flute</a></li>
<li><a href="#">Tuner</a></li>
</ul>
</div>
<button class="accordion">Kitchen/Bathroom</button>
<div class="panel">
<ul>
<li><a href="#">Ready-to-Eat</a></li>
<li><a href="#">Bag</a></li>
<li><a href="#">Pot</a></li>
<li><a href="#">Kit</a></li>
</ul>
</div>
<button class="accordion">Pet</button>
<div class="panel">
<ul>
<li><a href="#">Cat</a></li>
<li><a href="#">Dog</a></li>
</ul>
</div>
<button class="accordion">Stationery</button>
<div class="panel">
<ul>
<li><a href="#">Pen Pouch</a></li>
<li><a href="#">Clock</a></li>
</ul>
</div>
<button class="accordion">Toy</button>
<div class="panel">
<ul>
<li><a href="#">Block</a></li>
<li><a href="#">Doll</a></li>
<li><a href="#">Card</a></li>
</ul>
</div>
<button class="accordion">Other</button>
<div class="panel">
<ul>
<li><a href="#">Pill Case</a></li>
<li><a href="#">Fitness</a></li>
<li><a href="#">Bicycle</a></li>
<li><a href="#">Wine</a></li>
</ul>
</div>
</div>
<!content>
<div class="content-body">
<div class="content">
<img src="/image/bento/20170521223952w6A7Gz9kL8KlUW1g.jpg-w600.jpg" style="height:80%; width:100%">
<br>Pockeat
</div>
</div>
答案 4 :(得分:0)
我认为它会解决您的问题。
.header {
background-color:#ffffff;
top:0;
height:10%;
width:100%;
color:#1c1919;
font-family:century gothic;
font-size:56px;
padding:15px;
text-decoration:none;
float:center;
text-align:center;
top:2%;
}
.navbar {
position:relative;
display:inline-block;
text-align:center;
overflow:hidden;
background-color:#ffffff;
height:8%;
width: 100%;
border-top:4px solid #1c1919;
border-bottom:4px solid #1c1919;
padding:5px;
}
.navbar a {
text-align:center;
text-decoration:none;
color:#1c1919;
font-family:century gothic;
font-size:32px;
padding:0 30px;
}
.sidebar {
background-color:#ffffff;
text-decoration:none;
font-family:century gothic;
height:82%;
width:20%;
border-right:2px solid #1c1919;
float: left;
}
button.accordion {
background-color: #f2f2f2;
color: #1c1919;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
button.accordion.active, button.accordion:hover {
opacity:0.7;
}
button.accordion:after {
content: '\002B';
color: #1c1919;
font-weight: bold;
float: right;
margin-left: 5px;
}
button.accordion.active:after {
content: "\2212";
}
div.panel {
padding: 0 18px;
background-color:#ffffff;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.panel li a {
text-decoration:none;
font-family:century gothic;
font-size:15px;
text-align:left;
color: #1c1919;
padding:10px;
display:block;
}
.content-body {
background-color:#ffffff;
height:82%;
width:calc(100% - 20% - 22px);
text-decoration:none;
padding:10px;
float:right;
}
.content {
height:60px;
width:50px;
background-color:#ffffff;
text-decoration:none;
font-family:century gothic;
padding:10px;
font-size:20px;
display:block;
}
&#13;
<!--navbar -->
<div class="navbar">
<a href="#Newest">HOME</a>
<a href="#Newest">NEWEST</a>
<a href="#Recommended">RECOMMENDED</a>
<a href="#ATF">ALL TIME FAVE</a>
<a href="#Newest">CONTACT US</a>
</div>
<div id="wrapper">
<!--sidebar -->
<div class="sidebar">
<button class="accordion">Gadgets</button>
<div class="panel">
<ul>
<li><a href="#">Camera</a></li>
<li><a href="#">Watch</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Phone</a></li>
<li><a href="#">Bracelet</a></li>
</ul>
</div>
<button class="accordion">Furniture</button>
<div class="panel">
<ul>
<li><a href="#">Wheelchair</a></li>
<li><a href="#">Lights</a></li>
<li><a href="#">Table/ Chair</a></li>
<li><a href="#">Storage</a></li>
</ul>
</div>
<button class="accordion">Lifestyle</button>
<div class="panel">
<ul>
<li><a href="#">Window Blinds</a></li>
<li><a href="#">Ornaments</a></li>
<li><a href="#">Mask</a></li>
<li><a href="#">Socks</a></li>
<li><a href="#">Gardening</a></li>
</ul>
</div>
<button class="accordion">Instruments</button>
<div class="panel">
<ul>
<li><a href="#">Guitar</a></li>
<li><a href="#">Flute</a></li>
<li><a href="#">Tuner</a></li>
</ul>
</div>
<button class="accordion">Kitchen/Bathroom</button>
<div class="panel">
<ul>
<li><a href="#">Ready-to-Eat</a></li>
<li><a href="#">Bag</a></li>
<li><a href="#">Pot</a></li>
<li><a href="#">Kit</a></li>
</ul>
</div>
<button class="accordion">Pet</button>
<div class="panel">
<ul>
<li><a href="#">Cat</a></li>
<li><a href="#">Dog</a></li>
</ul>
</div>
<button class="accordion">Stationery</button>
<div class="panel">
<ul>
<li><a href="#">Pen Pouch</a></li>
<li><a href="#">Clock</a></li>
</ul>
</div>
<button class="accordion">Toy</button>
<div class="panel">
<ul>
<li><a href="#">Block</a></li>
<li><a href="#">Doll</a></li>
<li><a href="#">Card</a></li>
</ul>
</div>
<button class="accordion">Other</button>
<div class="panel">
<ul>
<li><a href="#">Pill Case</a></li>
<li><a href="#">Fitness</a></li>
<li><a href="#">Bicycle</a></li>
<li><a href="#">Wine</a></li>
</ul>
</div>
</div>
<!--content-->
<div class="content-body">
<div class="content">
<img src="/image/bento/20170521223952w6A7Gz9kL8KlUW1g.jpg-w600.jpg" style="height:80%; width:100%">
<br>Pockeat
</div>
</div>
</div>
&#13;