css3属性测试
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .btn { margin-bottom: 0; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid #449d48; padding: 6px 12px; font-size: 14px; border-radius: 4px; color: #4CAF50; background-color: transparent; transition: background 0.2s ease-in-out, border 0.2s ease-in-out; } .btn:hover{ color: #eeeeee; background-color: #4CAF50; border-color: #327334; } </style> </head> <body> <div id="0" class="btn">前进</div> </body> </html>