gpt4 book ai didi

css - chrome 浏览器兼容性问题

转载 作者:行者123 更新时间:2023-11-28 10:12:58 24 4
gpt4 key购买 nike

此 jsp 主页在 Mozilla 和 IE 7 上运行良好,但在 chrome 上运行不佳。没有图像被挑选。请指教。

                    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- Libraries to include jstl tags -->
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!-- Libraries to include jstl tags -->
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!-- Libraries to include jstl tags -->
<!DOCTYPE HTML>
<html>
<head>

<%
String ua=request.getHeader("User-Agent").toLowerCase();
// condition used for mobile compatibility
if(ua.matches("(?i).*((android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hipt)) //Many such conditions are checked but I removed them to make it simple
{
response.sendRedirect("index?source=mobile");
return;
}
%>

<title>Arizona Health Sciences Library EBM Search Engine</title>
<link rel="stylesheet" type="text/css" href="css/style_index.css" > -- included css

</head>
<body>
<!-- Images that are not getting loaded -->
<a href="http://arizona.edu"><img src="images/ua_logo_white.png" height="80" /></a>
<div class="floatright">
<!-- Images that are not getting loaded -->
<a href="http://ahsl.arizona.edu/home"><img src="images/AHSL.png" height="80" width="100" /></a>
</div>

<!-- Links to different search engines -->
<h2><a href="search?module=2">General Medicine</a></h2>
<h2><a href="search?module=1">Emergency Medicine</a></h2>
<h2><a href="search?module=3">Medical Imaging</a></h2>
<h2><a href="search?module=4">Pediatrics</a></h2>
<h2><a href="search?module=5">Surgery / Critical Care</a></h2>
<!-- Static texts hard coded - Need to be replaced -->

<footer>
All content ©2012 Arizona Board of Regents. All rights reserved.
</footer>

</body>
</html>

style_index.css - 这是用于此页面的 CSS。我不确定是否必须对此样式表进行更改。

body {
font-family: 'Myriad Pro', Arial, Helvetica, sans-serif;
}

body {

background: url('../images/bg_top_repeat_dark_blue.jpg') repeat-x #f3f3f3;

}

image
{
border-width: 0;
}

#wrapper {
width: 800px;
margin: 100px auto;
}

#logo {
height: 397px;
text-indent: -10000px;
margin-bottom: -135px;
}
#logo.blank {
text-indent: 0;
}


h1 {
padding-top: 80px;
color: #202080;
font-size: 36px;
font-weight: bold;
text-align: center;
white-space: nowrap;
}

h2 {
color: #202080;
font-size: 30px;
font-weight: bold;
text-align: left;
}

.floatright
{
float: right;
margin-right: 18px;
}

form {
background: url('../images/search_box.png') no-repeat;
height: 47px;
}

input {
background: none;
border: none;
outline: 0;
}

input.text {
width: 670px;
padding: 13px 0 13px 24px;
color: #505050;
font-size: 20px;
float: left;
}

input.submit {
width: 104px;
padding: 13px 0 13px 10px;
float: right;
cursor: pointer;
}
.ui-grid-a .ui-block-a {
width: 30%;
}

footer {
height: 50px;
padding: 5px 0 20px 0;
text-align: center;
}

最佳答案

当您在 chrome 中打开网页时,请按 f12。将打开一个窗口。现在在右边将显示您的 CSS 代码。检查带有红色或黄色警告标志的代码。这些标志表明代码错误或 chrome 不需要。

关于css - chrome 浏览器兼容性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24318461/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com