English 中文(简体)
CSS能否改变SRC的归属要素?
原标题:Can CSS alter an input element s SRC attribute?
  • 时间:2011-09-26 03:19:38
  •  标签:
  • css

是否可能通过安全局删除或修改以下标记中的电弧参考线?

容易做的是改变标识,但是,这一代码在野中,我需要处理它,因此我不想去掉形象,而是使用背景形象。

<input type="image" src="wp-content/uploads/image.png" name="submit" class="submit" value="Submit" /> 
最佳回答

你们可以尝试确定高点和宽度到0,增加dding子,树立背景形象。 页: 1

http://jsfiddle.net/zBgHd/1/

问题回答

实际上,我只是说了。

提交日期: 1

我的替换形象是28x28。 它具体指明了一条与这块土地相等的左胎和一个零的宽度,从而有效地将图像推向了盒子的可视区,使背景形象得以显示。

Although that is specifically about the img src attribute, it still holds true for input src. This question pretty much answers it for you - How to change an input button image using CSS? Another related question: Define an <img> s src attribute in CSS

页: 1 没有任何浏览器。

任何解决办法都将涉及工作。 现在我用“<代码>:规则前”做一次测试,以在上面树立背景形象。

更新 就其价值而言,<代码>:之前未在input/code>要素上得到尊重,而@Chetan s fiddle在我修改<代码>img tag至input/code>时有效。 因此,库多斯。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...