我需要做的第二邊界,而不使用圖像,所以我的想法是讓另一個DIV父裏面一個前:第二邊框元素
<div class="box news">
<div class="title">{l_news}</div>
<marquee behavior="scroll" direction="left" loop="-1" scrollamount="3" scrolldelay="0">{news}</marquee>
<div class="border"></div>
</div>
我的CSS是:
.box{
float: left;
position: relative;
margin: 15px;
border-radius: 4px;
-webkit-border-radius: 4px;
border: 2px solid #9a9a9a;
}
.box div.title{
clear: left;
width: 100%-10px;
height: 22px;
padding-top: 2px;
}
.border{
width: 100%-2px;
position: absolute;
top: 0px; left: 0px;
border-radius: 2px;
-webkit-border-radius: 2px;
border: 1px solid #d6d6d6;
}
寬度:100%-10px第一次工作,但不是第二次。爲什麼?任何建議的方式>
可怕:你可能不是在開玩笑的那個字幕標籤... – timoxley