如何从输入中删除文本框css样式[type =' text']

时间:2016-01-08 07:30:58

标签: css asp.net

在我的整个应用程序中,我已经全局声明了文本框样式,如css

input[type='text'], input[type=password], textarea { //My styles }

我需要从搜索文本框中删除此样式

<input id="txtSerach" type="text" placeholder="Search here..." required />

2 个答案:

答案 0 :(得分:2)

    CREATE TRIGGER trig_check_count
    ON [Registration]
    FOR INSERT
    AS
    Begin
     DECLARE @USERID  INT, @COUNT INT
     --FIND USERID FOR INSERTED RECORD
     Select @USERID = I.USERID 
     from Inserted i
     Left Join registration R 
     on R.ID = I.ID AND R.USERID = I.USERID
     where R.ID is null

     --COUNT - START FROM THE PREVIOUS PROMOTION DATE till current date
     SELECT @COUNT = COUNT(I.USERID)
     FROM INSERTED I
     LEFT JOIN PROMOTION P ON I.USERID = P.USERID
     WHERE USERID = @USERID
     AND I.TIMESTAMP > MAX(P.TIMESTAMP)

  -- INSERT TO SECOND TABLE IF COUNT > 20

    IF(@COUNT > 20)
    BEGIN
     INSERT INTO PROMOTION
     SELECT @USERID,GETDATE()
   END

 End

答案 1 :(得分:0)

如果是HTML5,你也可以使用input type =“search”并对所有搜索字段使用不同的css

<input id="txtSerach" type="search" placeholder="Search here..." required />