📜  水平线加文字 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:48.477000             🧑  作者: Mango

代码示例1
with_horizontal_rule {
   width: 100%; 
   text-align: center; /* Remove this to align left */
   border-bottom: 1px solid #000; 
   line-height: 0.1em;
   margin: 10px 0 20px; 
} 

p span { 
    background:#fff; 
    padding:0 10px; 
}

/* HTML */

Your text goes here