大佬教程收集整理的这篇文章主要介绍了一个html5页面的思考,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<!DOCTYPE >
<HTML>
<HEAD>
<Meta charset="utf-8"><Meta name="msapplication-tap-highlight" content="no"><!-- 适应移动端end -->
</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;
}
*/
}
@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,请注明来意。