HTML5   发布时间:2022-04-25  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了一个html5页面的思考大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

<!DOCTYPE >

<HTML>

<HEAD>

<Meta charset="utf-8">
<Meta name="description" content="微单品">
<Meta name="keywords" content="微单品"><!-- uc强制竖屏 -->
<Meta name="screen-orientation" content="porTrait"><!-- QQ强制竖屏 -->
<Meta name="x5-orientation" content="porTrait"><!-- UC强制全屏 -->
<Meta name="full-screen" content="yes"><!-- QQ强制全屏 -->
<Meta name="x5-fullscreen" content="true"><!-- UC应用模式 -->
<Meta name="browsermode" content="application"><!-- QQ应用模式 -->
<Meta name="x5-page-mode" content="app"><!-- windows phone 点击无高光 -->

<Meta name="msapplication-tap-highlight" content="no"><!-- 适应移动端end -->


<Meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0">
<Meta name="format-detection" content="telephone=no,email=no,adress=no"><!--拨打电话邮箱和地址禁止--><titlE>微单品</titlE><LINK 
href="微单品_files/haodanpin.css" rel="stylesheet" type="text/css">
<SCRIPT src="微单品_files/jquery-1.7.2.min.js" type="text/javascript"></SCRIPT>


<Meta name="GENERATOR" content="MSHTML 11.00.9600.17728"></HEAD>
<BODY><HEADER></HEADER>
<DIV class="contaner">
<P class="img-Box"><IMG style="display: inline-block;" src="微单品_files/logo_haodanpin_1024.png"></P>
<DIV class="main-msg">
<FORM name="form" action="demo_form.PHP" method="get" autocomplete="on">
<P class="public"><!-- <input type="text" value="" placeholder="版本1.0" autofocus="autofocus" id="pub"  > --><SPAN>版本1.0</SPAN></P>
<DIV class="line"></DIV><!-- <div class="ygw"></div> -->
<DIV class="nw">
<DIV 
class="pable"><LABEL>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱:</LABEL><!-- <input value="" type="email" placeholder="moblie@99114.com"autofocus="autofocus" id="email"> --><SPAN>mobile@99114.com</SPAN></DIV>
<DIV class="pable"><LABEL>官方&nbsp;QQ群:</LABEL><!-- <input  type="text" value="" placeholder="339118955"autofocus="autofocus" id="qq"> --><SPAN>339118955</SPAN></DIV>
<DIV class="pable"><LABEL>官方微信号:</LABEL><!-- <input  type="text" value="" placeholder="wxbongv"autofocus="autofocus" id="wx"> --><SPAN>wxbongv</SPAN></DIV></DIV><!-- <div class="sub">提交</div> --><INPUT name="__hash__" type="hidden" value="4ee18551d7b633b89f21924988ed7444_d3ac8d751f634eb10fe03aef3230eece"></FORM></DIV>
<DIV class="tip-Box">
<DIV class="tip"></DIV></DIV></DIV><FOOTER class="footer">
<P>本产品解释权由帮微所有</P>
<P>www.bongv.com</P></FOOTER>
<SCRIPT type="text/javascript">$(document).ready(function(){
//提交验证
//1、邮箱验证》》》
//2、qq号码验证
//3、官方微信号验证
//4、好单品版本号验证
/*
var sub=$(".sub");
sub.on("click",function(){
var pub=$("#pub");
var pubTest=$.trim(pub.val());
var email=$("#email");
var textEmail=$.trim(email.val());
  var emailTest= /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
  var qq=$("#qq");
  var textQQ=$.trim(qq.val());
  var qqTest=/^[1-9]\d{4,8}$/ ;//5-10位数字
  var wx=$("#wx");
  var textWx=$.trim(wx.val());
  var tipArr=[
"版本内容不为空!",
"邮箱不能为空!",
"邮箱格式不对!",
"qq不能为空!",
"qq格式错误!",
"微信号不能为空!"
  ];


if(!pubTest){
//alert("版本内容不为空");
tip(tipArr[0]);
pub.focus();
return false;
}
if(!textEmail){
//alert("邮箱不能为空!!");
tip(tipArr[1]);
email.focus();
return false;
}else if(!emailTest.test(textEmail)){
  //alert("邮箱格式不对!");
  tip(tipArr[2]);
  email.focus();
  return false;
  }
  if(!textQQ){
  //alert("qq不能为空");
  tip(tipArr[3]);
  qq.focus();
  return false;
  }else if(!qqTest.test(textQQ)){
  //alert("qq格式错误");
  tip(tipArr[4]);
  qq.focus();
  return false;
  }
  if(!textWX){
  //alert("微信号不能为空!");
  tip(tipArr[5]);
  wx.focus();
  return false;
  }
  function tip(msg){
  var Box=$(".tip-Box").show();
  Box.find(".tip").html(msg);
  setTimeout(function(){
  Box.hide();
  Box.find(".tip").html("oUo");
  },1000);


  }
})*/
$('body').on('touchmove',function (event) {
    event.preventDefault();
});
 })
</SCRIPT>

</BODY></HTML>




css>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

body {
@H_902_58@margin: 0px; padding: 0px;
}
div {
@H_902_58@margin: 0px; padding: 0px;
}
dl {
@H_902_58@margin: 0px; padding: 0px;
}
dt {
@H_902_58@margin: 0px; padding: 0px;
}
dd {
@H_902_58@margin: 0px; padding: 0px;
}
ul {
@H_902_58@margin: 0px; padding: 0px;
}
ol {
@H_902_58@margin: 0px; padding: 0px;
}
li {
@H_902_58@margin: 0px; padding: 0px;
}
h1 {
@H_902_58@margin: 0px; padding: 0px;
}
h2 {
@H_902_58@margin: 0px; padding: 0px;
}
h3 {
@H_902_58@margin: 0px; padding: 0px;
}
h4 {
@H_902_58@margin: 0px; padding: 0px;
}
h5 {
@H_902_58@margin: 0px; padding: 0px;
}
h6 {
@H_902_58@margin: 0px; padding: 0px;
}
pre {
@H_902_58@margin: 0px; padding: 0px;
}
code {
@H_902_58@margin: 0px; padding: 0px;
}
form {
@H_902_58@margin: 0px; padding: 0px;
}
fieldset {
@H_902_58@margin: 0px; padding: 0px;
}
legend {
@H_902_58@margin: 0px; padding: 0px;
}
input {
@H_902_58@margin: 0px; padding: 0px;
}
textarea {
@H_902_58@margin: 0px; padding: 0px;
}
p {
@H_902_58@margin: 0px; padding: 0px;
}
blockquote {
@H_902_58@margin: 0px; padding: 0px;
}
th {
@H_902_58@margin: 0px; padding: 0px;
}
td {
@H_902_58@margin: 0px; padding: 0px;
}
table {
border-collapse: collapse; border-spacing: 0;
}
fieldset {
border: 0px currentColor; border-image: none;
}
img {
border: 0px currentColor; border-image: none;
}
address {
font-style: normal; font-weight: normal;
}
caption {
font-style: normal; font-weight: normal;
}
cite {
font-style: normal; font-weight: normal;
}
code {
font-style: normal; font-weight: normal;
}
dfn {
font-style: normal; font-weight: normal;
}
em {
font-style: normal; font-weight: normal;
}
strong {
font-style: normal; font-weight: normal;
}
th {
font-style: normal; font-weight: normal;
}
var {
font-style: normal; font-weight: normal;
}
ol {
list-style: none;
}
ul {
list-style: none;
}
caption {
text-align: left;
}
th {
text-align: left;
}
h1 {
font-size: 100%; font-weight: normal;
}
h2 {
font-size: 100%; font-weight: normal;
}
h3 {
font-size: 100%; font-weight: normal;
}
h4 {
font-size: 100%; font-weight: normal;
}
h5 {
font-size: 100%; font-weight: normal;
}
h6 {
font-size: 100%; font-weight: normal;
}
q::before {
content: "";
}
q::after {
content: "";
}
abbr {
border: 0px currentColor; border-image: none; font-variant: normal;
}
acronym {
border: 0px currentColor; border-image: none; font-variant: normal;
}
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
input {
font-family: inherit; font-size: inherit; font-weight: inherit;
}
textarea {
font-family: inherit; font-size: inherit; font-weight: inherit;
}
SELEct {
font-family: inherit; font-size: inherit; font-weight: inherit;
}
legend {
color: rgb(0,0);
}
.clear {
height: 0px; line-height: 0; overflow: hidden; clear: both; font-size: 0px;
}
.clearfix::after {
height: 0px; clear: both; display: block; visibility: hidden; content: ".";
}
* html .clearfix {
-ms-zoom: 1;
}
*:first-child + html .clearfix {
-ms-zoom: 1;
}
img {
display: block;
}
body {
color: rgb(0,0); font-family: "微软雅黑","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","WenQuanYi Micro Hei",sans-serif; font-size: 100%; -ms-overflow-y: hidden; min-width: 320px;
}
input {
font: 13.33px/normal "微软雅黑"; font-size-adjust: none; font-stretch: normal;
}
.contaner {
@H_902_58@margin: 0px auto; text-align: center; font-size: 14px; position: relative;
}
.img-Box {
@H_902_58@margin: 10% auto; text-align: center;
}
.img-Box img {
height: 100%; display: inline-block; max-width: 100%;
}
.line {
BACkground: url("./images/bg.png") repeat-x rgb(190,190,190); margin: 0px auto; border: currentColor; border-image: none; width: 80%; height: 1px; text-align: center;
}
.nw {
@H_902_58@margin-top: 20px; margin-bottom: 20px;
}
.footer {
@H_902_58@margin: 0px auto; width: 100%; text-align: center; bottom: 1%; color: rgb(81,78,78); font-size: 12px; position: absolute;
}
.public {
@H_902_58@margin: 2% auto;
}
.ygw {
@H_902_58@margin: 2% auto;
}
.pable {
width: 300px; height: 34px; text-align: center; line-height: 34px; display: inline-block;
}
.public input {
padding: 6px; border: currentColor; border-image: none; text-align: center;
}
.pable label {
padding: 6px; width: 78px; display: inline-block;
}
.pable span {
padding: 6px; width: 136px; text-align: left; color: rgb(0,0); text-decoration: none; display: inline-block;
}
.pable input {
padding: 6px; border: currentColor; border-image: none;
}
@media screen and (max-width:992pX) and (min-width:769pX)
{
.img-Box {
width: 200px; height: 200px;
}
}
@media screen and (max-width:768pX) and (min-width:641pX)
{
.img-Box {
width: 180px; height: 180px;
}
}
@media screen and (max-width:640pX) and (min-width:577pX)
{
.img-Box {
width: 160px; height: 160px;
}
}
@media screen and (max-width:576pX) and (min-width:481pX)
{
.img-Box {
width: 140px; height: 140px;
}
}
@media screen and (max-width:480pX) and (min-width:321pX)
{
.img-Box {
width: 120px; height: 120px;
}
}
@media screen and (max-width:320pX) and (min-width:300pX)
{
.img-Box {
width: 100px; height: 100px;
}
}
.sub {
BACkground: rgb(98,207,92); margin: 0px auto; border-radius: 4px; width: 160px; height: 44px; text-align: center; color: rgb(255,255,255); line-height: 44px; cursor: pointer;
}
.sub:link {
BACkground: rgb(6,4); border-radius: 4px;
}
.sub:visited {
BACkground: rgb(6,4); border-radius: 4px;
}
.sub:hover {
BACkground: rgb(6,4); border-radius: 4px;
}
.sub:active {
BACkground: rgb(6,4); border-radius: 4px;
}
.tip-Box {
BACkground: rgba(0,0.4); border-radius: 4px; left: 50%; top: 45%; width: 180px; height: 44px; text-align: center; color: rgb(255,255); line-height: 44px; font-size: 14px; margin-left: -90px; display: none; position: fixed;
}


主要的想法是:

一、

iphone上9位数字变成可打电话的电话号码》》》修改方法

<Meta name="format-detection" content="telephone=no,adress=no"><!--拨打电话邮箱和地址禁止-->

二、页面点击可放大禁用:

<Meta name="viewport" content="width=device-width,user-scalable=0">

三、css3横屏与竖屏:

/*横竖屏判断*/


@media all and (orientation : landscapE) {  /*竖着*/
                    /*body {   
                        BACkground-color: #ff0000;   
                    }  */
 }   
@media all and (orientation : porTrait){  /*横着*/
                   /* body {  
                        BACkground-color: #00ff00;  
                    }  
*/
}

四、css3media属性判断屏幕的大小修改图片的大小

@media screen and (max-width:992pX) and (min-width:769pX) { .img-Box { width: 200px; height: 200px; } } @media screen and (max-width:768pX) and (min-width:641pX) { .img-Box { width: 180px; height: 180px; } } @media screen and (max-width:640pX) and (min-width:577pX) { .img-Box { width: 160px; height: 160px; } } @media screen and (max-width:576pX) and (min-width:481pX) { .img-Box { width: 140px; height: 140px; } } @media screen and (max-width:480pX) and (min-width:321pX) { .img-Box { width: 120px; height: 120px; } } @media screen and (max-width:320pX) and (min-width:300pX) { .img-Box { width: 100px; height: 100px; } }

大佬总结

以上是大佬教程为你收集整理的一个html5页面的思考全部内容,希望文章能够帮你解决一个html5页面的思考所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。