在CSS中利用outline实现双重边框示例程序
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>三十客-在CSS中,利用outline实现双重边框</title> <style> .borders { border: solid 6px #fff; outline: solid 6px #888; } .base { background: #222; padding: 4rem 2rem; color:#fff; font-weight: bold; text-align: center; margin: 1rem; } </style> </head> <body> <div class="base borders">利用outline实现双重边框</div> </body> </html>