Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与其他浏览器不同,Opera 会导致<button>内部文本在单击时向右移动 1 个像素,向下移动 1 个像素。有什么办法可以防止这种行为?
<button>
您可以使用 css 填充和高度、宽度和百分比
用这个
.stylename { height:10%; width:230%; padding-top:3px; padding-bottom:3px; padding-left:5px; padding-right:5px; font-size:10pt; /*You can Change height / Width and Padding according to you*/ }