The default value of navigator-hover is {background-color: rgba (0.1, 0, 0.7); opacity:;}. the background color of the child node should be transparent.
Navigator
Page link.
| Attribute name |
Type |
Default value |
Description |
| Url |
String |
|
Jump link in the application |
| Redirect |
Boolean |
False |
Whether to close the current page |
| Hover-class |
String |
Navigator-hover |
Specifies the style class when you click,
When hover-class = "none", no click effect |
Note: The default value of navigator-hover is {background-color: rgba (0, 0, 0, 0.1); opacity: 0.7;}. the background color of the child node should be transparent.
Sample code:
/** Wxss ** // ** modify the default navigator click State **/. navigator-hover {color: blue;}/** custom other click style classes **/. other-navigator-hover {color: red ;}
Jump to new page
Open on current page
{Title }}
Click the upper left corner to return to the previous page.
{Title }}
Click the upper left corner to return to the upper-level page.
// Redirect. js navigator. jsPage ({onLoad: function (options) {this. setData ({title: options. title })}})
The above is the content of the mini-program development component-navigation. For more information, please follow the PHP Chinese network (www.php.cn )!