If you absolutely need to style your html buttons, what is the right way to emphasize some of them? for example, "Add to Cart" is usually underlined visually to highlight it.
Option 1 - submit wrapper in em or strong + css
Option 2 - class + css
Option 3 -?
CSS is the way to go. For example, in the Facebook Notes application, the Publish button is blue and the rest are gray. All this is done using CSS classes and identifiers.
, , CSS. , Firebug, , .
, , . - , , - /id.
, , .
HTML
<div class="foo"> <input type="submit" /> </div>
CSS
.foo input { ...some styles }
, . - , .
, , , , <button> ( <input type="submit"> , ) <em> CSS, :
<button>
<input type="submit">
<em>
em button { color: blue; font-style: normal; font-weight: bold; }
(, <em> <strong> , . "" -, <em> even , .)
<strong>
<button><em>label</em></button>
IE , < input type="button" > - , em - .
<input type="button" class="emphasized"/>
-..
CSS2 + 3: CSS
input[type="submit"] { border: 3px solid blue; }
: http://www.w3.org/TR/CSS2/selector.html
... ...
" !"
, , ...
, . , .
CSS , . < input type="submit" > , < button type = "submit" > [lable here here] </button> . , , .
- , - , , , .
- , . , , , . , , , , .
< > , , , , , , <strong> <em> .
, CSS, .
. - , .
:
font-size: 120%
font-weight: bold
padding: 4px 8px
- . , , .
- , color, background-color border.
color
background-color
border
Source: https://habr.com/ru/post/1708578/More articles:.Net Memory Dump:! Eeheap -gc: где начинаются и заканчиваются поколения GC? - .netTADoConnection and Association - delphiSpring AOP Error - springSide by side image elements using CSS - cssможно ли программным образом выбрать любой текст на веб-странице в тегеили теге ? - javascriptWhat is the Python equivalent for JDBC DatabaseMetaData? - pythonUIPickerView that scrolls horizontally on iPhone? - objective-cModel Formats and Date Fields - djangoHow can I make a horizontal collector? - objective-cSalt C # MD5 ComputeHash to stream - c #All Articles
или теге ? - javascript