File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22* @Author : Alex Dong
33* @Date : 2020-07-29 13:21:07
44* @Last Modified by: Alex Dong
5- * @Last Modified time: 2022-07-10 14:53:44
5+ * @Last Modified time: 2022-07-18 18:29:19
66*/
77
88define ( [
@@ -103,7 +103,7 @@ define([
103103 $ . each ( responsive [ key ] , function ( size , num ) { maxWith = size ; col = num ; } ) ;
104104 style += ' @media (min-width: ' + maxWith + 'px)' ;
105105 }
106- style += ' {' + selector + '{margin: 0 -' + padding + 'px}' + classes + '{padding: 0 ' + padding + 'px; box-sizing: border-box; width: ' + ( Math . floor ( ( 10 / col ) * 100000000000 ) / 10000000000 ) + '% } '+ classes + ':nth-child(' + col + 'n+1){clear: ' + float + ';}}' ;
106+ style += ' {' + selector + '{margin: 0 -' + padding + 'px}' + classes + '{padding: 0 ' + padding + 'px; box-sizing: border-box; width: calc(100% / ' + col + ') } '+ classes + ':nth-child(' + col + 'n+1){clear: ' + float + ';}}' ;
107107 } ) ;
108108 $head . append ( '<style type="text/css" id="' + styleId + '" >' + style + '</style>' ) ;
109109
You can’t perform that action at this time.
0 commit comments