
JavaScript案例
文章平均质量分 63
*初级小白*~
这个作者很懒,什么都没留下…
展开
-
小案例:可编辑框
1、HTML <div id="box"> <ul> <li> <span>点击修改</span> <input type="text" value="点击修改"> <p>修改</p> </li> <li>原创 2021-09-14 14:39:31 · 68 阅读 · 0 评论 -
商品价格计算
1、HTML代码<table border="1"> <tr> <th>图片</th> <th>单价</th> <th>数量</th> <th>价格</th> </tr> <tr> <td c原创 2021-09-13 12:01:07 · 235 阅读 · 0 评论 -
鼠标移入事件
1.先在HTML设置两个box: <div id="box1"></div> <div id="box2"></div>2、在CSS中设置样式:text-align和line-height同时设置可以使文字垂直居中 #box1, #box2{ width: 200px; height: 50px; background-color: #999;原创 2021-09-11 23:15:01 · 6010 阅读 · 0 评论 -
秒杀定时器
<div class="box"> <span class="one">限时秒杀</span> <span id="d" class="one"></span> <span class="one">:</span> <span id="h" class="one"></span> <span class=".原创 2021-09-11 08:50:26 · 197 阅读 · 0 评论