html 重置按钮如何用

html 重置按钮如何用,第1张

在需要添加的地方输入

<input type="reset" name="button" id="button" value="重置" />

就好了

不过现在做网页很少使用重置按钮

html页面如下:

 

<div class="wrapper"> 

<div id="focus"> 

<ul> 

<li><a href="http://www.lanrentuku.com/" target="_blank"><img src="img/01.jpg" alt="QQ商城焦点图效果下载" /></a></li> 

<li><a href="http://www.lanrentuku.com/" target="_blank"><img src="img/02.jpg" alt="QQ商城焦点图效果教程" /></a></li> 

<li><a href="http://www.lanrentuku.com/" target="_blank"><img src="img/03.jpg" alt="jquery商城焦点图效果" /></a></li> 

<li><a href="http://www.lanrentuku.com/" target="_blank"><img src="img/04.jpg" alt="jquery商城焦点图代码" /></a></li> 

<li><a href="http://www.lanrentuku.com/" target="_blank"><img src="img/05.jpg" alt="jquery商城焦点图源码" /></a></li> 

</ul> 

</div> 

</div><!-- wrapper end --> 

</body>

css样式:

 

<style type="text/css"> 

* {margin:0 padding:0} 

body {font-size:12px color:#222 font-family:Verdana,Arial,Helvetica,sans-serif background:#f0f0f0} 

.clearfix:after {content: "." display: block height: 0 clear: both visibility: hidden} 

.clearfix {zoom:1} 

ul,li {list-style:none} 

img {border:0} 

.wrapper {width:800px margin:0 auto padding-bottom:50px} 

/* qqshop focus */ 

#focus {width:800px height:280px overflow:hidden position:relative} 

#focus ul {height:380px position:absolute} 

#focus ul li {float:left width:800px height:280px overflow:hidden position:relative background:#000} 

#focus ul li div {position:absolute overflow:hidden} 

#focus .btnBg {position:absolute width:800px height:20px left:0 bottom:0 background:#000} 

#focus .btn {position:absolute width:780px height:10px padding:5px 10px right:0 bottom:0 text-align:right} 

#focus .btn span {display:inline-block _display:inline _zoom:1 width:25px height:10px _font-size:0 margin-left:5px cursor:pointer background:#fff} 

#focus .btn span.on {background:#fff} 

#focus .preNext {width:45px height:100px position:absolute top:90px background:url(img/sprite.png) no-repeat 0 0 cursor:pointer} 

#focus .pre {left:0} 

#focus .next {right:0 background-position:right top} 

</style>

可以通过样式来设置:

你可先给你的按钮设置一个class,比如:class="btn";

方法有3种:

1.如果有你外链样式表你可以在样式表征

.btn{

width:200px

height:50px

}

2.如果没有连接你直接上头部加上

<style type="text/css">

.btn{

width:200px

height:50px

}

</style>

3.你可以直接在按钮上加比如:

<button style="width:200pxheight:50px">按钮</button>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/7029190.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-31
下一篇 2023-03-31

发表评论

登录后才能评论

评论列表(0条)

保存