23css中的水平居中显示标签用法

mac2022-06-30  32

<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <style type="text/css"> div{ border:1px solid red; margin:20px; } .txtcenter{text-align:center;} </style> </head> <body> <div class="txtcenter">居中显示</div> <div class="txtcenter"><img src="../Desktop/11.jpg" width="101" height="101" alt=""/></div> </body> </html>

 

转载于:https://www.cnblogs.com/Riona-C/p/7148116.html

最新回复(0)