gpt4 book ai didi

javascript - 在横幅中水平对齐图像和 javascript 旋转图像

转载 作者:行者123 更新时间:2023-11-28 12:08:34 25 4
gpt4 key购买 nike

我正在尝试在横幅区域包含一个 javascript 旋转图像。我不知道如何让图像显示在 Logo 的右侧,而不是在其下方。以下是显示垂直对齐的两个图像时的代码:

    <style>
<!--
A { color: #000000; text-decoration: none; }
A:link { color: #313131; text-decoration: none; }
A:visited { color: #313131; text-decoration: none; }
A:active { color: #C0C0C0; }
A:hover { color: #FF0000 ; }

BODY,TD,TR{
font-family: verdana, arial, sans-serif;
color: #000;
font-size: 12px;
font-weight:normal;
line-height: 1.3em;
}
.banner {
font-family: georgia, verdana, arial, sans-serif;
color:white;
font-size:x-large;
font-weight:bold;
border-left:1px solid #FFF;
border-right:1px solid #FFF;
border-top:1px solid #FFF;
background:#C0C0C0;
padding:7px;
}
.description{
font-family:verdana, arial, sans-serif;
font-size:x-small;
font-weight:bold;
}
//-->
</style>
</head>
<body bgcolor="#ffffff">
<div style="width: 700px; margin: 0 auto;" align="center">

<table border="0" width="700" cellspacing="0" cellpadding="0">
<tr>
<td class="banner"> <span class="description"><img style="width: 365px; height: 145px;"
title="Metamora Herald" alt="Metamora Herald" src="redbirdheraldlogo.png"></span><script type="text/javascript">
show_banners();
</script> </td>
</tr>

如何从脚本中获取随机图像以显示在横幅的右侧,而不是下方?谢谢

最佳答案

这是链接 http://jsfiddle.net/SL9Kx/1/ .这是你想要的吗?

我已经稍微更改了您网站横幅的 html 代码。您可以在下面(在评论中)询问您的查询(如果有)。

  /////

关于javascript - 在横幅中水平对齐图像和 javascript 旋转图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19609554/

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