Home  >  Q&A  >  body text

css - img tag has border

How can I remove the border from the img tag?

<img src="">

I didn’t use the image path
There will be a border after putting it on the web page
But I can’t eliminate it by using border:0....

PHP中文网PHP中文网2710 days ago946

reply all(3)I'll reply

  • typecho

    typecho2017-06-12 09:26:40

    First, simply confirm whether the lower border comes from the style (usually thicker) or from the browser (usually thinner); if it is a custom style, adjust the style to exclude the img tag; if it comes from the browser , you can try to use border: 0; outline: 0; to adjust.

    reply
    0
  • 为情所困

    为情所困2017-06-12 09:26:40

    border: 0; outline: 0;

    reply
    0
  • ringa_lee

    ringa_lee2017-06-12 09:26:40

    Is it a browser problem?

    reply
    0
  • Cancelreply