CSS样式按钮 [英] Styling buttons with css
本文介绍了CSS样式按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经将按钮设置为看起来像超链接的样式,因此我可以使用request.post而不是querystring.唯一的问题是,在选择某些字符时会有点困难,因为文本框的区域是字母本身(例如,字符i).有没有一种方法可以解决此问题而无需更改为超链接?我还在下面提供了样式化的按钮
I've styled buttons to look like hyperlinks so i can use request.post instead of querystring. The only problem is that when selecting certain characters it is a bit difficult as the area of the textbox is the letter itself (e.g - the character i). Is there a way to fix this problem without changing to hyperlink? I've also provided the styled buttons below
<input type="submit" name="Page" value="#" style="background:transparent;border:0;display:inline;color:#00F;text-decoration:underline;padding:0px;cursor:pointer">
<% for i = 97 to 122 %>
<input type="submit" name="Page" value="<%=CHR(i) %>" style="background:transparent;border:0;display:inline;color:#00F;text-decoration:underline;padding:0px;cursor:pointer;">
<% next %>
推荐答案
尝试使用display:block;并设置宽度.
Try using display:block; and setting a width.
或者,您可以增加填充,设置为0px.
Alternatively, you could increase the padding, which is set at 0px.
这篇关于CSS样式按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文