Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mislz28/public_html/wp-content/themes/css-faq-v2/timeweather/timeweather.php on line 19
8 May 2008

forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




background-color с єлементами ввода

UserPost

2:46 pm
June 16, 2008


tank

Member

posts 8

1

TextBox(ов) использовал следующие цвета

код

input      {background-color: #dae9a9;} 

input:hover{background-color: #e3eebd;} 

Для Radiobotton и такие цвета не идут. 

Получается некрасивая зеленая рамка вокруг, хотелось бы её убрать.


2:47 pm
June 16, 2008


genius

Member

posts 47

2

input.radio {background:none;}

2:49 pm
June 16, 2008


tank

Member

posts 8

3

не получилось(

Ни на Radiobotton ни на чекбоксе рамки не убираются 


Чекбокс

Код:

<asp:CheckBox id=”CheckBox_Sofort” runat=”server” AutoPostBack=”True” Text=” sofort” OnCheckedChanged=”soforttxt_CheckedChanged” CssClass=”FontArial_11px”></asp:CheckBox>


Радиоботтон Код:

<asp:RadioButtonList id=”RadioButtonList_Rauchertaxi” runat=”server” RepeatDirection=”Horizontal” CssClass=”FontArial_11px”> 

    <asp:ListItem Selected=”True” Value=”false”>Nein</asp:ListItem> 

    <asp:ListItem Value=”true”>Ja</asp:ListItem> 

</asp:RadioButtonList>

2:50 pm
June 16, 2008


genius

Member

posts 47

4

Вы не задали класс для элементов, как стили могут применяться

2:52 pm
June 16, 2008


tank

Member

posts 8

5

А как стили применяются к этементу ввода? 

Ведь применяются же для обычных TextBox(ов)! 

Хотя я в них явно класс не задаю. 


input каким то хитрым образом узнает все формы ввода без того, чтобы указывать класс! 


все равно не получилось.

Указал класс у чекбокса 

Код:

<asp:CheckBox id=”CheckBox_Sofort” runat=”server” AutoPostBack=”True” Text=” sofort” OnCheckedChanged=”soforttxt_CheckedChanged” CssClass=”InputAlternative”></asp:CheckBox>


В css Код:

.InputAlternative {background:none;}


не выходит.

http://www.mpc-software-test.de/Default.aspx

2:53 pm
June 16, 2008


genius

Member

posts 47

6

у вас код насыщенный, разобраться сразу тяжело.

смотрите пример, в нем все путем…
Код:
<html>
<head>
</head>
<style type=”text/css”>
input {background-color:blue;}
.nobg {background: none;}
</style>
<body style=”background-color:red;”>
<input class=”nobg” type=”checkbox” style=”padding:0;”>
</body>
</html>

Для упрощения могу посоветовать задать стиль конкретно через id

input#soforttxt {background: none;}

2:54 pm
June 16, 2008


tank

Member

posts 8

7

ага, понимаю…сейчас буду пробовать.



Reply to Topic: background-color с єлементами ввода

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 4 + 7        (Required)

Topic Reply:


 

About the CSS-FAQ forum

Currently Online:

3 Guests

Maximum Online: 20

Forums:

Groups: 3

Forums: 18

Topics: 397

Posts: 834

Members:

There are 1000 members

There are 1 guests

Top Posters:

abc - 57

genius - 47

shane - 46

glowlite.uk - 39

booster - 37

warren - 35

Administrator: admin | Moderators: admin


© Simple:Press Forum - Version 3.1.1 (Build 336)