开发者

Problem positioning graphics in Chrome and Safari

开发者 https://www.devze.com 2023-02-19 07:59 出处:网络
I have a problem with positioning graphics in Chrome and Safari. My code works fine in IE开发者_运维百科 and Firefox.

I have a problem with positioning graphics in Chrome and Safari. My code works fine in IE开发者_运维百科 and Firefox.

A typical line of code is

<Div Style='{position:absolute; left:326px;top: 268px;}'>
    <A Href='Venues.asp?id=2'>Image code</A>
</div>


Kill the curly braces. It should just be style="position:absolute; left:326px; top:268px;"


Chrome and Safari are based on Webkit. Add this to the bottom of you stylesheet and put the class you want to adjust in here.

@media screen and (-webkit-min-device-pixel-ratio:0) { 
.class {}
}


Remove curly braces from your inline style. Also no need to capitalize <a> and <div> tags. Your code should look like

<div Style='position:absolute; left:326px;top: 268px'><a Href='Venues.asp?id=2'>Image code</a></div>
0

精彩评论

暂无评论...
验证码 换一张
取 消