前端学习(1802):前端调试之事件伪类练习
生活随笔
收集整理的這篇文章主要介紹了
前端学习(1802):前端调试之事件伪类练习
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
index.html
<!DOCTYPE html> <html lang="en"><head> <!--系統內置 start--> <script type="text/javascript"></script> <!--系統內置 end--><meta charset="UTF-8"><title>練習</title><!-- 不要忘記引入index.css --><link rel="stylesheet" href="index.css"> </head><body> <div class="search"><input placeholder="紅米k20"> <div class="right"><div class="giao"></div> </div> </div> </body></html>index.css
body {margin: 0px; } .search{width: 254px; height: 42px; background: #FFFFFF; border: 1px solid #E0E0E0; box-sizing:border-box; } .search>input{font-size: 12px; line-height: 17px; color: #AEAEAE; border:none; margin-top:13px; margin-left:20px; } .right{float:right; width: 42px; height: 42px; background: #FFFFFF; border: 1px solid #E0E0E0; margin-right:-1px; margin-top:-1px; box-sizing:border-box; } .giao{width: 16px; height: 16px;margin-top:13px; margin-left:13px; background:url(./images/search-normal.png) no-repeat ;}.right:hover{background: #FD6821; } .giao:hover{background:url(./images/search-hover.png); }運行結果
總結
以上是生活随笔為你收集整理的前端学习(1802):前端调试之事件伪类练习的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DB9接口定义
- 下一篇: OpenCV实践之车流量统计(C++)