HTML: Как сделать кнопку отправки с текстом +, отображают в нем?

Получите приложение Delphi и откройте его в бесплатной версии IDA Pro , найдите, куда оно записывает файл, и декодируйте, как оно записывает файл таким образом.

Если это не текст плана.

34
задан David 25 October 2009 в 19:53
поделиться

4 ответа

input type="submit" is the best way to have a submit button in a form. The downside of this is that you cannot put anything other than text as its value. The button element can contain other HTML elements and content.

Try putting type="submit" instead of type="button" in your button element (source).

Pay particular attention however to the following from that page:

If you use the button element in an HTML form, different browsers will submit different values. Internet Explorer will submit the text between the tags, while other browsers will submit the content of the value attribute. Use the input element to create buttons in an HTML form.

27
ответ дан 27 November 2019 в 16:02
поделиться

Допустим, ваше изображение - это значок размером 16x16 .png с именем icon.png. Используйте возможности CSS!

CSS:

input#image-button{
    background: #ccc url('icon.png') no-repeat top left;
    padding-left: 16px;
    height: 16px;
}

HTML:

<input type="submit" id="image-button" value="Text"></input>

Это поместит изображение слева текста.

58
ответ дан 27 November 2019 в 16:02
поделиться

You're really close to the answer yourself

<button type="submit">
<img src="save.gif" alt="Save icon"/>
<br/>
Save
</button>

Or, you can just remove the type-attribute

<button>
<img src="save.gif" alt="Save icon"/>
<br/>
Save
</button>
8
ответ дан 27 November 2019 в 16:02
поделиться

Вы можете взглянуть на boost :: any class. Он безопасен по типу, вы можете поместить его в стандартные коллекции, и вам не нужно связываться с какой-либо библиотекой, Мне удалось заставить мою форму работать, но в результате отображается электронное письмо:

imageField_x: 80 imageField_y: 17

внизу письма, которое я получаю.

Вот мой код для кнопок.

    <tr>
      <td><input type="image" src="images/sendmessage.gif" / ></td>
      <td colspan="2"><input type="image" src="images/printmessage.gif"onclick="window.print()"></td>
    </tr>

Может быть, это тоже поможет вам и мне.

: -)

1
ответ дан 27 November 2019 в 16:02
поделиться
Другие вопросы по тегам:

Похожие вопросы: