<legend id='0PwI9'><style id='0PwI9'><dir id='0PwI9'><q id='0PwI9'></q></dir></style></legend>
    <bdo id='0PwI9'></bdo><ul id='0PwI9'></ul>

    1. <small id='0PwI9'></small><noframes id='0PwI9'>

    2. <i id='0PwI9'><tr id='0PwI9'><dt id='0PwI9'><q id='0PwI9'><span id='0PwI9'><b id='0PwI9'><form id='0PwI9'><ins id='0PwI9'></ins><ul id='0PwI9'></ul><sub id='0PwI9'></sub></form><legend id='0PwI9'></legend><bdo id='0PwI9'><pre id='0PwI9'><center id='0PwI9'></center></pre></bdo></b><th id='0PwI9'></th></span></q></dt></tr></i><div id='0PwI9'><tfoot id='0PwI9'></tfoot><dl id='0PwI9'><fieldset id='0PwI9'></fieldset></dl></div>
      <tfoot id='0PwI9'></tfoot>

    3. 在 CSS 中定义一个 &lt;img&gt; 的 src 属性

      时间:2023-09-08
      • <bdo id='zF34S'></bdo><ul id='zF34S'></ul>
        <legend id='zF34S'><style id='zF34S'><dir id='zF34S'><q id='zF34S'></q></dir></style></legend>

        <small id='zF34S'></small><noframes id='zF34S'>

          • <i id='zF34S'><tr id='zF34S'><dt id='zF34S'><q id='zF34S'><span id='zF34S'><b id='zF34S'><form id='zF34S'><ins id='zF34S'></ins><ul id='zF34S'></ul><sub id='zF34S'></sub></form><legend id='zF34S'></legend><bdo id='zF34S'><pre id='zF34S'><center id='zF34S'></center></pre></bdo></b><th id='zF34S'></th></span></q></dt></tr></i><div id='zF34S'><tfoot id='zF34S'></tfoot><dl id='zF34S'><fieldset id='zF34S'></fieldset></dl></div>
            <tfoot id='zF34S'></tfoot>
                  <tbody id='zF34S'></tbody>
                本文介绍了在 CSS 中定义一个 &lt;img&gt; 的 src 属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我需要在 CSS 中定义一个 <img> 的 src 属性.有没有办法指定这个属性?

                I need to define an <img>'s src attribute in CSS. Is there a way to specify this attribute?

                推荐答案

                #divID {
                    background-image: url("http://imageurlhere.com");
                    background-repeat: no-repeat;
                    width: auto; /*or your image's width*/
                    height: auto; /*or your image's height*/
                    margin: 0;
                    padding: 0;
                }
                

                这篇关于在 CSS 中定义一个 &lt;img&gt; 的 src 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:设置选项“已选择";来自动态创建选项的属 下一篇:动态更改推文按钮“数据文本"内容

                相关文章

                最新文章

              1. <legend id='WilPc'><style id='WilPc'><dir id='WilPc'><q id='WilPc'></q></dir></style></legend><tfoot id='WilPc'></tfoot>

                <small id='WilPc'></small><noframes id='WilPc'>

                    <bdo id='WilPc'></bdo><ul id='WilPc'></ul>
                  1. <i id='WilPc'><tr id='WilPc'><dt id='WilPc'><q id='WilPc'><span id='WilPc'><b id='WilPc'><form id='WilPc'><ins id='WilPc'></ins><ul id='WilPc'></ul><sub id='WilPc'></sub></form><legend id='WilPc'></legend><bdo id='WilPc'><pre id='WilPc'><center id='WilPc'></center></pre></bdo></b><th id='WilPc'></th></span></q></dt></tr></i><div id='WilPc'><tfoot id='WilPc'></tfoot><dl id='WilPc'><fieldset id='WilPc'></fieldset></dl></div>