p { font-size:25px; } .content { margin:0 auto; width:500px; text-align:center; margin-top:50px; } .id { float:left; width:50%; } .name { float:left; width:100%; } .dianming { background-color:#0000FF; color:#fff; border:none; border-radius:10px; cursor:pointer; padding:20px 30px; font-size:25px; } .dianming:hover { background-color:red; } #zhi { font-size:40px; color:red; font-weight:800 }
本段代码为超简单的随机点名