Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Why is inline CSS added to images automatically?

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
ltlinh
Smarty n00b


Joined: 07 Feb 2014
Posts: 1

PostPosted: Fri Feb 07, 2014 5:23 am    Post subject: Why is inline CSS added to images automatically? Reply with quote

Hi,

I have problem: inline CSS added to images automatically when using:{literal}
<script type='text/javascript'>
$(function() {
$('a[rel=tipsy]').tipsy({fade: true, gravity: 's'});
});
</script>
{/literal}

Debug with F12, I saw as below:
<img width="960" height="58" style="left: -228px; top: 0px; position: relative;" alt="Image" src="/common/images02/img02_e.gif">

And view source:
<img src="/common/images02/img02_e.gif" width="960" height="58" alt="Image" />

My question now is why is css style added to img automatically?

1. Clear cached, cookies, data ... , reload page
=> OK (did not add css style)
2. Clear cached, cookies, data ... again and reload page
=> css style added to img automatically => position of image is wrong.

I tried to delete {literal}{/literal}, display OK without css style.

Please help me out. Thanks in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP