CSS的一些常用样式,如背景、文字、文本、表格、列表等,以及一些常用的场景,如居中对齐、溢出、隐藏元素等。01、常用样式 1.1、background背景 设置元素背景的样式 background,更
顺晟科技
2022-09-15 21:13:48
254
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <style type="text/css"> .day{ border-radius: 10px; box-shadow: 0 0 20px 2px rgb(0 0 0 / 40%); transition:0.3s; padding:50px; width:700px; margin:0 auto; } .day{ margin-top:10px; } .day:hover{ box-shadow: 0 1px 2px rgba(0,0,0,.1); } </style> </head> <body> <div class="day"> 123 </div> <div class="day"> 456 </div> </body> </html>
09
2022-11
19
2022-10
30
2022-09
15
2022-09
15
2022-09
15
2022-09