File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ module.exports = {
4444 * Crafty.e("2D, DOM, Text")
4545 * .attr({ w: 100, h: 20, x: 150, y: 120 })
4646 * .text("Loading")
47- * .css({ "text-align ": "center "})
47+ * .css({ "border ": "1px solid red "})
4848 * .textColor("#FFFFFF");
4949 * });
5050 *
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ Crafty.c("DOM", {
234234 *
235235 * For setting one style, simply pass the style as the first argument and the value as the second.
236236 *
237- * The notation can be CSS or JS (e.g. `text-align ` or `textAlign `).
237+ * The notation can be CSS or JS (e.g. `border-radius ` or `borderRadius `).
238238 *
239239 * To return a value, pass the property.
240240 *
@@ -243,9 +243,9 @@ Crafty.c("DOM", {
243243 *
244244 * @example
245245 * ~~~
246- * this.css({'text-align ': 'center ', 'text-decoration': 'line-through'});
247- * this.css("textAlign ", "center ");
248- * this.css("text-align "); //returns center
246+ * this.css({'border-radius ': '5px ', 'text-decoration': 'line-through'});
247+ * this.css("borderRadius ", "10px ");
248+ * this.css("border-radius "); //returns 10px
249249 * ~~~
250250 */
251251 css : function ( obj , value ) {
You can’t perform that action at this time.
0 commit comments