开发者

Should img[align=right] work?

开发者 https://www.devze.com 2023-02-07 02:45 出处:网络
I hav开发者_开发技巧e thousands of articles with inline images like this: <img src=\'...\' align=\'left\'/>

I hav开发者_开发技巧e thousands of articles with inline images like this:

<img src='...' align='left'/>

and

<img src='...' align='right'/>

I would like to add padding using CSS as follows, but it doesn't work:

img[align=left] {padding-right:10px}
img[align=right] {padding-left:10px}

This seems not supported?


This works for me (with or without quoting the value) on Win7/Chrome/8 and Win7/FF/3.6: http://jsfiddle.net/gLe3U/

You'll need to provide more details on the OS/browser/version giving you trouble, and perhaps provide a full test case (e.g. through http://jsfiddle.net)

0

精彩评论

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