css下虛線怎么設(shè)置
本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。
css下虛線怎么設(shè)置
可以通過設(shè)置border-bottom屬性來設(shè)置元素的下虛線。下面我們通過示例來看一下,示例如下:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style type="text/css"> p{ border-bottom:1px dashed black; } </style> </head> <body> <p>設(shè)置下虛線</p><p><span>立即學(xué)習(xí)</span>“<a style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">前端免費(fèi)學(xué)習(xí)筆記(深入)</a>”;</p> </body> </html>
輸出結(jié)果:
(學(xué)習(xí)視頻分享:css視頻教程)
以上就是css下虛線怎么設(shè)置的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注有啊網(wǎng)站百科其它相關(guān)文章!
相關(guān)閱讀:
- 喜歡(10)
- 不喜歡(2)