.bagitem-main {
margin: 0 auto;
position: relative;
min-width: 10px;
max-width: 1260px;
direction: rtl;
background-color: green;
}
.bagitem-box {
position: absolute;
width: 290px;
direction: ltr;
background-color: white;
border-radius: 2px;
border: 1px solid #d6d6d6;
pointer-events: auto;
display: block;
top: 4px;
left: 0;
}
.bagitem-arrow {
opacity: 1.0;
position: absolute;
background: #ffffff;
margin-left: 19px;
margin-top: 5px;
}
.bagitem-arrow::after,
.bagitem-arrow::before {
opacity: 1.0;
bottom: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.bagitem-arrow::after {
opacity: 1.0;
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #ffffff;
border-width: 10px;
margin-left: -10px;
}
.bagitem-arrow::before {
opacity: 1.0;
border-color: rgba(214, 214, 214, 0);
border-bottom-color: #d6d6d6;
border-width: 11px;
margin-left: -11px;
}
<div class="bagitem-arrow" id="bagitem-arrow"></div>
<div class="bagitem-main">
<div class="bagitem-box">
<p>hi hi hi hi h i ih ih i hi hi h ih ih ih i hi hihi h ih ih i hi hi hi </p>
<p>hi hi hi hi h i ih ih i hi hi h ih ih ih i hi hihi h ih ih i hi hi hi </p>
<p>hi hi hi hi h i ih ih i hi hi h ih ih ih i hi hihi h ih ih i hi hi hi </p>
<p>hi hi hi hi h i ih ih i hi hi h ih ih ih i hi hihi h ih ih i hi hi hi </p>
<p>hi hi hi hi h i ih ih i hi hi h ih ih ih i hi hihi h ih ih i hi hi hi </p>
<p>hi hi hi hi h i ih ih i hi hi h ih ih ih i hi hihi h ih ih i hi hi hi </p>
</div>
</div>
我开发一个购物车的HTML网页。并在该网站,我需要onclick购物车项目下拉列表。在那个下拉我需要这个箭头和一个div 单独的。我试图删除箭头和div之间显示的灰线,但不知道如何去做。
你的意思是你不需要只在箭头部分下面的灰线? –
是的,喜欢我想要的 –