开发者

Should img[align=right] work?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜