0

这是我的主页布局:

<HTML>
<HEAD>

</HEAD>
<FRAMESET>
    <FRAMESET>
        <FRAME name="menu"  src=<%=menu%> >
        <FRAME src=<%=bottom%> >
    </FRAMESET>
    <FRAMESET>
        <FRAME  src=<%=tittle%>  >
        <FRAME name="center"  src=<%=center%>>
    </FRAMESET>
</FRAMESET>

由于此页面是 10 年前构建的,并且 html5 不再支持框架集,因此我想对我的布局进行现代化改造。

哪个是当今的替代品?

4

3 回答 3

1

Do some reading about html5. Descide if your site should be responsive (that is shall it resize to fit various sized clients such as both desktop browsers and mobile browsers well). If it should be responsive do some reading about that.

My "personal/general" advice:

I think you should get rid of the frames. If you are to use asp.net (not MVC), you could put the parts that are shared between pages in a master page. Menus should be located in a <nav> element and the navigation menu should be built using <ul> / <li> elements and styled to look like you want.

There are lots of examples on the web. For example take a look at http://www.initializr.com/ where you can download a template for a new website in the "new style".

于 2013-01-14T11:12:51.273 回答
0

本身没有替代方案。“只需”使用现代 HTML 和 CSS 重写您的整个页面。如果您不知道该怎么做,我建议您买一两本书(关于 HTML5 和 CSS3)并从那里开始工作。抱歉,没有什么更具体的了,我们可以在这里回答您。

于 2013-01-14T11:05:33.030 回答
0

这样的事情应该让你开始:

<!DOCTYPE html>

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Test Page</title>
    </head>

    <body>
        <header>
            ...
        </header>

        <div id="content">
            ...
        </div>

        <footer>
            ...
        </footer>
    </body>
</html>

只需剖析一些现有的网站。没有适用于每种情况的食谱。

于 2013-01-14T11:05:37.957 回答