CSS3 外部样式

    xiaoxiao2021-03-25  288

    7-03.css

    @charset"utf-8";

    /*CSS Document*/ body{ margin: 20px 0px; color: #fff; font-size: 13px; font-family: 微软雅黑,"Time New Roman",Times,serif; } nav{ width: 100%; height: 30px; padding-left: 30px; background-color: #F63; } li{ float:left; padding: 4px 5px 0px 5px; list-style: none;

    }

    7-03.html

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>外部样式</title> <link rel="stylesheet" type="text/css" href="\HTML5\7-03.css"> </head> <body> <nav> <ul> <li>首页</li> <li>Web前端开发</li> <li>Web前端开发</li> <li>Web前端开发</li> <li>Web前端开发</li> </ul> </nav> </body> </html>

    转载请注明原文地址: https://ju.6miu.com/read-214.html

    最新回复(0)