7wu1wm0 发表于 2024-6-29 11:32:34

简单的HTML静态网页制作


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH3MXibRG9umiaGTEdh0aX8kEZDtTQeFXMj6G87dX98dvneXY7Haiba9d0d8yVER7mAkAyeYba5H1Haiag/0?wx_fmt=gif&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">今天这篇是一位群里的<span style="color: black;">程序猿</span><span style="color: black;">朋友</span>来投稿了,谢谢<span style="color: black;">大众</span>的支持!</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Html<span style="color: black;">是一门标签型的编程语言,和</span>C<span style="color: black;">语言和</span>java<span style="color: black;">等知名语言<span style="color: black;">同样</span>,运用广泛,<span style="color: black;">况且</span>简单,简单到什么程度呢,<span style="color: black;">博主</span>只用了一下午时间,就学会了<span style="color: black;">各样</span>标签的<span style="color: black;">运用</span>和我网站的静态页面搭建,下面,用例子<span style="color: black;">来讲</span>话:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH1NII1ryibFCfHFVgIaiayHicQM3icBT2AuDHnicvLH5Z2wjtHt9Y037UG5BmNx1icUNCicKRdic5ysWoQuNQ/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH1NII1ryibFCfHFVgIaiayHicQibrgfhYODC4TicMK1toYVP6PqbHQQ2ymMeOlQ4u0Th1xHQKkHBCWsCAA/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这个页面,<span style="color: black;">运用</span>的只是</span><span style="color: black;">html</span><span style="color: black;">里面的框架标签,以及</span><span style="color: black;">div</span><span style="color: black;">标签等简单标签,这是一个比较老的<span style="color: black;">招数</span>,<span style="color: black;">然则</span>很简单,<span style="color: black;">大众</span><span style="color: black;">能够</span>看到,这个简单的页面,其实和百度云的页面效果类似,<span style="color: black;">不外</span>别人的前端界面做得更好,框架<span style="color: black;">区别</span>罢了,听不懂?<span style="color: black;">不碍事</span>,<span style="color: black;">此刻</span>,我来教<span style="color: black;">大众</span><span style="color: black;">怎样</span>做<span style="color: black;">这般</span>一个界面</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">首要</span>,<span style="color: black;">咱们</span>的<span style="color: black;">研发</span><span style="color: black;">并不</span><span style="color: black;">必须</span>什么编译器,只<span style="color: black;">必须</span>一个简单的</span>TXT<span style="color: black;">文件,啥是</span>TXT<span style="color: black;">文件呢?文本文档咯,还不<span style="color: black;">晓得</span>?那还是算了</span>(<span style="color: black;">⊙﹏⊙</span>)b</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">新建一个记事本,<span style="color: black;">咱们</span><span style="color: black;">能够</span><span style="color: black;">起始</span><span style="color: black;">咱们</span>的装逼之旅了</span>O(<span style="color: black;">∩</span>_<span style="color: black;">∩</span>)O~</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH1NII1ryibFCfHFVgIaiayHicQ6Ekbq39a7WjHO230eu0e6SUp90MMzMCgTZ6aShacFvljQ8WlJ3mxEQ/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;html&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;head&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;meta charset="UTF-8"&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;title&gt;主页&lt;/title&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/head&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frameset rows="250,*"&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frame name="top" src="1.jpg"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frameset cols="120,*"&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frame name="left" src="1.html"&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frame name="right" src="2.html"&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/frameset&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/frameset&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/html&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">以上,是刚才<span style="color: black;">第1</span>个页面的代码,是不是很简单呢?短短的几行代码,就有这个效果了,好了,我来分析一下这个代码,走起</span>~</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH0Cmhmeo9QpoMThVJsoTSPZyWOwqybvicCGibB39g9pfEJ8icoiaSkY9KYIq0GUGaSa5XqqaLsiboOWCjg/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Html</span><span style="color: black;">语言,有自己<span style="color: black;">必定</span>的规范,<span style="color: black;">通常</span><span style="color: black;">状况</span>,分为几个部分</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;html&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;head&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;title&gt;XXX&lt;/title&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/head&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;body&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/body&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;/html&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">咱们</span>的代码,就在</span>&lt;html&gt;&lt;/html&gt;<span style="color: black;">两个标签中间写,而</span>&lt;head&gt;&lt;/head&gt;<span style="color: black;">标签,写的是执行<span style="color: black;">有些</span>关于标题<span style="color: black;">或</span>页面的<span style="color: black;">关联</span>信息的代码,</span>&lt;body&gt;&lt;/body&gt;<span style="color: black;">里面基本才是页面内容,</span><span style="color: black;">&lt;title&gt;XXX&lt;/title&gt;</span><span style="color: black;">这个标签,则为页面的名字,XXX<span style="color: black;">能够</span>随意更改</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH3icDufVFpwznOTdy831gWB63d8jWkkHmgaBQuA7vSsyD5JlBrDlbAebnhoJZTAOic1LxBuy8eWl7Sg/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></span><strong style="color: blue;"><span style="color: black;">框架部分</span></strong></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">首要</span>,</span>html<span style="color: black;">语言,标签<span style="color: black;">通常</span>都是成对<span style="color: black;">显现</span>的,什么是标签呢?标签<span style="color: black;">表率</span>着<span style="color: black;">各样</span>功能,例如:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frameset rows=”250,*”&gt;&lt;/frameset&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">大<span style="color: black;">都数</span>标签,都是像<span style="color: black;">这般</span>,前面有了</span>frameset<span style="color: black;">后面就要有个</span>/frameset<span style="color: black;">,<span style="color: black;">况且</span>小写书名号<span style="color: black;">不可</span>丢,这个<span style="color: black;">便是</span>标签,</span>frameset<span style="color: black;">的意思是,页面的<span style="color: black;">全部</span>框架,设定为,后面参数</span>rows=<span style="color: black;">“</span>250<span style="color: black;">,</span>*<span style="color: black;">”意思是,<span style="color: black;">咱们</span>这个网页,就按行分,分成两个部分,第一个在上面,占了</span>250<span style="color: black;">的空间,</span>*<span style="color: black;">号指剩下的空间<span style="color: black;">所有</span>分给下一部分,<span style="color: black;">这般</span>,<span style="color: black;">咱们</span>的页面,就有了刚才的上下结构</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;frameset cols="120,*"&gt;</span> &lt;/frameset&gt;<span style="color: black;">这个,同理,<span style="color: black;">便是</span>设置<span style="color: black;">上下</span>结构了,<span style="color: black;">这般</span>,<span style="color: black;">咱们</span>的页面框架就大概成型了</span></p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;"><strong style="color: blue;"><span style="color: black;">定位部分</span></strong></h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frame name="top" src="1.jpg"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frame name="left" src="1.html"&gt;&nbsp;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">&lt;frame name="right" src="2.html"&gt;&nbsp;</p>
    <h2 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">&nbsp; &nbsp; &nbsp;<span style="color: black;">这儿</span>的三句话,是在上面</span>frameset<span style="color: black;">之后,对划分的各部分进行命名,<span style="color: black;">或</span>进行<span style="color: black;">有些</span>操作,<span style="color: black;">第1</span>句,写在了<span style="color: black;">第1</span>个</span>frameset<span style="color: black;">之后,<span style="color: black;">暗示</span>,划分的那个上部(即</span>250<span style="color: black;">的那部分)名<span style="color: black;">叫作</span>为</span>top<span style="color: black;">,并且<span style="color: black;">表示</span></span>1.jpg<span style="color: black;">这个<span style="color: black;">照片</span>文件的内容,后面依次类推,让页面的各块放进自己<span style="color: black;">爱好</span>的东西,这个页面,我左边的部分放的是叫</span>1.html<span style="color: black;">的这个网页文件,右边是</span>2.html<span style="color: black;">,<span style="color: black;">这般</span>,就实现了网页文件的<span style="color: black;">掰开</span>修改,<span style="color: black;">不消</span>牵一发而动全身!@@</span></h2>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH38WJLYSdgYlCncfl5MpLTsjImTvcEpib1XPPfQVR2gvatSsaLwvfsoMAqR4MqwE77sztATtcFdY7w/640?tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"><img src="http://mmbiz.qpic.cn/mmbiz/fG6fEWZ2PH1JG3p2YcawKpUNdopMD5An9Nib9RUGfwrToEy20KYlPXfY2LefreT8pfFIcnc5QiaO6fZt1fBUCtLg/640?wx_fmt=jpeg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></span></p>




b1gc8v 发表于 2024-10-1 05:22:15

谷歌外链发布 http://www.fok120.com/

1fy07h 发表于 2024-10-2 18:05:10

你的见解真是独到,让我受益匪浅。

1fy07h 发表于 2024-10-3 00:12:45

“沙发”(SF,第一个回帖的人)‌

7wu1wm0 发表于 2024-10-3 05:25:10

我完全赞同你的观点,思考很有深度。

nqkk58 发表于 2024-10-30 12:00:53

这夸赞甜到心里,让我感觉温暖无比。
页: [1]
查看完整版本: 简单的HTML静态网页制作