如何建立一个2个链接的网站 [英] How to make a website with 2 links
问题描述
嘿,
我有2个主页:
- domain.com/hp1/index.html
- domain.com/hp2 /index.html
我如何创建一个网站,我可以在这两个网站之间进行选择?
我想要一个页面分为两部分。每个部分应该包含一个图标/ img ...
这个网站应该与桌面(水平划分)和手机(垂直划分)兼容
请帮帮我:)
我尝试过:
HTML-Code
Hey,
I have 2 homepages:
- domain.com/hp1/index.html
- domain.com/hp2/index.html
How do I create a website where I can choose between those two sites?
I would like to have a page devided in two parts. every part should contain an icon/img...
This site should be compatible with desktops (horizontally divided) and phones (vertically divided)
Please help me :)
What I have tried:
HTML-Code
<body>
<div id="div1">1</div>
<div id="div2">2</div>
</body>
CSS-Code
CSS-Code
#div1{
width: 50%;
display: block;
}
#div2{
width: 50%;
display: block;
}
推荐答案
只需输入两个超链接 -
Just put two hyperlinks-
<body>
<div id="div1"><a href="domain.com/hp1/index.html">1</a></div>
<div id="div2"><a href="domain.com/hp2/index.html">2</a></div>
</body>
请查看以下教程以获取进一步的信息 -
HTML链接 [ ^ ]
希望,它有帮助:)
Please check following tutorial for further infromation-
HTML Links[^]
Hope, it helps :)
这篇关于如何建立一个2个链接的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!