How to remove round corners in jQuery Mobile?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 04:38:09

问题


How to remove the round edges (border-radius) from the particular element or from div tag that is using jQuery Mobile?


回答1:


In the jQuery mobile CSS file linked here, search for this string:

.ui-corner-tr {

I don't know if you're even using the default styles, but there's what I found based on the info you provided.

You should be able to change all four corners in that area (as .ui-corner-tr, .ui-corner-tl, .ui-corner-br, .ui-corner-bl, etc., etc.)




回答2:


Talking about buttons, you can apply following option to a button.

data-corners="false"

A code goes like this:

<a href="#" data-role="button" data-corners="false">push me</a>

The document is here: http://jquerymobile.com/demos/1.2.0/docs/buttons/buttons-options.html

Thanks.




回答3:


In your css file (any) :

.ui-corner-all {
   -webkit-border-radius:.0 !important;
   border-radius: 0 !important;
}


来源:https://stackoverflow.com/questions/8463300/how-to-remove-round-corners-in-jquery-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!