摘要:
val方法:<input type="text" value="洋酒" id="txt"/><script src="jquery-1.12.4.js"></script><script> $(function () { $("#txt").focus(function () { //如果是默认值, 阅读全文
摘要:
<style type="text/css"> html, body { margin: 0px; padding: 0px; width: 100%; height: 100%; font-family: "微软雅黑"; font-size: 62.5%; } .boxDom { width: 1 阅读全文
摘要:
<style> * { margin: 0; padding: 0; } ul { list-style: none; } .box { width: 600px; margin: 100px auto; border: 1px solid #000; padding: 20px; } textar 阅读全文
摘要:
<div id="box"> 我是内容</div><p class='des'>我是外面的p元素</p><script src="jquery-1.12.4.js"></script><script> $(function () { //创建jq对象 $("div").append('<a href 阅读全文
摘要:
<style> select { width: 200px; background-color: teal; height: 200px; font-size: 20px; } .btn-box { width: 30px; display: inline-block; vertical-align 阅读全文
摘要:
<style> ul { list-style: none; } * { margin: 0; padding: 0; } div { width: 1150px; height: 400px; margin: 50px auto; border: 1px solid red; overflow: 阅读全文
摘要:
<input type="button" value="开始"/><input type="button" value="结束"/><div id="btn"></div><script src="jquery-1.12.4.js"></script><script> $(function () { 阅读全文
摘要:
show():显示* hide():隐藏** slideDown():滑入* slideToggle():滑出** fadeIn():淡入* fadeOut():淡出* fadeToggle():切换 <div class="slider"> <ul> <li><a href="#"><img sr 阅读全文