2016年8月16日笔记

2016-08-17  本文已影响0人  zy01

jQuery mobile 写前端 jeuerymobile.com

                      css3 media
                      单页多用集合在一个页面中

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name ="viewport" //兼容各种设备
content="width=device-widht,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/> //宽度,缩放比例,最小缩放比例,用户是否缩放
<link rel="stylesheet" href="./js/jquery.mobile-1.4.5min.css">
<script src="./js/jquery.min.js"></script>
<script src="./js/jquery.mobile-1.4.5.min.js"></script>
<titel></titel>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>小店铺</h1>
</div>
<div data-role="main">
<form class="""action=""method="post">
<label for="inphone">手机</label>
<input type="text" name="tel" value="">
label for="inphone">密码</label>
<input type="password" name="pwd" value="">
<a href="#" class="ui-btn ui-shadow">确定</a>
<a href="#pageone" class="ui-btn" data-transition="slide">登陆</a>
</div>
<div data-role="main" class="ui-content">欢迎光临
</div>
</div>
<div data-role="footer" data-position="fixed">
<div data-role="naveber">
<ul>
<li><a href="#pageone" data-icon="home">家</a></li>
<li><a href="#pageone" data-icon="bars" data-transition="slide">按钮</a></li>
<li><a href="#pageone" data-icon="grid">面板</a></li>
</ul>
</div>
</div>
</div>

<div data-role="page" id ="pagetwo">
  <div data-role="header">
    <h1>登陆成功</h1>
    <a href="#pageone" data-role="button">logout</a>
    </div>
  </div>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>dddd</title>
</head>
<style type="text/css">
div{
#a{background:#cc0000}
#a{background:#cc0770}
#a{background:#cc0220}
#a{background:#cc0dd0}
}
</style>
<body>
<div id="a">a
<a href="#a">aaaaa</a>

<a href="#b">bbbbb</b>

<a href="#c">ccccc</c>

<a href="#d">ddddd</d>

</div>
<div id="b">a
<a href="#a">aaaaa</a>

<a href="#b">bbbbb</b>

<a href="#c">ccccc</c>

<a href="#d">ddddd</d>

</div>
<div id="c">a
<a href="#a">aaaaa</a>

<a href="#b">bbbbb</b>

<a href="#c">ccccc</c>

<a href="#d">ddddd</d>

</div>
<div id="d">a
<a href="#a">aaaaa</a>

<a href="#b">bbbbb</b>

<a href="#c">ccccc</c>

<a href="#d">ddddd</d>

</div>
<div id="a">a</div>
<div id="b">b</div>
<div id="c">c</div>
<div id="d">d</div>
</body>
</html>
手册 w3school.com.cn

上一篇下一篇

猜你喜欢

热点阅读