小白的移动端上的京东

移动端的京东动态首页
html代码如下:
jd

jd.com
  • 打开京东APP,购物更轻松
  • 立即打开
</header>
<!--头部 end-->
<!--search star-->
<div class="search">
	<div class="search-btn">
		<img src="images/s-btn.png" alt="" />
	</div>
	<div class="search-input"></div>
	<div class="search-login">登陆</div>
	
</div>
<!--search end-->
<!--轮播图-->
<div class="foucs">
	<ul>
		<li><img src="upload/focus3.jpg" alt="" /></li>
		<li><img src="upload/focus1.jpg" alt="" /></li>
		<li><img src="upload/focus2.jpg" alt="" /></li>
		<li><img src="upload/focus3.jpg" alt="" /></li>
		<li><img src="upload/focus1.jpg" alt="" /></li>
	</ul>
	<!-- 有序列表 -->
	<ol>
		<li class="current"></li>
		<li></li>
		<li></li>
	</ol>
</div>
	<ul class="news">
		<li><img src="upload/pic11.dpg"/></li>
		<li><img src="upload/pic22.dpg"/></li>
		<li><img src="upload/pic33.dpg"/></li>
	</ul>
<ul class="you">
	<li><img src="upload/1.png"/><p>京东超市</p></li>
	<li><img src="upload/2.png"/><p>数码电器</p></li>
	<li><img src="upload/3.png"/><p>京东服饰</p></li>
	<li><img src="upload/4.png"/><p>京东生鲜</p></li>
	<li><img src="upload/5.png"/><p>京东到家</p></li>
	<li><img src="upload/6.png"/><p>充值缴费</p></li>
	<li><img src="upload/7.png"/><p>9.9元拼</p></li>
	<li><img src="upload/8.png"/><p>领券</p></li>
	<li><img src="upload/9.png"/><p>借钱</p></li>
	<li><img src="upload/10.png"/><p>PLUS会员</p></li>
</ul>
<div class="dd">
	<div class="secondkill" al>
       <h2>京东秒杀</h2>
	   <h2>距离活动结束还有</h2>
	   <div class="cc">
		   <div class="h"><input type="text" id="h1" size="3" height="30px"  style= "background-color:transparent " ></div>
		   <div class="m"><input type="text" id="m1" size="3" height="30px"  style= "background-color:transparent "></div>
		   <div class="s"><input type="text" id="s1" size="3" height="30px"  style= "background-color:transparent "></div>
	   </div>
	   
    </div>
</div>
   
<footer>
	<ul>
		<li>
			<div class="imgs"></div>
			<p>首页</p>
		</li>
		<li>
			<div class="imgs"></div>
			<p>分类</p>
		</li>
		<li>
			<div class="imgs"></div>
			<p>京喜</p>
		</li>
		<li>
			<div class="imgs"></div>
			<p>购物车</p>
		</li>
		<li>
			<div class="imgs"></div>
			<p>未登录</p>
		</li>
	</ul>

</footer>

css部分:
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */

/**

    1. Change the default font family in all browsers (opinionated).
    1. Correct the line height in all browsers.
    1. Prevent adjustments of font size after orientation changes in
  • IE on Windows Phone and in iOS.
    */

/* Document
========================================================================== */

html {
font-family: sans-serif; /* 1 /
line-height: 1.15; /
2 /
-ms-text-size-adjust: 100%; /
3 /
-webkit-text-size-adjust: 100%; /
3 */
}

/* Sections
========================================================================== */

/**

  • Remove the margin in all browsers (opinionated).
    */

body {
margin: 0;
}

/**

  • Add the correct display in IE 9-.
    */

article,
aside,
footer,
header,
nav,
section {
display: block;
}

/**

  • Correct the font size and margin on h1 elements within section and
  • article contexts in Chrome, Firefox, and Safari.
    */

h1 {
font-size: 2em;
margin: 0.67em 0;
}

/* Grouping content
========================================================================== */

/**

  • Add the correct display in IE 9-.
    1. Add the correct display in IE.
      */

figcaption,
figure,
main { /* 1 */
display: block;
}

/**

  • Add the correct margin in IE 8.
    */

figure {
margin: 1em 40px;
}

/**

    1. Add the correct box sizing in Firefox.
    1. Show the overflow in Edge and IE.
      */

hr {
box-sizing: content-box; /* 1 /
height: 0; /
1 /
overflow: visible; /
2 */
}

/**

    1. Correct the inheritance and scaling of font size in all browsers.
    1. Correct the odd em font sizing in all browsers.
      */

pre {
font-family: monospace, monospace; /* 1 /
font-size: 1em; /
2 */
}

/* Text-level semantics
========================================================================== */

/**

    1. Remove the gray background on active links in IE 10.
    1. Remove gaps in links underline in iOS 8+ and Safari 8+.
      */

a {
background-color: transparent; /* 1 /
-webkit-text-decoration-skip: objects; /
2 */
}

/**

  • Remove the outline on focused links when they are also active or hovered
  • in all browsers (opinionated).
    */

a:active,
a:hover {
outline-width: 0;
}

/**

    1. Remove the bottom border in Firefox 39-.
    1. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
      */

abbr[title] {
border-bottom: none; /* 1 /
text-decoration: underline; /
2 /
text-decoration: underline dotted; /
2 */
}

/**

  • Prevent the duplicate application of bolder by the next rule in Safari 6.
    */

b,
strong {
font-weight: inherit;
}

/**

  • Add the correct font weight in Chrome, Edge, and Safari.
    */

b,
strong {
font-weight: bolder;
}

/**

    1. Correct the inheritance and scaling of font size in all browsers.
    1. Correct the odd em font sizing in all browsers.
      */

code,
kbd,
samp {
font-family: monospace, monospace; /* 1 /
font-size: 1em; /
2 */
}

/**

  • Add the correct font style in Android 4.3-.
    */

dfn {
font-style: italic;
}

/**

  • Add the correct background and color in IE 9-.
    */

mark {
background-color: #ff0;
color: #000;
}

/**

  • Add the correct font size in all browsers.
    */

small {
font-size: 80%;
}

/**

  • Prevent sub and sup elements from affecting the line height in
  • all browsers.
    */

sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}

sub {
bottom: -0.25em;
}

sup {
top: -0.5em;
}

/* Embedded content
========================================================================== */

/**

  • Add the correct display in IE 9-.
    */

audio,
video {
display: inline-block;
}

/**

  • Add the correct display in iOS 4-7.
    */

audio:not([controls]) {
display: none;
height: 0;
}

/**

  • Remove the border on images inside links in IE 10-.
    */

img {
border-style: none;
}

/**

  • Hide the overflow in IE.
    */

svg:not(:root) {
overflow: hidden;
}

/* Forms
========================================================================== */

/**

    1. Change the font styles in all browsers (opinionated).
    1. Remove the margin in Firefox and Safari.
      */

button,
input,
optgroup,
select,
textarea {
font-family: sans-serif; /* 1 /
font-size: 100%; /
1 /
line-height: 1.15; /
1 /
margin: 0; /
2 */
}

/**

  • Show the overflow in IE.
    1. Show the overflow in Edge.
      */

button,
input { /* 1 */
overflow: visible;
}

/**

  • Remove the inheritance of text transform in Edge, Firefox, and IE.
    1. Remove the inheritance of text transform in Firefox.
      */

button,
select { /* 1 */
text-transform: none;
}

/**

    1. Prevent a WebKit bug where (2) destroys native audio and video
  • controls in Android 4.
    1. Correct the inability to style clickable types in iOS and Safari.
      */

button,
html [type=“button”], /* 1 /
[type=“reset”],
[type=“submit”] {
-webkit-appearance: button; /
2 */
}

/**

  • Remove the inner border and padding in Firefox.
    */

button::-moz-focus-inner,
[type=“button”]::-moz-focus-inner,
[type=“reset”]::-moz-focus-inner,
[type=“submit”]::-moz-focus-inner {
border-style: none;
padding: 0;
}

/**

  • Restore the focus styles unset by the previous rule.
    */

button:-moz-focusring,
[type=“button”]:-moz-focusring,
[type=“reset”]:-moz-focusring,
[type=“submit”]:-moz-focusring {
outline: 1px dotted ButtonText;
}

/**

  • Change the border, margin, and padding in all browsers (opinionated).
    */

fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}

/**

    1. Correct the text wrapping in Edge and IE.
    1. Correct the color inheritance from fieldset elements in IE.
    1. Remove the padding so developers are not caught out when they zero out
  • fieldset elements in all browsers.
    */

legend {
box-sizing: border-box; /* 1 /
color: inherit; /
2 /
display: table; /
1 /
max-width: 100%; /
1 /
padding: 0; /
3 /
white-space: normal; /
1 */
}

/**

    1. Add the correct display in IE 9-.
    1. Add the correct vertical alignment in Chrome, Firefox, and Opera.
      */

progress {
display: inline-block; /* 1 /
vertical-align: baseline; /
2 */
}

/**

  • Remove the default vertical scrollbar in IE.
    */

textarea {
overflow: auto;
}

/**

    1. Add the correct box sizing in IE 10-.
    1. Remove the padding in IE 10-.
      */

[type=“checkbox”],
[type=“radio”] {
box-sizing: border-box; /* 1 /
padding: 0; /
2 */
}

/**

  • Correct the cursor style of increment and decrement buttons in Chrome.
    */

type=“number”::-webkit-outer-spin-button {
height: auto;
}

/**

    1. Correct the odd appearance in Chrome and Safari.
    1. Correct the outline style in Safari.
      */

type=“search” {
-webkit-appearance: textfield; /* 1 /
outline-offset: -2px; /
2 */
}

/**

  • Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
    */

type=“search”::-webkit-search-decoration {
-webkit-appearance: none;
}

/**

    1. Correct the inability to style clickable types in iOS and Safari.
    1. Change font properties to inherit in Safari.
      */

::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 /
font: inherit; /
2 */
}

/* Interactive
========================================================================== */

/*

  • Add the correct display in IE 9-.
    1. Add the correct display in Edge, IE, and Firefox.
      */

details, /* 1 */
menu {
display: block;
}

/*

  • Add the correct display in all browsers.
    */

summary {
display: list-item;
}

/* Scripting
========================================================================== */

/**

  • Add the correct display in IE 9-.
    */

canvas {
display: inline-block;
}

/**

  • Add the correct display in IE.
    */

template {
display: none;
}

/* Hidden
========================================================================== */

/**

  • Add the correct display in IE 10-.
    */

[hidden] {
display: none;
}

body{
max-width: 640px;
min-width: 320px;

/* 根据设计稿而定 */
line-height: 1.5;
background: #fff;
font-size: 14px;
/* font-family: "bodoni mt black"; */
margin:0 auto;
height: 2000px;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Transformer 是一种强大的神经网络结构,广泛应用于自然语言处理领域,特别是在机器翻译任务中取得了很好的效果。下面是一个简单的 Transformer 模型,适合小白入门: 1. 输入嵌入层 Transformer 模型的输入是一个序列,比如文本句子或音频波形。为了能够把这个序列喂给神经网络,我们需要先对它进行嵌入(embedding)。嵌入层将每个输入元素(比如单词或音频样本)映射为一个高维向量,这个向量包含了这个元素的语义信息。 2. 位置编码层 由于 Transformer 模型是基于注意力机制的,它并没有像循环神经网络(RNN)或卷积神经网络(CNN)那样具有显式的位置信息。因此,在输入嵌入层之后,我们需要添加一个位置编码层,用于将输入序列中的每个元素与其位置相关联。 3. 编码器 编码器是 Transformer 模型的核心组件之一。它由多个相同的层组成,每层都包含两个子层: - 多头自注意力机制层(Multi-Head Self-Attention Layer):用于计算输入序列中每个元素与其他元素的相关性,以便在后续处理中更好地捕捉上下文信息。 - 前馈神经网络层(Feed-Forward Neural Network Layer):用于在每个位置上独立地处理输入向量,以便提取局部特征。 编码器的输出是一个新的序列,它将输入序列中的每个元素映射到一个新的表示空间中。 4. 解码器 解码器也是由多个相同的层组成的,每个层都包含两个子层: - 多头自注意力机制层(Multi-Head Self-Attention Layer):与编码器中的自注意力机制层类似,用于计算输入序列中每个元素与其他元素的相关性,以便在后续处理中更好地捕捉上下文信息。 - 多头注意力机制层(Multi-Head Attention Layer):用于计算输入序列与编码器输出序列之间的相关性,以便在解码器输出时引入上下文信息。 解码器的输出是一个新的序列,其中每个元素都表示一个目标语言的单词或音频样本。 5. 输出层 输出层将解码器输出序列中的每个元素映射为目标语言中的单词或音频样本。在机器翻译任务中,通常使用 Softmax 函数将输出向量转换为一个概率分布,然后选择概率最大的单词作为输出。 以上就是一个简单的 Transformer 模型的主要组件,希望能够帮助你入门 Transformer。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值