一个简单的网页构造

在将样式表练习后做了一个最简单基础的网页,以最简单的元素构造,但是里面有很多小细节还是很值得去深入理解的~~

上代码了~~

HowTheWorld.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Apocalypse Now</title>
  <link rel="stylesheet" href="css/Howstyle.css">
  <!--[if It IE 9]
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
</head>

<body>
<article>
<header>
<hgroup>
<h1>How the World Could End</h1>
<p class="Teaser">Scenarios that spell the end of life as we know</p>
<p class="Byline">by Ray N. Carnation</p>
</hgroup>
</header>

<div class="Content">
<p><span class="LeadIn">Right now</span>, you're probably feeling pretty good. After all, life in
the developed world is comfortable<span class="style1">—</span>probably more comfortable than it's
been for the average human being throughout all of recorded history.</p>


 <div class="FloatFigure" >
<img src="img/2020.jpg" >
<p>This is the picture of my university Will you be the <br>last person standing if one of these ....</p>
</div> 
<!-- 将上面的以DIV写的改为专门用一个figure写的  -->


<!-- <figure class="FlaotFigure">
<img src="img/2020.jpg" >
<figcaption>Will you be the last person standing if one of these ....</figcaption>
</figure> -->

<!--  但是这个方式写出来的效果不能够应用,自己现在还不知道如何处理。。。。。先搁置。。。 -->

<p>But don't get too smug. There's still plenty of horrific ways it
could all fall apart. In this article, you'll learn about a few of our
favorites.</p>

<h2>Mayan Doomsday</h2>
<p>Skeptics suggest that the Mayan calendar simply rolls to a new
5,126-year era after 2012, and doesn't actually predict a life-ending
apocalypse. But given that the long-dead Mayans were wrong about
virtually everything else, why should we trust them on this?
</p>

<h2>Robot Takeover</h2>
<p>Not quite as frightening as a Vampire Takeover or Living-Dead
Takeover, a robot rebellion is still a disquieting thought. We are
already outnumbered by our technological gadgets, and even Bill Gates
fears the day his Japanese robot slave turns him over by the ankles
and asks (in a suitably robotic voice) "Who's your daddy now?"
</p>


<aside class="PullQuote">
	<img src="img/q_start.png">
	I am 面朝大海#哈哈...
	We don't know how the universe started, so we can't be sure it won't
   just end, maybe today.
    <img src="img/q_end.png">
</aside>

<h2>Unexplained Singularity</h2>
<!-- <p>We don't know how the universe started, so we can't be sure it won't
just end, maybe today, and maybe with nothing more exciting than a
puff of anti-matter and a slight fizzing noise.</p> -->
<p>and maybe with nothing more exciting than a
    puff of anti-matter and a slight fizzing noise.</p>

<h2>Runaway Climate Change</h2>
<p>Dismissed by some, Al Gore's prophecy of doom may still come true. If
it does, we may have to contend with vicious storms, widespread food
shortages, and surly air conditioning repairmen.</p>

<h2>Global Epidemic</h2>
<p>Some time in the future, a lethal virus could strike. Predictions
differ about the source of the disease, but candidates include
monkeys in the African jungle, bioterrorists, birds and pigs with the
flu, warriors from the future, an alien race, hospitals that use too
many antibiotics, vampires, the CIA, and unwashed brussel sprouts.
Whatever the source, it's clearly bad news.
</p>

</div>
</article>

<div class="Footer">
<p class="Disclaimer">These apocalyptic predictions do not reflect the views of the
author.</p>
<p>
<a href="AboutUs.html">About Us</a>
<a href="Disclaimer.html">Disclaimer</a>
<a href="ContactUs.html">Contact Us</a>
</p>
<p>Copyright © 2014</p>
</div>
</body>
</html>

 样式表:

Howstyle.css

@charset "utf-8";

article, aside, figure, figure, figcaption, footer, header, hgroup, nav, section, summary {
	display: block;
}

html, body {
	padding: 0;
	margin: 0l
}
header {
	background: #7695FE;
	text-align: center;
	border: thin #336699 solid;
	padding: 10px;
	margin: 10px;
}
header h1 {
	margin: 0px;
	color: white;
	font-size: xx-large;
	font-family: Garamond, serif;
}
header p {
	color: black;
	font-weight: 10px;
}
header .Teaser {
	margin: 0px;
	font-weight: bold;
}
header .Byline {
	margin: 0px;
	font-style: italic;
	font-size: small;

}
.Content {
	font-size: medium;
	font-family: Cambria, Cochin, Georgia, "Times New Roman", Times, serif;
	padding-top: 20px;
	padding-right: 50px;
	padding-bottom: 5px;
	padding-left: 50px;
	line-height: 120%;
}
.Content .LeadIn {
	font-variant: small-caps;
	font-size: large;
	font-weight: bold;

}
.Content h2 {
	color:#7695FE;
	margin-bottom: 2px;
	font-size: medium; 
}
.Content p {
	margin-top: 0px;
}
.Footer {
	text-align: center;
	font-size: x-small;
}
.Footer p {
	margin: 3px;
}
.Footer .Disclaimer {
	font-style: italic;
}
.FloatFigure {
	float: left;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 20px;
	margin-bottom: 0px;
}
.FloatFigure figcaption {
	max-width: 200px;
	font-size: small;
	font-style: italic;
	margin-bottom: 5px;
	color: #F08B24;

}
.FloatFigure p {
	font-size: 20px;
	font-weight: bold;
	font-style: italic;
	color: #36A2F0;
}
.PullQuote {
	float: right;
	max-width: 300px;
	border-top: thin green solid;
	border-bottom: thick green solid;
	font-size: 25px;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-left: 15px;
	margin-top: 10px;
	background: #FCFEFB;
	color: #F8AF24;
}
.PullQuote img {
	vertical-align: bottom;
}

 运行效果图:

转载于:https://www.cnblogs.com/haixiaomei/p/5020613.html

CSDN海神之光上传的代码均可运行,亲测可用,直接替换数据即可,适合小白; 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b或2023b;若运行有误,根据提示修改;若不会,私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开main.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可私信博主或扫描博客文章底部QQ名片; 4.1 博客或资源的完整代码提供 4.2 期刊或参考文献复现 4.3 Matlab程序定制 4.4 科研合作 功率谱估计: 故障诊断分析: 雷达通信:雷达LFM、MIMO、成像、定位、干扰、检测、信号分析、脉冲压缩 滤波估计:SOC估计 目标定位:WSN定位、滤波跟踪、目标定位 生物电信号:肌电信号EMG、脑电信号EEG、心电信号ECG 通信系统:DOA估计、编码译码、变分模态分解、管道泄漏、滤波器、数字信号处理+传输+分析+去噪(CEEMDAN)、数字信号调制、误码率、信号估计、DTMF、信号检测识别融合、LEACH协议、信号检测、水声通信 1. EMD(经验模态分解,Empirical Mode Decomposition) 2. TVF-EMD(时变滤波的经验模态分解,Time-Varying Filtered Empirical Mode Decomposition) 3. EEMD(集成经验模态分解,Ensemble Empirical Mode Decomposition) 4. VMD(变分模态分解,Variational Mode Decomposition) 5. CEEMDAN(完全自适应噪声集合经验模态分解,Complementary Ensemble Empirical Mode Decomposition with Adaptive Noise) 6. LMD(局部均值分解,Local Mean Decomposition) 7. RLMD(鲁棒局部均值分解, Robust Local Mean Decomposition) 8. ITD(固有时间尺度分解,Intrinsic Time Decomposition) 9. SVMD(逐次变分模态分解,Sequential Variational Mode Decomposition) 10. ICEEMDAN(改进的完全自适应噪声集合经验模态分解,Improved Complementary Ensemble Empirical Mode Decomposition with Adaptive Noise) 11. FMD(特征模式分解,Feature Mode Decomposition) 12. REMD(鲁棒经验模态分解,Robust Empirical Mode Decomposition) 13. SGMD(辛几何模态分解,Spectral-Grouping-based Mode Decomposition) 14. RLMD(鲁棒局部均值分解,Robust Intrinsic Time Decomposition) 15. ESMD(极点对称模态分解, extreme-point symmetric mode decomposition) 16. CEEMD(互补集合经验模态分解,Complementary Ensemble Empirical Mode Decomposition) 17. SSA(奇异谱分析,Singular Spectrum Analysis) 18. SWD(群分解,Swarm Decomposition) 19. RPSEMD(再生相移正弦辅助经验模态分解,Regenerated Phase-shifted Sinusoids assisted Empirical Mode Decomposition) 20. EWT(经验小波变换,Empirical Wavelet Transform) 21. DWT(离散小波变换,Discraete wavelet transform) 22. TDD(时域分解,Time Domain Decomposition) 23. MODWT(最大重叠离散小波变换,Maximal Overlap Discrete Wavelet Transform) 24. MEMD(多元经验模态分解,Multivariate Empirical Mode Decomposition) 25. MVMD(多元变分模态分解,Multivariate Variational Mode Decomposition)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值