Web/16-前端综合/html相关.md
2021-04-10 11:03:41 +08:00

33 lines
776 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## SSI服务器端嵌入
SSIServer Side Include服务器端嵌入
通俗点讲就是在本地的html页面中插入服务器上的文件静态页面中插入动态的代码
比如
```html
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
</style>
<!--#include virtual="/sinclude/common/head_inc.shtml"-->
<!--#include virtual="/sinclude/common/head_shortcut.shtml"-->
<!--#include virtual="head.shtml"-->
</head>
```
上面的代码中注释里的代码就是SSI部分它加载的是服务器端的html页面