1. 重庆云诚科技 > 数码百科 >

〈web后端网页设计〉web网页设计代码

导读html网页设计:一个简单的登录界面代码!贡献用户名:【﹏懷念】 ,现在由重庆云诚科技小编为你探讨与【web后端网页设计】的相关内容!优质回答<!doctype html><html><head>...

今天我们来:有关〈web后端网页设计〉web网页设计代码,以下2个关于web后端网页设计的观点希望能帮助到您找到想要的答案。

html网页设计:一个简单的登录界面代码!

贡献用户名:【﹏懷念】 ,现在由重庆云诚科技小编为你探讨与【web后端网页设计】的相关内容!

优质回答<!doctype html>

<html>

<head>

<meta charset="utf-8">

<link href="main.css" type="text/css" rel="stylesheet">

<title>登陆界面</title>

</head>

<body>

<div class="login_ico">

<img src="images/login_ico.png">

</div>

<div class="login_putin">

<ul>

<li><input type="text" ></li>

<li><input type="password" ></li>

</ul>

</div>

<div class="login_btn">

<input type="submit" value="登陆">

</div>

</body>

</html>

样式 :

*{

margin:0;

padding:0;}

li{

list-style-type:none;

margin:0;

padding:0;}

a{

text-decoration:none;

color:#000;}

/*---------------------按钮-----------------------------*/

.login_putin ul li input{

margin: 0;

width:70%;

padding: 1em 2em 1em 5.4em;

-webkit-border-radius:.3em;

-moz-border-radius: .3em;

border: 1px solid #999;

}

.login_btn{

width:300px;

margin:40px auto 0 auto;

}

.login_btn input{

width:100%;

margin:0;

padding:.5em 0;

-webkit-border-radius:.3em;

-moz-border-radius: .3em;

border:#1263be solid 1px;

background:#1b85fd;

color:#FFF;

font-size:17px;

font-weight:bolder;

letter-spacing:1em;

}

.login_btn input:hover{

background:#1263be;

}

以上就是重庆云诚科技小编解答(﹏懷念)回答关于“html网页设计:一个简单的登录界面代码!”的答案,接下来继续为你详解投稿用户(毁你)解答“有谁可以告诉我web网页制作中通过三个按钮控制页面上的一段文字放大,缩小,恢复到原始大小的代码?”的一些相关解答,希望能解决你的问题!

html网页设计:一个简单的登录界面代码!

有谁可以告诉我web网页制作中通过三个按钮控制页面上的一段文字放大,缩小,恢复到原始大小的代码?

贡献用户名:【毁你】 ,现在由重庆云诚科技小编为你解答与【web后端网页设计】的相关内容!

优质回答先下载jquery-1.2.6.pack.js,包含到文件中

<div class="fsize">

<h3><em>Enlarge</em><span>Font-size:12px</span><strong>Small</strong></h3>

<div>

<p>

Andy Moor – Fake Awake (Eco mix) (Anjunabeats)

Humate – Love Stimulation (Glenn Morrison & Bruce Aisher mix) (Poker Flat

</p>

</div>

</div>

<div class="fsize">

<h3><em>Enlarge</em><span>Font-size:12px</span><strong>Small</strong></h3>

<div>

<p>

Andy Moor – Fake Awake (Eco mix) (Anjunabeats)

Humate – Love Stimulation (Glenn Morrison & Bruce Aisher mix) (Poker Flat

</p>

</div>

</div>

样式CSS:

.fsize{ border:1px solid #444; margin:10px; height:auto;}

.fsize div p{ line-height:1.5em; padding:10px;}

.fsize h3{ font-size:12px; font-weight:500; height:24px; text-align:right; padding:0 10px; line-height:24px; background:#f0f0f0; display:block;}

.fsize h3 em,

.fsize h3 strong{ font-weight:500; color:#c00; font-style:normal; cursor:pointer;}

.fsize h3 em,

.fsize h3 span{ float:left; margin-right:6px; text-align:left;}

脚本JS:

<!--先要链接上JQ库 我们这个例子是基于Jquery的-->

<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>

下面是脚本:

$(document).ready(function(){

//字体变大 class为.fsize 的h3 下的 em 元素被点击时:

$(".fsize h3").find("em").click(function(){

//算出h3 下面的 div 中的 p 的字号

var size=parseInt( $(this).parent().next("div").find("p").css("font-size"),10);

//最大为22号字

if(size<22)

{

//字号累加2

size+=2;

//用h3中的span 标签显示当前字号

$(this).next("span").html("Font-size:"+size+"px");

//重新定义调整过的字号

$(this).parent().next("div").find("p").css({"font-size":size+"px"});

}else

{

//大于22号时提示这已经是最大了

$(this).next("span").html("This is the MAX font-size already!");

}

})

//字体变小原理与变大基本相同 注意size 应该是局部变量每次都要算

$(".fsize h3").find("strong").click(function(){

var size=parseInt( $(this).parent().next("div").find("p").css("font-size"),10);

//最小为12

if(size>12)

{

size-=2;

$(this).prev("span").html("Font-size:"+size+"px");

$(this).parent().next("div").find("p").css({"font-size":size+"px"})

}else

{

//提示当前已经是最小

$(this).prev("span").html("This is the MIN font-size already!");

}

})

//离开时仍然显示字号

$(".fsize").mouseout(function(){

var size=$(this).find("div").find("p").css("font-size");

$(this).find("h3 span").html("Font-size:"+size);

})

})

最后,你如何评价[web后端网页设计]?欢迎下面互动!想了解更多精彩内容,快来关注本站吧。

推荐文章:

  • 管家婆一句赢钱料图
  • 两肖两码准
  • 今期香港挂挂牌生肖表
  • 小鱼儿特马站
  • 平心静气打一生肖数字
  • 马会传真2019特马
  • 管家婆三十码
  • 管家婆登陆官网
  • u7金牛版
  • 平特一尾什么意思
  • 本文由网上采集发布,不代表我们立场,转载联系作者并注明出处:https://www.cqycseo.com/kangadmin/makehtml_archives_action.php?endid=0&startid=-1&typeid=15&totalnum=6115&startdd=2040&pagesize=20&seltime=0&sstime=1679321406&stime=&etime=&uptype=&mkvalue=0&isremote=0&serviterm=

    联系我们

    在线咨询:点击这里给我发消息

    微信号:

    工作日:9:30-18:30,节假日休息