日期:2014-05-16  浏览次数:20443 次

怎么显示当前的元素

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
$(document).ready(function(){
$(".location-title-mr").click(function(){
$(".all-menu-location-cj").show();
$(".location-title-mr").hide();
})
})
    </script>
    <style type="text/css">
*{
margin:0;
padding:0;
}
body{
font-size:12px;
}
 .all-menu-location{
  width: 373px;
  float: left;
  margin: 15px 15px 0 0;
  display: inline;
  border: 1px solid #BFBFBF;
  padding-bottom: 10px;
  position: relative;
}
.all-menu-location .all-menu-location-ifr{
  width: 353px;
  height: 198px;
  border: 1px solid #DCDCDC;
  float: left;
  margin: 10px 0 0 9px;
  display: inline;
}
.all-menu-location .all-menu-location-title{
  width: 363px;
  float: left;
  margin-left: 9px;
  display: inline;
  padding-top: 5px;
}
.all-menu-location-title .location-title-mr{
  float: right;
  width: 50px;
  height: 20px;
  background: #00BCF3;
  margin-right: 10px;
  display: inline;
}
.all-menu-location-title .location-title-a{
  font-weight: bold;
  font-size: 14px;
  float: left;
  width: 290px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow:ellipsis;
}
.all-menu-location .all-menu-location-ress{
  width: 363px;
  float: left;
  margin-left: 9px;
  display: inline;
  overflow: hidden;
  white-space: nowrap;
  text-overflow:ellipsis;
}
.all-menu-location-ress span{
  color: #7D7D7D;
}
.all-menu-location .all-menu-location-cj{
  width: 30px;
  height: 30px;
  background:#9C3;
  position: absolute;
  top: 8px;
  right: 8px;
  display:none;
}
.all-menu .all-menu-more{
  width: 763px;
  height: 28px;
  background: #EDEDED;
  float: left;
  margin-top: 15px;
  display: inline;
  border: 1px solid #BFBFBF;
  line-height: 28px;
  text-align: center;
}
.all-menu-more a{
  color: #7D7D7D;
}
    </style>
&l