1. 重庆云诚科技 > 互联网资讯 >

┏ html创建框架网页 ┛HTML创建网页

导读用html做一个简单网页本文最佳回答用户:【崽崽酱】 ,现在由重庆云诚科技小编为你分析与【html创建框架网页】的相关内容!优质回答<!DOCTYPE html><html><head><meta charset...

今天我们来聊聊[html创建框架网页],以下2个是关于html创建框架网页的观点,希望能帮助到您找到想要的,更多HTML创建网页相关的资讯继续关注本站。

用html做一个简单网页

本文最佳回答用户:【崽崽酱】 ,现在由重庆云诚科技小编为你分析与【html创建框架网页】的相关内容!

优质回答<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>菜鸟教程(runoob.com)</title>

<style>

div.img {

margin: 5px;

border: 1px solid #ccc;

float: left;

width: 180px;

}

div.img:hover {

border: 1px solid #777;

}

div.img img {

width: 100%;

height: auto;

}

div.desc {

padding: 15px;

text-align: center;

}

</style>

</head>

<body>

<div class="responsive">

<div class="img">

<a target="_blank" href="//static.runoob.com/images/demo/demo1.jpg">

<img src="//static.runoob.com/images/demo/demo1.jpg" alt="图片文本描述" width="300" height="200">

</a>

<div class="desc">这里添加图片文本描述</div>

</div>

</div>

<div class="responsive">

<div class="img">

<a target="_blank" href="//static.runoob.com/images/demo/demo2.jpg">

<img src="//static.runoob.com/images/demo/demo2.jpg" alt="图片文本描述" width="300" height="200">

</a>

<div class="desc">这里添加图片文本描述</div>

</div>

</div>

<div class="responsive">

<div class="img">

<a target="_blank" href="//static.runoob.com/images/demo/demo3.jpg">

<img src="//static.runoob.com/images/demo/demo3.jpg" alt="图片文本描述" width="300" height="200">

</a>

<div class="desc">这里添加图片文本描述</div>

</div>

</div>

<div class="responsive">

<div class="img">

<a target="_blank" href="//static.runoob.com/images/demo/demo4.jpg">

<img src="//static.runoob.com/images/demo/demo4.jpg" alt="图片文本描述" width="300" height="200">

</a>

<div class="desc">这里添加图片文本描述</div>

</div>

</div>

</body>

</html>

上文就是重庆云诚科技小编分享贡献者:(崽崽酱)贡献的关于“用html做一个简单网页”的问题了,不知是否已经解决你的问题?如果没有,下一篇内容可能是你想要的答案,接下来继续热议下文用户【轻枕衣袖梦南柯】分析的“如何用html制作一个网页”的一些相关疑问做出分析与解答,如果能找到你的答案,可以关注本站。

用html做一个简单网页

如何用html制作一个网页

本文最佳回答用户:【轻枕衣袖梦南柯】 ,现在由重庆云诚科技小编为你讲解与【html创建框架网页】的相关内容!

优质回答1,打开记事本,并在其中输入必要信息,完整代码如下:

<!DOCTYPE html><html><head> <meta charset="utf-8"> <title></title>

<body><header><img src="molihua.jpg"width="412" height="291"</header> <article> <header> <h2>茉莉花</h2> <p>作者:宋 · 刘克庄 </p> </header> <hr/> <p>曾与瑶姬约。恍相逢、翠裳摇曳,珠韝联络。风露青冥非人世,揽结玉龙骖鹤。

爱万朵、千条纤弱。

祷祝花神怜惜取,问开时、晴雨须斟酌。枝上雪,莫消却。

恼人匹似中狂药。

凭危栏、烛光交映,乐声遥作。身上春衫香薰透,看到参横月落。

算茉莉、犹低一著。坐有缑山王郎子,倚玉箫、度曲难为酢。君不饮,铸成错。</p> <h3>清平乐</h3> <p>冰轮万里。云卷天如洗。先向海山生大士。却诞卯金之子。冰盆荔子堪尝。胆瓶茉莉尤香。震旦人人炎热,补陀夜夜清凉。</p><dl> <dt>《浣溪沙》</dt> <dd>南国幽花比并香。直从初夏到秋凉</dd> <dt>《鹧鸪天》</dt> <dd>携靓侣,泛轻航。棹歌惊起野鸳鸯</dd> <dt>《真珠帘》</dt><dd>茉莉芰荷香,拍满笙箫院。</dd>

</dl></article> <footer>2019.9.6</footer> </body></html>

启动浏览器运行后,大家会发现界面并不美观,文字看着也比较乱。

为了解决这个问题,可以在界面添加css规则,让界面更好看,更标准化,将下面的代码块添加到记事本中,位置在<head>和<head/>也就是头部之间:

<style type="text/css">body{ background:gray;} h2{ text-align:center;} header{ text-align:center; } article p{ text-indent:2em; } footer{ font-size:12px; font-align:center; } </style>

再次保存和预览,是不是看着美观多了

最后,你如何评价[html创建框架网页]?欢迎下面互动!想了解更多精彩内容,快来关注本站吧。

推荐文章:

  • 膜的组词和部首,膜的组词和拼音是什么
  • 亲字组词100个 亲字的组词有
  • 酬谢是什么意思,定当酬谢是什么意思
  • 异的组词和部首,株的组词和部首
  • 箭组词和拼音 耸组词和拼音部首
  • 有志不在年高的意思-有志不在年高的意思雨来表达了
  • 繁衍的意思 繁衍的意思简单解释
  • 彤组词,胀组词和拼音
  • 血泊的拼音 泊的拼音
  • 螺组词拼音 螺的组词和拼音
  • 本文由网上采集发布,不代表我们立场,转载联系作者并注明出处:https://www.cqycseo.com/zixun/2099.html

    联系我们