具有共享广告内容的静态页面

时间:2019-06-28 09:59:53

标签: javascript html css asp.net-mvc

我有一个用Asp.net Core MVC开发的Web应用程序,它为用户帖子生成静态HTML页面(以便轻松共享和加载)。这些页面的广告固定有公共区域(包含文本+图片)。

以防万一,我想更改广告内容,我必须用新的广告内容来复制所有页面。

是否有解决方案将此类页面部件引用到某种类型的页面/部件,通过更改将更改所有静态页面?

1 个答案:

答案 0 :(得分:0)

使用iframe查找解决方案:

<!DOCTYPE html>
<html>
<body>

<h2>HTML Iframes</h2>
<p>You can use the height and width attributes to specify the size of the iframe:</p>

<iframe src="demo_iframe.htm" height="200" width="300"></iframe>

</body>
</html>