Home > Backend Development > PHP Tutorial > php 切换背景颜色或背景图片或是切换模板是怎样实现的~

php 切换背景颜色或背景图片或是切换模板是怎样实现的~

WBOY
Release: 2016-06-23 14:14:05
Original
1850 people have browsed it

如题:简单点就好!最好是有代码~~!!!一定要说清楚。


回复讨论(解决方案)

一定要说清楚。你想怎么切换? 你的出发点在哪?

你究竟想干嘛?

切换css或者切换文件夹

光标移到哪个行 那个行背景颜色变黄 光标移开恢复原来颜色的方法:
一.HTML:

<TR style="FONT-WEIGHT: bold; FONT-STYLE: normal; BACKGROUND-COLOR: white; TEXT-DECORATION: none"    onMouseOver="this.style.backgroundColor='yellow'"onMouseOut="this.style.backgroundColor='white'">
Copy after login


二.jQuery:
1.先写好CSS:
<style>.tr1{ font-weight: bold; font-style:normal; background-color: white; text-decoration:none; }.over{ background:yellow}</style>
Copy after login

2.jQuery方法:
<script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script> //记得包含jQuery插件文件<script type="text/javascript">$(function(){    $(".tr1").bind("mouseover mouseout",function(){	     $(this).toggleClass("over");	});});</script>
Copy after login


3.html代码:
<TR class="tr1"><TD width="10%">姓名</TD></TR><TR class="tr1"><TD width="10%">密码</TD></TR><TR class="tr1"><TD width="10%">姓名</TD></TR><TR class="tr1"><TD width="10%">密码</TD></TR>
Copy after login





PHP切换模板,cms比较好, http://bbs.phpcms.cn/forum.php

搞多套css样式,切换之

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template