Home > Article > Web Front-end >
25edfb22a4f469ecb59f1190150159c6 The label appears trapezoidal misalignment in 360, but there is no problem in other browsers, and there is no problem when using pure HTML static pages. As long as you add php, there will be problems. If you save it in the browser There is no problem when the source file is reopened, so I really don’t know what to do.
/*热门代购品牌_right*/.mid_hot{ float:left; width:970px; height:27px; background:url(../image/rmdgpp1.png) no-repeat; margin:10px 0px ;}.mid_hot_pplogo{ float:left; width:969px; height:103px;border-left: #a2a2a2 1px solid; border-top: #a2a2a2 1px solid;overflow:hidden;}.brand_item a {display: block;width: 87px; height:50px; float:left;}.brand_item a:hover {text-decoration:none;}.brand_item a.brand_name {border-right: #a2a2a2 1px solid; border-bottom: #a2a2a2 1px solid;}.brand_item a.brand_detail {border-right: #a2a2a2 1px solid; border-bottom: #a2a2a2 1px solid;}<SCRIPT type=text/javascript> $(document).ready(function(){ // 判断img轮转,实现a跳转 // 推荐品牌滑动翻转效果 brandPicTurn(); }); function brandPicTurn(){ $(".brand_detail").hide(); $(".brand_item").hover( function(){ $(this).children(".brand_name").hide(); $(this).children(".brand_detail").show(); } , function(){ $(this).children(".brand_detail").hide(); $(this).children(".brand_name").show(); } ); }</SCRIPT><div class="mid_hot"> <!--热门品牌--> </div> <div class="mid_hot_pplogo"> <ul class="ui_brands"> <?php $result = mysql_query("SELECT * FROM brand;"); while($row = mysql_fetch_array($result)){ echo"<li class='brand_item'><a class='brand_name' href='".$row['brandURL']."' target=_blank ><img src='".$row['brandImgOne']."' alt=''/></a><a class='brand_detail' href='".$row['brandURL']."' target=_blank><img src='".$row['brandImgTwo']."' alt='' /></a></li>"; }?> </ul> </div>
In IE, 360 is the worst browser
Maybe It’s caused by BOM headers
Even if 360 is garbage, there’s nothing you can do about it. The ones used in China are still huge...
It might be caused by BOM headers
I don’t understand what it means. ..This problem has been bothering me all morning
It may be caused by the BOM header. If you set charset=utf-8 in 360, there will be no problem, but chrome cannot recognize Chinese characters... Please solve!
Both html pages and php should be uniformly encoded as utf-8 when output
The problem has been solved, charset="gbk;" will do the trick
html pages and php When outputting, it must be uniformly encoded as utf-8. I made an error when using utf-8... Only gbk seems to be OK... Otherwise the text is garbled
Quoting the reply from xuzuning on the 2nd floor: It may be the BOM header Caused by
I don’t understand what it means... I’ve been struggling with this problem all morning
Either you give a valid url
or you post the full code
Just post a few like you How can I make a mistake in this fragment?
Maybe you didn’t post the problem?