index.html
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <title>CSS其他样式</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div>我是HTML5</div> </body> </html>
style.css
@charset "utf-8"; div { width: 200px; height: 200px; /* background-color: green; color: blue; opacity: 0.5;*/ border: 10px solid green; /*box-shadow: 10px 10px 5px 2px gray inset;*/ outline: 5px double red; cursor: move; }