简体   繁体   中英

How can I make my submit button not look like a button?

In my form I have a submit button:

<button name ="sort" value="sort" type="submit">&#9660;</button>

The button looks like a "button". This is not what I want, I would simply like the button look like this:

So this means without any style, only the black arrow. Is this possible?

Yes, you can just use CSS to remove the background and border

 button { background: none; border: none; } 
 <button name ="sort" value="sort" type="submit">&#9660;</button> 

The only properties of the button which are visible are background and border . So you have to set these properties to nothing like the following code:

 button { background:none; border:0; } 
 <button name ="sort" value="sort" type="submit">&#9660;</button> 

Hint: If you want to define the rule only for this button you have to replace button with button[name="sort"] or set a class.

\n
\n
\n
<button name ="sort" value="sort" type="submit" style="background-color:transparent;border:0">&#9660;</button>
\n
\n
\n

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM