In my form I have a submit button:
<button name ="sort" value="sort" type="submit">▼</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">▼</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">▼</button>
Hint: If you want to define the rule only for this button you have to replace
button
withbutton[name="sort"]
or set a class.
<button name ="sort" value="sort" type="submit" style="background-color:transparent;border:0">▼</button>
\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.