|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ltlinh Smarty n00b
Joined: 07 Feb 2014 Posts: 1
|
Posted: Fri Feb 07, 2014 5:23 am Post subject: Why is inline CSS added to images automatically? |
|
|
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 |
|
|
|
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
|