回答:
例えば:
hr {
border:none;
border-top:1px dotted #f00;
color:#fff;
background-color:#fff;
height:1px;
width:50%;
}
CSSを使用したスタイル設定<hr>
もご覧ください。
「border:1px doted black」のような意味ですか?
この行はあなたのために働くはずです:
<hr style="border-top: 2px dotted black"/>
.myclass {
border-bottom: thin red dotted;
}
このように使用します:
<hr style="border-bottom:dotted" />
これを行うには、次のようにタグにborder-top
またはborder-bottom
を追加するだけです<hr/>
。
<hr style="border-top: 2px dotted navy" />
好きな線種や色で
ダッシュしてみてください...
<hr style="border-top: 2px dashed black;color:transparent;"/>
要素の後の点線:
http://jsfiddle.net/korigan/ubtkc17e/
<h2 class="dotted-line">Lorem ipsum</h2>
.dotted-line {
white-space: nowrap;
position: relative;
overflow: hidden;
}
.dotted-line:after {
content: "..........................................................................................................";
letter-spacing: 6px;
font-size: 30px;
color: #9cbfdb;
display: inline-block;
vertical-align: 3px;
padding-left: 10px;
}