View previous topic :: View next topic |
Author |
Message |
termic
Joined: 11 Jan 2008 Posts: 4
|
Posted: 13.12.2008 20:58 Post subject: button[type=name] css u IE |
|
|
Imam problem s CSS za Internet Explorer u vezi HTML taga:
Code: | <button type="cancel">X</button> |
Style za submit prolazi, ali za cancel ne.
U FF i Chrome sve radi ok, ali IE6 i IE7 ne.
Evo cijeli primjer:
Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
button[type=submit]{
width: 21px;
height: 21px;
background-color: #FF6600;
}
button[type=cancel]{
width: 21px;
height: 41px;
background-color: #211FF0;
}
</style>
</head>
<body>
<form>
<button type="submit">S</button>
<button type="cancel">X</button>
</form>
</body>
</html> |
|
|
|
Back to top |
|
|
blackshtef mi3.crew
Joined: 14 Sep 2003 Posts: 661
|
Posted: 13.12.2008 21:15 Post subject: Re: button[type=name] css u IE |
|
|
termic wrote: | Imam problem s CSS za Internet Explorer u vezi HTML taga:
Code: | <button type="cancel">X</button> |
Style za submit prolazi, ali za cancel ne.
U FF i Chrome sve radi ok, ali IE6 i IE7 ne.
Evo cijeli primjer:
Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
button[type=submit]{
width: 21px;
height: 21px;
background-color: #FF6600;
}
button[type=cancel]{
width: 21px;
height: 41px;
background-color: #211FF0;
}
</style>
</head>
<body>
<form>
<button type="submit">S</button>
<button type="cancel">X</button>
</form>
</body>
</html> |
|
Ne postoji cancel, nego reset tip
Code: | <button type="reset">X</button> |
Neznam jel će to utjecat na prikaz, al ono, to mi je upalo u oko
http://www.w3schools.com/tags/att_button_type.asp |
|
|
Back to top |
|
|
fun.ky
Joined: 05 Jan 2006 Posts: 365 Location: Mostar
|
Posted: 13.12.2008 21:38 Post subject: |
|
|
IE6 (za 7 nisam siguran) ne prihvata
<style>
button[type=submit]{ ...}
</style>
probaj staviti klasu na button i onda u klasi definiši osobine.
Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
.subimt{
width: 21px;
height: 21px;
background-color: #FF6600;
}
.cancel{
width: 21px;
height: 41px;
background-color: #211FF0;
}
</style>
</head>
<body>
<form>
<button type="submit" class="submit">S</button>
<button type="reset" class="cancel">X</button>
</form>
</body>
</html> | [/quote] |
_________________ There is no style definition for good music! |
|
Back to top |
|
|
sphx
Joined: 02 Jun 2004 Posts: 109 Location: Split
|
Posted: 13.12.2008 21:39 Post subject: |
|
|
hmm, probaj sa:
<input type="reset">
css:
input[type='reset'] {
...
}
eh da... IE6 ne podržava ovakav tip selektora, zato uvijek kad radim nešto što treba raditi i u IE6 koristim class atribut, je malo tlaka, al navikne se covjek |
|
|
Back to top |
|
|
termic
Joined: 11 Jan 2008 Posts: 4
|
Posted: 13.12.2008 23:09 Post subject: |
|
|
Hvala svima..
Koristim jEditable, pa sam mislio da ne mogu definirat class u <button>, ali uspio sam.
Ako jos nekome treba:
ako se upise samo ime:
Code: | ....cancel : 'Cancel'... |
onda on sam dodaje <button>, a moguce je definirati i cijeli <button>
Code: | ....cancel : '<button type="cancel" class="button_cls">Cancel</button>'.... |
|
|
|
Back to top |
|
|
maratz mi3.crew
Joined: 24 Nov 2003 Posts: 1207 Location: ZAG
|
|
Back to top |
|
|
|