<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> *{ margin: 0; padding: 0; } .wrapper{ margin: 100px; border: 1px solid black; width: 1000px; height: 100px; line-height: 100px; text-align: center; background: #f2f2f2; } .line{ display: inline-block; width: 300px; border-top: 1px dashed blue; border-bottom: 1px dashed blue; vertical-align: middle; } </style> </head> <body> <div class="wrapper"> <span class="line"></span> <span class="content">我是有底线的</span> <span class="line"></span> </div> </body> </html>
span标签的使用之“我是有底线的”
猜你喜欢
转载自blog.csdn.net/qq_41115965/article/details/80039405
今日推荐
周排行