标签:get 搜索 包括 制作 logs ntb back white 函数调用
夜间模式的开启与关闭
<!DOCTYPE html> <html lang="en" xmlns:color="http://www.w3.rog/1999/xhtml"> <head> <meta charset="UTF-8"> <title>Title</title> <script> function mySwitch() { var myele=document.getElementById("on_off") if (myele.src.match("bulbon")) { myele.src="http://www.runoob.com/images/pic_bulboff.gif" document.getElementById("myBody").style.background="black" document.getElementById("myBody").style.color="white" } else { myele.src="http://www.runoob.com/images/pic_bulbon.gif" document.getElementById("myBody").style.background="white" document.getElementById("myBody").style.color="black" } } </script> </head> <body id="myBody"> <img id="on_off" onclick="mySwitch()" src="http://www.runoob.com/images/pic_bulbon.gif" width="50px"> <script> document.write(Date()) </script> </body> </html>
父模板的制作
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <body> <nav> <img src="https://p1.pstatp.com/origin/39a00003fc004e34ec7d" width="50" height="50" > <input type="text"> <button type="submit">搜索</button> <a href="{{ url_for(‘base‘) }}">首页</a> <a href="http://127.0.0.1:5000/ll">登录</a> <a href="{{ url_for(‘zc‘) }}">注册</a> </nav> </body> </html>
标签:get 搜索 包括 制作 logs ntb back white 函数调用
原文地址:http://www.cnblogs.com/0020l/p/7777349.html