---
title: "页面框架frame中的样式问题"
author: "Flighting_Chou"
date: "2011-12-22T19:13:00Z"
tags: []
categories: ["Web前端"]
slug: "frame"
draft: false
lastmod: "2011-12-22T19:13:00Z"
id: 1321481
url: "https://imyself.iteye.com/blog/1321481"
---

应用frameset做后台管理页面，页面frame.html结构为

![](http://dl.iteye.com/upload/attachment/610091/55b46e09-3175-342f-9692-267e89b09351.jpg)

 

为了减少页面样式的加载次数我将头部header.html、底部footer.html、左侧菜单left.html的样式写在公用文件common.css中，发现在框架页frame.html中引入common.css样式无法被应用

必须要在各个页面header.html、footer.html、left.html中分别引用common.css才会出现效果

 

这是个初级、细小的问题，记录下来提醒自己注意；同时也觉得这个写法比较别扭，如果common.css写在frame.html页面不能出现效果还不如将header、footer、left各个部分的样式分文件写。